Skip to main content
The Company Headcount API returns how many people work at a company, split into 14 departments, with a month-by-month history. Look up one company with GET /v2/companies/workforce, add the same data to any company record, or search for companies by headcount and growth.

Ways to use headcount data

Examples

Headcount lookups and searches in cURL, four SDKs, and the CLI.

Workforce fields

Every field in the workforce object.

Get a company’s headcount

This request returns the current headcount for a company, by domain. You need an API key, which you can create at app.companyenrich.com/access-keys.
The response has the current headcount and the latest 12 months of history. This example shows a fictional company.

Request parameters

Send exactly one of domain or id.

Response fields

departmentHeadcount uses these keys: cSuite, productManagement, engineeringTechnical, design, education, finance, humanResources, informationTechnology, legal, marketing, medicalHealth, operations, sales, and consulting. See Workforce departments.

Observed count and estimated range

The two size fields answer different questions:
  • observedEmployeeCount counts the people in the CompanyEnrich people dataset who currently work at the company. The department numbers break this count down.
  • employeeCountRange is the estimated size range of the whole company, using the same employee ranges as the company record.

Headcount history

Each response covers a 12-month window, from historyFrom up to historyTo.
  • history lists the months where headcount changed, newest first. Each point has a date, which is the first day of that month, and the same count and department fields as the current headcount.
  • A point at the start of the window carries forward the last known earlier headcount when one is available.
  • To go further back, send the request again with cursor set to nextCursor. Each earlier 12-month page costs 1 credit.
  • A cursor expires 30 minutes after the first page.
  • When nextCursor is missing, there is no older history.
See Go back further than 12 months.

Search companies by headcount

Two company search filters use the same headcount data. They add nothing to the price of the search. This search finds companies whose sales team grew at least 15% in the last year and that have at least 20 people in sales:
A growth ratio of 0.15 means 15%. A negative ratio means the headcount fell, so "max": -0.1 finds companies that shrank by 10% or more. Department names in these filters use underscores, such as engineering_technical.

What headcount data costs

  • 1 credit for each successful page from the workforce endpoint. A page is 12 months of history.
  • 1 extra credit per company for the workforce expansion on enrichment or search. It includes the latest 12 months.
  • Nothing for a company that is not found, an invalid cursor, or a history page that does not exist.
  • The search filters cost nothing extra. You pay the normal price of the search.
For example, three years of history for one company costs 3 credits. See Credits for every price.

Limits

Coming from the V1 workforce endpoint

Both versions take id or domain, and both return current headcount, the employee range, department headcounts, and history. Which one costs less depends on how much history you read, because V2 charges for each 12-month page.

Common questions

How far back does the history go?

It depends on the company. Keep requesting earlier pages with nextCursor until the response has no nextCursor.

Can I get headcount for many companies at once?

Yes. Request the workforce expansion on a company search, a batch enrichment, or a bulk enrichment. It adds 1 credit per company.

How do I find companies that are growing?

Use the workforceGrowth filter on company search with a min ratio. See Find companies that are growing.

How do I find companies that are shrinking?

Use workforceGrowth with a negative max ratio. See Find companies that are shrinking.

Can I measure growth for one department?

Yes. Set department on workforceGrowth, such as sales or engineering_technical. Use overall for the whole company.

Why is the observed count different from the employee range?

They measure different things. The observed count is the number of people in the CompanyEnrich people dataset who work at the company, and the range is an estimate of the company’s total size.

Company Headcount API examples

Ready-to-run headcount lookups and searches.

Company Search API filters

The headcount and growth filters in full.

Field values

Department names in each spelling.

API reference

The full request and response specification, with a playground.