Skip to main content
POST
Preview
Run the same filters as POST /accounts/search and get back a synchronous preview: the total estimated account count plus the first 25 matching companies. Use it to validate filters and size an audience before kicking off the real search.

Overview

Compared to POST /accounts/search, the preview:
  • Does not create an import job.
  • Does not call your webhook.
  • Does not consume credits.
  • Does not require webhook_url.
The body accepts the exact same filter parameters as the regular account search — see Search accounts by filters for the full reference (included_industries, excluded_industries, included_locations, excluded_locations, company_size, keyword, min_revenue, max_revenue, revenue_currency, …). webhook_url, name, limit, and streaming are accepted but ignored: the response always contains up to 25 accounts.

Rate Limits

  • Your plan’s per-minute request limit, counted per user (see Rate Limiting).

Response

200 OK — returns immediately with:

Example

Authorizations

X-API-KEY
string
header
required

Your API key

Headers

Idempotency-Key
string

A unique value you generate per operation, such as a UUID. Retrying with the same key and the same body returns the stored response instead of running the request again, so a retry after a timeout never charges twice. Successful responses are kept for 24 hours; a failed request is not stored and can be retried with the same key.

Maximum string length: 255
Example:

"4f1c2e9a-8a7d-4c1b-9f63-2d6e0b5a7c11"

Body

application/json

Accepts the same filters as POST /accounts/search. Set live: false to preview from Pipecorn's companies database instead of LinkedIn Sales Navigator. webhook_url, name, limit, and streaming are accepted but ignored. The response includes up to 25 matches.

live
boolean
default:true

Set to false to preview from the Pipecorn database and use database-only filters.

industry_codes
object[]

Include companies matching any of these NAF or NAICS activity codes or their descendants. Requires live: false; with live: true the request answers 422.

Example:
excluded_industry_codes
object[]

Exclude companies matching any of these NAF or NAICS activity codes or their descendants. Requires live: false; with live: true the request answers 422.

Example:

Match any of the supplied French SIRENs. A SIRET is accepted and matched using its SIREN. Requires live: false; with live: true the request answers 422.

Maximum array length: 1000
Example:

Response

Preview generated successfully.

total_count
integer

Estimated total number of accounts matching the filters (not capped to 25).

preview
object[]

Up to 25 matching accounts. With live: false, each account also carries its location, domain, website, description, headcount, company type, founding year, business models, activity codes and legal identifiers.