protected $_productRepository;
public function __construct(
\Magento\Catalog\Model\ProductRepository $productRepository,
) {
$this->_productRepository = $productRepository;
}
public function getSpecialPriceById($id)
{
$product = $this->_productRepository->getById($id);
return $product->getSpecialPrice();
}
public function getSpecialPriceBySku($sku)
{
$product = $this->_productRepository->get($sku);
return $product->getSpecialPrice();
}
call this function using block or helper as you want.
$id = '1';
$sku = 'some-ski';
$block->getSpecialPriceById($id);
$block->getSpecialPriceBySku($sku);