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.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:observedEmployeeCountcounts the people in the CompanyEnrich people dataset who currently work at the company. The department numbers break this count down.employeeCountRangeis 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, fromhistoryFrom up to historyTo.
historylists the months where headcount changed, newest first. Each point has adate, 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
cursorset tonextCursor. Each earlier 12-month page costs 1 credit. - A cursor expires 30 minutes after the first page.
- When
nextCursoris missing, there is no older history.
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:
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
workforceexpansion 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.
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 withnextCursor until the response has no nextCursor.
Can I get headcount for many companies at once?
Yes. Request theworkforce 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 theworkforceGrowth filter on company search with a min ratio. See Find companies that are growing.
How do I find companies that are shrinking?
UseworkforceGrowth with a negative max ratio. See Find companies that are shrinking.
Can I measure growth for one department?
Yes. Setdepartment 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.Related pages
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.