Skip to main content
POST
Get company headcount by department

Company identification

Provide one of:
  • company_linkedin_id: the LinkedIn company identifier
  • company_linkedin_url: the company’s LinkedIn profile URL (regular or Sales Navigator)
Neither answers 400. With live: true, the URL is resolved to its LinkedIn id; with live: false, the company is looked up by URL in the Pipecorn database.

Credits and rate limits

  • Credits: 1 credit per request, with live: true or live: false. A lookup that matches no company (404) costs nothing.
  • 20 requests per second per user, on top of your plan’s per-minute limit (see Rate Limiting). The counter is shared with # people at company.
If your balance is below 1 credit, the request is rejected with 402 Payment Required and code: "insufficient_credits" before any lookup. A workspace weekly credit limit returns 403 Forbidden with code: "workspace_limit_exceeded" instead. See Credit and limit errors.

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
company_linkedin_id
string
required

LinkedIn company identifier

Example:

"1818"

departments
enum<string>[]

List of departments to get headcount for. If not provided, returns data for all departments.

Available options:
Accounting,
Administrative,
Arts and Design,
Business Development,
Community and Social Services,
Consulting,
Customer Success and Support,
Education,
Engineering,
Entrepreneurship,
Finance,
Healthcare Services,
Human Resources,
Information Technology,
Legal,
Marketing,
Media and Communication,
Military and Protective Services,
Operations,
Product Management,
Program and Project Management,
Purchasing,
Quality Assurance,
Real Estate,
Research,
Sales
Example:
live
boolean
default:false

Data source toggle. false (default) answers from Pipecorn's companies database (Elasticsearch), with no integration required, returning a current headcount snapshot (total_headcount plus departments with current_headcount) without evolution data. true returns the live department headcount with 3/6/12-month evolution from LinkedIn and requires a connected Sales Navigator account. A non-boolean value returns 422.

Example:

false

Response

Successfully retrieved headcount data

{key}
object