ScraperCity logo

Integration Guide

ScraperCity + Zapier

Query the Lead Database API with Webhooks by Zapier and route leads to Google Sheets, HubSpot, Salesforce, Slack, or any of 6,000+ connected apps.

When to Use This

Zapier works best for event-driven lead queries: a form submission triggers a search, a new CRM record triggers an enrichment, or a scheduled Zap pulls fresh leads daily and pushes them to a spreadsheet.

Each Webhooks step makes a single API call (up to 100 leads). If you need to paginate through thousands of results in one run, n8n or Claude Code are better tools for that job. Zapier is ideal when you want to connect the Lead Database to apps that n8n and Claude Code cannot reach natively.

Setup

1

Create a new Zap and add a trigger

Choose your trigger. Common options: Schedule by Zapier (run daily or weekly), a form submission from Typeform or Google Forms, or a new row in Google Sheets.

2

Add "Webhooks by Zapier" as an action

Search for “Webhooks by Zapier” and select the “Custom Request” event. This gives you full control over the HTTP request.

3

Configure the request

Method:GET
URL:https://app.scrapercity.com/api/v1/database/leads?title=CTO&country=United%20States&hasEmail=true&limit=100

Build the full URL with query parameters inline. URL-encode spaces as %20. You can reference data from previous Zap steps to make queries dynamic.

4

Add the Authorization header

In the Headers section, add a single entry:

Key:Authorization
Value:Bearer YOUR_API_KEY

Do not wrap the value in quotes. Zapier sends it as-is. Replace YOUR_API_KEY with your ScraperCity API key.

5

Test the step

Click “Test step.” You should see a JSON response with a data array containing lead records and a pagination object showing total results.

6

Route the leads

Add another action step to send the data where you need it:

Google SheetsMap data__0__email, data__0__first_name, data__0__title, etc. to columns in your sheet.
HubSpotCreate Contact action. Map email, firstname, jobtitle, and company from the webhook response.
SlackSend Channel Message action. Format the lead data into a notification for your sales team.
SalesforceCreate Lead action. Map email, name, title, company to the corresponding Salesforce fields.

Dynamic Queries

You can build the URL dynamically using data from previous Zap steps. For example, if your trigger is a Google Sheets row with a “Company Domain” column:

https://app.scrapercity.com/api/v1/database/leads?companyDomain={{Company Domain}}&hasEmail=true&limit=5

This turns your spreadsheet of target companies into an enrichment pipeline. Each new row triggers a search for contacts at that company.

FAQ

Get API access to the Lead Database: