curl --request GET \
--url https://intentleads.si/api/v1/leads \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://intentleads.si/api/v1/leads', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://intentleads.si/api/v1/leads"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)Pull or re-download leads
Leads you’ve already exported. Reading them never buys anything; to get new people, start an export with POST /api/v1/exports.
since=last (default): pull what’s new. Returns the leads this consumer hasn’t pulled yet, oldest first, and moves its server-side cursor past them, so a daily job never sees the same lead twice. If has_more is true, call again straight away. Each consumer has its own cursor, and so does each consumer and lane pair: pulling with lane=L1 doesn’t move the all-lanes cursor (or the other way round), so a job that uses both gets L1’s leads twice.
since=YYYY-MM-DD: re-download. Every lead exported on or after that date (UTC), oldest first, without touching any cursor. Narrow it with to, lane, delivery, strength and keyword, and page with next_page (X-Next-Page for CSV).
Good to know
- The cursor moves as soon as the response is built. If your job fails after the call, recover that batch with
since=YYYY-MM-DD. to,delivery,strength,keywordandpageonly apply with a datesince; withsince=lastthey’re ignored. Values that don’t parse are ignored too.- Suppressed people come back with
suppressed: trueand empty contact fields.
CSV: add format=csv for a file, with the headers X-Lead-Count, X-Has-More and (date mode) X-Next-Page. The CSV has one header row and these columns, in this order: First Name, Last Name, Job Title, Seniority, Standard Title, Department, Job Function, Sub-departments, Headline, Title History, Employer History, Education, LinkedIn Connections, Company, Website, Industry, NAICS, SIC, Employees, Employee Range, Revenue, Revenue Range, Company Address, City, State, Company ZIP, Company Country, Company Description, Home City, Home State, Home ZIP, Home Country, Age Range, Gender, Household Income, Net Worth, Homeowner, Married, Children at Home, Business Email, Email Status, Personal Email, Mobile, Mobile on DNC, Direct Phone, Company Phone, LinkedIn, Company LinkedIn, X (Twitter), GitHub, Intent Topics, Intent Score, Last Active, Lane, Keywords Matched, Intent Strength, First Seen, Exported, Seen Before, Suppressed, Lead ID. Exported is delivered_at. Lists (Keywords Matched) are joined with ; , booleans are Yes or No, empty values are empty cells, and lines end with CRLF. Cells that start with =, +, -, @ or a tab are prefixed with ' so spreadsheets don’t run them as formulas (phone numbers like +1 612 555 0142 are left as they are).
Free. This doesn’t spend your balance.
curl --request GET \
--url https://intentleads.si/api/v1/leads \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://intentleads.si/api/v1/leads', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://intentleads.si/api/v1/leads"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)Authorizations
Headers
Only with an organization key: the workspace to act in (its id; ?workspace=<id> works too). Lanes, leads, exports, lists, websites and webhooks live in workspaces. Without it, an organization key acts in its only workspace, or gets 400 workspace_required (with the list of workspaces) when it has several. Workspace keys don't need it. On keys, team and activity it switches from the organization's own to that workspace's.
Query Parameters
Response
A page of leads, as JSON or (with format=csv) a CSV file.