Skip to main content

I'm trying to create an integration using a Rest API. Afaik the way to do this is using a webhook.
However, for every API that I test the webhook always returns only the first item in the array.
Is there a way to return all items in the array?

If you browse to the API you can see an array with multiple entries:
https://api.sampleapis.com/coffee/hot
Whereas zapier only displays the first entry. This happens to every API I test with, not just this one
 

Hi ​@Strijdhagen 

This can happen depending on how Zapier interprets the returned data payload from the API response.

The workaround is to use a Code step to make the API request and handle the API response.

Help with Code: https://zapier.com/apps/code/integrations#help

 

You can generate Code with the help of AI in the Code by Zapier Zap app integration.

https://help.zapier.com/hc/en-us/articles/15666688064013-Generate-a-Code-step-using-AI-Beta

 

Also, ChatGPT is a great resource to help you configure the code to use.

 

If you need to hire help, there is a directory of Certified Zapier Experts: https://zapier.com/experts


Hi Troy, do you have any examples where it returns the full array? This seems to be un purpose instead of an inepretation.
I'd like to avoid code because I want non-technical folks to be able to call this API.


Reply