Estimate a lead export (free, exact)
POST /api/v1/leads/exports/estimate
Runs the export you describe without writing or charging anything, so the number already excludes leads this account revealed before, the per-company limit, duplicate emails and (with dropUndeliverable) dead domains. Use it, not /leads/search, to size an export.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”The same body you would send to POST /leads/exports. Field names ignore case, _ and -, so excludeTitles, exclude_titles and Exclude-Titles are the same field. Older names also work: industryNames, countryCodes / countryCode, seniorities, companySizes, departments, revenues, companyTypes. If two spellings of one field are sent, the one listed here wins. A key that is not a filter is ignored and named in warnings (UNKNOWN_FIELD_IGNORED, with a suggestion).
object
Country as an ISO code or a name (“US”, “United States”). The source is ~99.9% US.
Free text, whole-word matched against the job title.
Matched against the company description, not the title.
Cap contacts per company.
Required. Rows to export; requests above 50,000 are capped and report capped_to_max.
Company type, derived from each company’s industry (the source has no ownership field). Values OR together. Public (listed) company filtering is not available yet; sending “public” or any other value returns 400 with code COMPANY_TYPE_NOT_AVAILABLE or UNKNOWN_COMPANY_TYPE.
Match jobTitles (and keywords) as whole words. Without it titles match as substrings, so “CFO” can hit unrelated titles. The app always sends true; set it yourself.
Drop anyone whose job title contains any of these terms as a whole word, ignoring case, e.g. [“intern”, “assistant”]. “intern” drops “Sales Intern” but not “International Sales Manager”.
Leave out emails that will not arrive, before they are charged. domain: free check that the domain accepts mail. mailbox: domain + EmailShield per address (1 credit per address checked; much slower); only addresses marked invalid are dropped, addresses with no verdict are kept and refunded.
false returns the fast sampled pool count instead of the dry run.
How long to wait for the exact count before answering count_pending.
Also deliver leads this account already revealed. Default false: an export holds only leads you don’t have yet, and owned leads are counted in skipped.alreadyRevealed. Owned leads are free; a lead is never charged twice.
Responses
Section titled “ Responses ”Estimate, or count_pending.
object
New leads this export would deliver to this account now (null while count_pending).
exact: a dry run of the export. floor: the dry run hit its 5-minute budget. sampled: exact:false was sent (pool count, not subtracting reveals or the per-company limit).
The limit was reached and more matches remain.
object
Still counting: send the same request again after retry_after_seconds; the count continues and is cached 5 minutes.
Estimated run time, including mailbox checks.
Present when the request succeeded with adjustments. UNKNOWN_FILTER_VALUE_IGNORED: industry/seniority values that matched nothing were left out (ignored lists them with suggestions); the other values in that filter were applied. When EVERY value of a filter is unknown the request fails with 400 UNKNOWN_FILTER_VALUE instead. UNKNOWN_FIELD_IGNORED: body keys that are not filters (usually a misspelling) were ignored, so the search ran without them; fields lists each with the closest accepted name in suggestion.
object
object
object
UNKNOWN_FIELD_IGNORED only.
object
LIMIT_REQUIRED or UNKNOWN_FILTER_VALUE.
object
Human-readable error message
Additional details