Skip to main content
Best answer

Using Apollo API in Zap webhooks to search contacts - filters not working

  • May 13, 2025
  • 9 replies
  • 126 views

I’m trying to search contacts in Apollo using filters for 1. person location, 2. organization, 3. person title using Zapier webhooks (since there isn’t a native Apollo search integration). I get the API call to be made, but it isn’t respecting my filters. When I add the same filters to the Apollo API documentation, it works (I tried with just location and title first). What am I doing wrong?

 

 

Best answer by Troy Tessalone

@ally_b 

Based on the API documentation, the parameters you are trying to use are QUERY parameters, so those won’t go in the fields “Body” fields, rather those will go as part of the URL field.

EXAMPLE

https://api.apollo.io/api/v1/mixed_people/search?person_locations[]=CA&person_locations[]=NY

 

 

 

Make sure you have your Headers set. (not shown in the screenshots)

 

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

9 replies

DavidLGS
Forum|alt.badge.img+6
  • Zapier Solution Partner
  • 208 replies
  • May 13, 2025

I could be wrong, but you specified sending a json body, but it looks like you’re sending it form data in the second screenshot. 
 

I've not used the Apollo API (yet), but with most other API search calls I’ve made, they typically end up as query parameters or in a raw json body. 
 

any chance you can show us your entire webhook configuration step (and remove any sensitive data)? Bonus points if you also include a screenshot of the relevant part of the Apollo API since I’m lazy and don’t want to look for it myself. :-)


  • Author
  • Beginner
  • 5 replies
  • May 13, 2025

I tried that too and also got no results! I made a loom video of the full config + API docs: https://www.loom.com/share/efce579b34094a4085ab257bd6b9c055


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

Hi ​@ally_b 

What is the link to the app API endpoint documentation you used to configure the API request?


  • Author
  • Beginner
  • 5 replies
  • May 13, 2025

  • Author
  • Beginner
  • 5 replies
  • May 13, 2025

@DavidLGS I tried to make a loom video to walk you through it, but it isn’t showing up so here are screenshots.

 

Here is the sample code from the API documentation: 

curl --request POST \
     --url 'https://api.apollo.io/api/v1/mixed_people/search?person_titles[]=general%20manager&person_titles[]=assistant%20general%20manager%2C%20general%20manager%2C%20owner%2C%20president%2C%20franchisee&include_similar_titles=false&person_locations[]=st.%20louis%2C%20mo&organization_locations[]=' \
     --header 'Cache-Control: no-cache' \
     --header 'Content-Type: application/json' \
     --header 'accept: application/json' \
     --header 'x-api-key: r-ySn1p3jGkqMkfKT6JrVQ'


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

@ally_b 

Based on the API documentation, the parameters you are trying to use are QUERY parameters, so those won’t go in the fields “Body” fields, rather those will go as part of the URL field.

EXAMPLE

https://api.apollo.io/api/v1/mixed_people/search?person_locations[]=CA&person_locations[]=NY

 

 

 

Make sure you have your Headers set. (not shown in the screenshots)

 


  • Author
  • Beginner
  • 5 replies
  • May 14, 2025

Thanks ​@Troy Tessalone ! I tried to create the url using the python Zapier step (ss below) and now am getting a formatting error. Any ideas?

 

 


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

@ally_b 

Try sharing your screenshots and link to the api documentation with ChatGPT and ask for it to fix the code, which may have to do with encoding.


  • Author
  • Beginner
  • 5 replies
  • May 15, 2025

Got it working! Thanks for your help ​@Troy Tessalone !!