php - Shopify API returns all products instead of single product
I am calling the Shopify API with the following:
It is returning a list of all products and all fields on my store instead of just the product with the ID 410319192096 and the fields I require.
According to the documentation I am calling it correctly, does anyone know if I'm making an incorrect call?
Wrong placement of
.json in your url, if you only want to select single product, not all list (info here (https://help.shopify.com/api/reference/product#show)).
Correct url for single product should be:
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.