Integration Guide
Pull leads from the Lead Database API using the HTTP Request node. n8n handles pagination natively, so you can pull thousands of leads and route them anywhere in a single workflow.
The HTTP Request node calls the Lead Database API with pagination. Split Out Items breaks the response array into individual lead records. Then you route each lead to your destination.
In n8n, go to Credentials and create a new one:
Header AuthAuthorizationBearer YOUR_API_KEYUsing Header Auth instead of the predefined Bearer type ensures the authorization header is included on every paginated request.
GEThttps://app.scrapercity.com/api/v1/database/leadsGeneric Credential Type > Header AuthUnder “Send Query Parameters,” add your search filters:
title = CTO
country = United States
hasEmail = true
limit = 100
page = 1You can use any combination: title, seniority, department, industry, country, state, city, companyName, companyDomain, companySize, minEmployees, maxEmployees, hasEmail, hasPhone.
Click “Add Option” and select “Pagination.” Configure it:
Update a Parameter in Each RequestQuerypage{{ $pageCount + 1 }}Set the stop condition:
{{ $response.body.pagination.totalPages }}$pageCount starts at 0. Adding 1 means the first request sends page=1, the second sends page=2, and so on until totalPages.
After the HTTP Request node, add a “Split Out” node:
dataEach lead becomes a separate item. Downstream nodes receive fields like email, first_name, title, company_name, linkedin_url.
Connect the Split Out node to wherever you want the leads: Google Sheets, HubSpot, Salesforce, Instantly, Smartlead, EmailBison, a Slack notification, or any other n8n node.
After the Split Out node, reference fields with expressions like {{ $json.email }}:
first_namelast_namefull_nameemailpersonal_emailmobile_numbertitleheadlinesenioritydepartmentcompany_namecompany_domaincompany_industrycompany_sizecompany_linkedinlinkedin_urlcitystatecountry