I am trying to get single product json by product id
https://testbydisnap.myshopify.com/products.json?product_id=10282991814
OR
https://testbydisnap.myshopify.com/products/drummer-tshirt.js
replace with
https://testbydisnap.myshopify.com/products/10292902662.js
Any solution?
Thanks
2
Answers
You’ll want to use .json at the end of the URL. Your last example was close!
Correct url would be
GET https://testbydisnap.myshopify.com/products/10292902662.json
If you want to do it via Javascript on the frontend of the site:
The tags for this product are test1,test2
For getting product json for a single product based on its id, you could simply use:-
https://testbydisnap.myshopify.com/admin/products/product-id.json
You can test this url from browser by passing product-id. It will show product information in JSON format.