Have Images Been Removed from the Product API?

CaseJnr
Shopify Partner
7 0 0

Hi, I have a private app and custom app which can no longer retrieve product images from the API. I can still access them if I use an old API key/token however the images return an empty array if I use a new token. How can I access product images?

0 Likes
CaseJnr
Shopify Partner
7 0 0

I believe the api has changed. It has something to do with permissions. Could someone please test a new private app and verify for me? 

Steps:

  • Create a private Shopify app
  • Add product and product listing permissions.
  • Add your credentials to the following URL.

    https://YOUR_PRIVATE_APP_KEY:YOUR_PRIVATE_APP_TOKEN@YOUR_SHOP.myshopify.com/admin/api/2020-04/products.json

Does your products include images in the response? My is an empty array "images": [] 

0 Likes
HunkyBill
Shopify Expert
4481 45 485

Are you sure the product even has images? A product with none will certainly return images: [], the correct answer.

I have never seen a product API call that does not include images if they exist, so my guess is, that is it. If you are sure the product has images and you're just not getting them, then booya... that is a problem. Probably will just go away.

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
0 Likes