Skip to main content
Question

Webhook returns only the first item in array instead of all items

  • March 12, 2025
  • 2 replies
  • 32 views

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
 

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • 34032 replies
  • March 12, 2025

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


  • Author
  • Beginner
  • 3 replies
  • March 12, 2025

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.