Hi everyone,
I’m trying to use Etsy’s API to display a keyword search query of listing results. Each listing image url is identified by a corresponding listing_id. To retrieve the images, I need to make two API calls, where I take the results of the first call and pass it to the 2nd call. The problem is, I cannot pass more than one listing_id through the 2nd Etsy API call at a time, so I need to set up a recursive backend workflow that loops through each returned listing_id to retrieve the entire list of images.
I’ve set up two API calls - one to retrieve all active listings, that returns the listing_id’s as a list of numbers:
and another API call to retrieve the image URLs for each corresponding listing_id. As you can see, the listing_id value only accepts one listing_id at a time:
API call #1 return listing_ids —> API Call #2 loop through each listing_id —> return each image url
I’m struggling to loop through the list of IDs and call the API for each one using a recursive backend workflow.
Can anyone provide some guidance or point me in the right direction? Any help would be greatly appreciated!
Thanks in advance.
Etsy API documentation
findAllListingsActive: https://developers.etsy.com/documentation/reference/#operation/findAllListingsActive
getListingsActive:
https://developers.etsy.com/documentation/reference/#operation/getListingImages