I need to load a product using its URL key. I find methods to load using only ID and SKU like,
use Magento\Catalog\Model\ProductRepository;
$product = $this->_productRepository->getById($productId);
$product = $this->_productRepository->get($productSku);
How can I achieve this using URL key?