functionality to get single product from api