Leads - SMB Sales Boost API

Search, filter, and export leads from our database. Supports keyword filtering, location filtering, industry filtering, and pagination.

Lead Database

Every lead comes from the Main database (API value other), which covers small and medium businesses of all types. Contact info includes both phone numbers and email addresses. The database parameter is optional. Every value is accepted and resolves to the Main database, so existing integrations keep working unchanged.

How Search Works: Two-Phase Query Model

Phase 1 - Include (OR Logic)

All positive keywords and include terms are combined with OR logic. A lead matches if any positive keyword matches in any of the OR group search columns.

Default OR group columns
Registered URL, Crawled URL, Company Name, Categories (AI Enrichment)

Phase 2 - Exclude (AND Logic)

Negative keywords are checked against the same columns as positive keywords. A lead is excluded if any negative keyword matches in any of those columns.

URL Space-to-Wildcard

For URL columns, spaces in search terms are automatically replaced with % wildcards. For example, "dental clinic" becomes %dental%clinic% to match URLs like example.com/dental-clinic.

AI Category Estimation

Leads in the Main database are progressively enriched by AI with estimated business type categories. Each lead may include an aiCategoryEstimation field containing an array of 1-3 category names, or null if not yet classified.

Endpoints

GET /api/v1/leads
Search and filter leads. Requires a search term on company name, category, registered URL or crawled URL (businessType, categories, or a name or website include term or positive keyword of 3+ characters on one of those columns; shorter ones still filter, and a description term alone is not enough). businessType alone is enough for a kind of business; adding keywords or include terms replaces the name and website matches that follow the category matches. While another export, search or push of your account is still recording its charge, the search waits up to 30 seconds, then answers 429 charge_in_progress (Retry-After: 30) with nothing charged. limit (max 1000, a larger value is lowered to 1000), maxResults and maxCredits must be whole numbers when sent (limit and maxResults 1 or more, maxCredits 0 or more): a value that is present but is not one (an empty value, a negative number, a decimal, text) is refused with 400 bad_request and never means no cap.
GET /api/v1/leads/preview
Preview leads with masked contact info (masked, not hashed: for example (512) ***-**42 and hel*@domain.com). Accepts the same filters as GET /api/v1/leads, including the contact term filters (emailPrimaryInclude, phonePrimaryInclude and the rest) and the company-column include, exclude and empty filters. Does not consume credits. Leads you already purchased come back unmasked (contactExported: true); pass excludePurchased=true to return only not-yet-purchased leads.
POST /api/v1/leads/export
Export filtered leads to CSV, JSON, or XLSX. Subject to export rate limits. Supports credit-optimized ordering via maxCredits and maxResults parameters. Pass excludePurchased=true to export only not-yet-purchased leads. By default each file in the response is a download link: a per-file exportId plus downloadUrl (/api/v1/export-history/{id}/download), kept in Export History for 90 days. Pass inline=true (body field or ?inline=true) to also get each file's data (plain UTF-8 text for csv and json files, base64 for xlsx files) while all files of the export together are at most 10 MB; past that the answer has links and inlineSkippedReason too_large. XLSX files can hold up to Excel's own limit of 1,048,576 rows per sheet (counting the header and any blank lead-in rows), more than any export of at most 100,000 leads; past it the export returns 400 export_too_large before anything is charged or recorded. Splitting is optional. In CSV files a cell that a spreadsheet would run as a formula (it starts with =, +, -, @, a tab or a carriage return, or a part of it after a semicolon or a tab starts with =, +, - or @) is written with a single quote in front of that part, for example '=SUM(A1); plain numbers and phone numbers are not changed, and XLSX and JSON files carry the text unchanged. An export that is not finished within about 75 seconds answers 202 Accepted with a jobId and keeps running: the charge, your lead export history and the Export History files are written whether or not you collect the response. Poll GET /api/v1/jobs/{jobId} for the full response, kept for up to 60 minutes after the export finishes (then 410 job_result_expired for about a day, then 404 job_not_found; the files stay in Export History for 90 days). Send an Idempotency-Key header with each export: repeating it with the same key returns the same job instead of exporting again. To get the result of a running export poll the job, never send the export again: a new export after this one finished (or with other arguments) picks new leads first and charges for them; an identical request while it runs returns the same job. If the answer is lost, check Export History first; a re-run with maxCredits 0 returns leads you already paid for at no charge. A 402 insufficient_credits does not use up the key: buy credits, then retry. A 429 charge_in_progress (Retry-After: 30) means another export, lead search or push of your account was still recording its charge; nothing was charged. See Long-Running Requests.
GET /api/v1/categories
Lists AI business categories with the number of businesses in each (nationwide, refreshed daily). With query (plain words, 2 to 80 characters) it returns picked, the 1 to 4 categories that businessType would use for the same words, and categories, further matching names. Without query it lists the largest categories. limit 1 to 50 (default 20), offset from 0. Uses no credits.
GET /api/v1/leads/other/schema-types
Returns a sorted list of all distinct website schema types found in the Main database. Use these values with the websiteSchemaFilter parameter on GET /api/v1/leads. The list is kept up to date in the background, so this normally answers at once; right after a server restart it waits up to 55 seconds (Prefer: wait=N, counted from the request's arrival, sets a shorter wait) and can then answer 503 schema_types_warming with Retry-After: 60 while the list is rebuilt.

Category-First Search

businessType: plain words for the kind of business to find, for example dental practices (2 to 80 characters; not a website schema type; no place names). The API matches it to 1 to 4 AI categories and returns those businesses first. On searches and previews, businesses whose company name or crawled website matches follow them. An export adds those name and website matches only when its category matches are fewer than maxResults or maxLeads, never past its row limit; an export without either delivers category matches only. An export whose AI category matching has not finished answers 503 service_unavailable (retryable, with Retry-After) before anything is searched or charged: repeat it. To keep exactly the same categories on later pages and in the export, keep businessType and add the categorySearch.categoriesUsed names as categories.

categories: 1 to 4 exact AI category names from GET /api/v1/categories, as a JSON array. Searched first, instead of the categories matched from businessType. Alone, the search returns category matches only; with positiveKeywords or include terms, those matches follow the category matches.

redirectFilter: no (default): only businesses whose registered website address does not redirect to another site. yes: only businesses whose address redirects. any (all and both are accepted too): both. Values are not case-sensitive; any other value returns 400 invalid_redirect_filter. Leaving the parameter out means no (it used to mean both).

With businessType or categories, answers carry categorySearch (the categories used, how they were chosen, categoryTotal and the name and website matches in extraMatches) and each lead carries matchedBy. The order is: category matches (new ones first), then name and website matches (new ones first); maxCredits pays for new category matches before new name and website matches.

Key Parameters

businessType, categories, positiveKeywords (a search term on company name, category or website is required), negativeKeywords, orColumns, stateInclude, stateExclude, cityInclude, cityExclude, zipInclude, zipExclude, streetInclude, streetExclude, minNumLocations, maxNumLocations, minRatingValue, maxRatingValue, minReviewCount, maxReviewCount (numeric ranges), buyingSignalTypeFilter, lastBuyingSignalFrom, lastBuyingSignalTo, sortBy, sortOrder, page, limit, database, and various column-specific include/exclude terms. Empty/non-empty filters per column are also supported via streetEmptyFilter, cityEmptyFilter, stateEmptyFilter, zipEmptyFilter plus phonePrimaryEmptyFilter, phoneTotalEmptyFilter, emailPrimaryEmptyFilter, emailTier1EmptyFilter through emailTier6EmptyFilter, descriptionEmptyFilter, and the new firmographic and technology columns such as employeeCountEmptyFilter, foundingDateEmptyFilter, isChainEmptyFilter, priceRangeEmptyFilter, legalNameEmptyFilter, industryNaicsEmptyFilter, dunsEmptyFilter, founderEmptyFilter, founderEmailEmptyFilter, founderPhoneEmptyFilter, openingHoursEmptyFilter, areaServedEmptyFilter, offersEmptyFilter, brandEmptyFilter, sloganEmptyFilter, logoUrlEmptyFilter, socialProfilesEmptyFilter, platformEmptyFilter, bookingOpsCrmSoftwareEmptyFilter, reputationChatSoftwareEmptyFilter, marketingEmailSoftwareEmptyFilter, adPixelsEmptyFilter, paymentFinancingSoftwareEmptyFilter, emailPrimaryMxEmptyFilter, emailDomainMxEmptyFilter, emailSecurityEmptyFilter, addressSourceEmptyFilter. The firmographic and technology columns from employeeCount through paymentFinancingSoftware also support include/exclude term filters (e.g. employeeCountInclude/employeeCountExclude, founderEmailInclude/founderEmailExclude); founder email and phone values stay masked until a lead is unlocked or exported. The Email Primary Provider, Website Email Provider, Website Email Security, and Address Source columns have no include/exclude terms; they use exact-value multi-choice matching via emailPrimaryMxValues, emailDomainMxValues, emailSecurityValues, and addressSourceValues - each a JSON array of exact values matched with IN semantics. Number of Job Postings uses minOpenPositions/maxOpenPositions, and the short description uses descriptionIncludeTerms/descriptionExcludeTerms. Each empty filter accepts 'any' | 'only_empty' | 'exclude_empty'.

Buying Signal Type Filtering

Every lead carries a Buying Signal Type list describing why its Last Buying Signal timestamp last changed. Filter on it with buyingSignalTypeFilter (comma-separated values). Values: Newly Added, Phone Primary, Total Phones, Email Primary, Tier 1 Emails, Tier 2 Emails, Address Full, plus per-source social profile signals - Instagram, LinkedIn, Facebook, YouTube, TikTok, X (Twitter), Google Maps, Yelp, Pinterest, and Other Social - recorded when a social profile for that source is added or changed for a business. Social profile changes also bump the lead's Last Buying Signal timestamp, so recently-active businesses surface under lastBuyingSignalFrom / lastBuyingSignalTo date filters. Last Buying Signal is also the default sort (sortBy=lastBuyingSignal).

The former names updateReasonFilter, lastUpdatedFrom, lastUpdatedTo and sortBy=lastUpdated are still accepted (ignored when the new name is also sent), and lead responses still include a deprecated Last Updated key with the same value as Last Buying Signal. Default-format export files (POST /api/v1/leads/export, Export History downloads, email schedule attachments) name these columns Last Buying Signal and Buying Signal Type in their CSV/XLSX headers and JSON keys; they no longer have Last Updated / Update Reason columns. To keep the old header names, export with a custom export format (formatId) that maps lastUpdated and lastUpdatedReason to the names you need.

Credit-Optimized Export Parameters

The export endpoint supports additional parameters for controlling credit usage:

maxLeads
Cap total leads exported, like maxResults (when both are set, the smaller one applies). The response's overflowCount says how many matching leads were left out by the maxLeads or maxResults cap (the smaller one) or because credits ran short. Nothing is kept for a later export: to export only leads you have not received yet, set excludePurchased to true.
maxResults
Cap total results returned (both new and previously-exported leads). New leads are prioritized first, then previously-exported leads fill remaining slots.
maxCredits
Cap credits spent on this export. Only new (credit-consuming) leads count toward this cap. The export is also capped at your spendable balance, so the effective cap is the smaller of the two. Set to 0 to only receive previously-exported leads at no credit cost.
excludePurchased
When true, export only leads you have not purchased yet (already-exported leads, matched by lead id or shared contact point, are skipped). Credit and dedup math are unchanged. Default false.

On credit plans, GET /api/v1/leads and POST /api/v1/leads/export always return leads in credit-optimized order: new leads (credit-consuming) sorted first, then previously-exported leads, each group sorted by Last Buying Signal descending (or your custom sort). New leads are cut to the smaller of maxCredits and your spendable balance (credit balance plus any overage-budget headroom); when the balance was the limit the response has the X-Credits-Capped: true header, so omitting maxCredits caps the request at your balance instead of failing. 402 insufficient_credits only happens if a concurrent request spends the balance between the check and the charge.

What Costs a Credit

Each new lead returned by GET /api/v1/leads or POST /api/v1/leads/export costs 1 credit. Charging is sticky: a lead you have already received through any channel (dashboard, API, MCP or email schedule) is never charged again, even if its data changed later, and a new lead that shares a primary phone or primary email with a lead you already received is also free.

Purchased-Lead Reveal on Preview

The preview endpoint reveals leads you have already purchased: any preview lead that matches a prior export (by lead id or by a shared phone or email contact point) is returned unmasked with contactExported: true, the same as on the dashboard. Leads you have not bought stay masked. Pass excludePurchased=true on preview to return only not-yet-purchased leads. A shared contact point here includes the lead's Total Phones and Email Tier values, while charging compares primary phone and primary email only, so a lead revealed only through one of those lists can still cost a credit.


API Documentation Sections

Introduction | Programmatic Purchase | Authentication | Rate Limits | Long-Running Requests | User Profile | Enrichments | Leads | Filter Presets | Keyword Lists | Email Schedules | Export Formats | Export History | Lead Export History | Account Settings | AI Features | Export Blacklist | Error Handling | Credits & Subscription | MCP Server | MCP Tools and Permissions | Integrations API

Setting up a CRM, an automation tool or a webhook? See Tools & Integrations: providers, events, webhook payloads and signatures, Exported leads (batched) and the Zoho Flow scripts.

View Full API Documentation


Ready to Find Your Next Customers? Get access to growing local business leads updated every 5 minutes. See plans starting at $49/mo →