getting only the src of images from products api

Highlighted
New Member
1 0 0

hello I'm trying to get the product title , id and image src ! in case the product have a lot of images i think that will return a list of images SRCs  : 

GET  https://APIKEY:password@koldev.myshopify.com/admin/products.json?title={product_name}&fields=id,title,images

 

this way everything works but i get all the info of the images , SO is there any way to get only the src ?? ( I'm using fastapi (python framework ) )

0 Likes
Highlighted
Shopify Expert
4269 32 434

If you switch to GraphQL you can get just the image src value you seek. It is not hard to do, switching from RestAPI to graphQL. It is in most cases, far superior, and these days, I limit use of RestAPI to simple GET checks from the CLI to see what's up with something.

Try it. You might like it.

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