Skip to main content
POST
Find company lookalikes
Find companies that look like your target accounts. Send one or more LinkedIn company URLs; the API uses them (up to 3 for keyword generation) to build a lookalike search and delivers results to your webhook. The response includes an import id, total count, and a preview of the first 10 matching companies. You must provide either company_linkedin_url or company_linkedin_urls, plus webhook_url. Optionally filter by company_size, included_locations, and excluded_locations, and cap results with limit. By default (live: true) the search runs live on LinkedIn Sales Navigator: it needs a connected Sales Navigator account, and imports at most 1000 companies whatever the limit. Pass live: false to search the Pipecorn companies database instead, with no integration required.

Location IDs Reference

Location IDs used in included_locations and excluded_locations can be retrieved using the Location IDs endpoint, with "source": "live" for a live search or "source": "database" with live: false. Provide a location name (e.g. “San Francisco”) and the API returns matching locations with their IDs.

Authorizations

X-API-KEY
string
header
required

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
webhook_url
string<uri>
required

URL to receive lookalike results

Example:

"https://your-company.com/webhooks/lookalikes"

company_linkedin_url
string<uri>

Single LinkedIn company URL to use as reference (use this or company_linkedin_urls)

Example:

"https://www.linkedin.com/company/acme-corp"

company_linkedin_urls
string<uri>[]

LinkedIn company URLs to use as reference, up to 3 used for LLM keyword generation (use this or company_linkedin_url)

Example:
streaming
boolean

Whether to stream results to the webhook as they are found

Example:

false

limit
integer

Maximum number of companies to import. Must be a positive integer.

Required range: x >= 1
Example:

100

company_size
string[]

Company size range filters (e.g. headcount bands)

Example:
included_locations
string[]

Location IDs to include, from POST /locations with the source matching live (live by default, database with live: false). An ID from another source returns 422.

Example:
excluded_locations
string[]

Location IDs to exclude, from the same source as included_locations

Example:
live
boolean
default:true

Data source. true (default) searches live on LinkedIn Sales Navigator and needs a connected Sales Navigator account. false uses the Pipecorn companies database. A non-boolean value returns 422.

Example:

true

Response

Lookalike search started; results will be sent to the webhook

message
string

Confirmation message

Example:

"Lookalike search started successfully. You will receive the results on your webhook shortly."

id
string

Unique identifier for the import/search

Example:

"550e8400-e29b-41d4-a716-446655440000"

total
integer

Number of companies that will be imported: the match count, capped at 1000 with live: true, then at limit

Example:

100

preview
object[]

First 10 matching companies as a preview

status_url
string<uri>

Where to poll the import: GET /lists/{id}. Same value as the Location header.

Example:

"https://app.pipecorn.com/api/v2/lists/8e1dcba0-f0bb-4071-99fc-f18ba6559ccc"