Using Apollo API in Zap webhooks to search contacts - filters not working
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?
Page 1 / 1
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. :-)
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.
Make sure you have your Headers set. (not shown in the screenshots)
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?
@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.
Got it working! Thanks for your help @Troy Tessalone !!
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? Also, if you’re looking to find fence contractor Jupiter FL, make sure your location filters are set precisely.
Your Zapier webhook is likely not formatting the filters correctly in the API request. Make sure the JSON body exactly matches Apollo’s API specs for filters, including correct key names and nesting. Also verify you’re using the correct HTTP method and headers. Testing the request in Postman before Zapier can help identify any differences causing the filters to be ignored.