API DOCUMENTATION / GET STARTED WITH HEADCOUNT LABS
Get started with Headcount Labs
Create a key, make a first request, read a full real job record, and fix the common errors.
1. Choose one useful result
Start with a small task: find a page of roles, count matching jobs, or inspect one known combined job ID. Write down the title, region, source needs and required fields. The jobs reference explains which route supports each task; filter support can differ between list and count routes. The public sample explorer is useful for inspecting dated source snapshots without an account.
2. Open your account and create a key
Create an account or sign in on the separate API host, then open API key management. Create an API key there; you send it as a bearer token. Every organization gets 100,000 records free each UTC calendar month, shared by all its keys. Past that you pay per record; see pricing and rate limits.
3. Prepare a safe request environment
Use your own server or protected terminal, with credentials kept server-side. Set HEADCOUNTLABS_BASE_URL to https://api.headcountlabs.com. The request below contains a placeholder, not a usable key. Replace it only in your protected environment with a credential issued for your account; check authentication first. This public website never asks you to enter a key and does not run API requests for you. Never send a password or API key by email, in a URL, or through the contact form.
4. Request a page of jobs
curl --request GET "$HEADCOUNTLABS_BASE_URL/v1/jobs?currentness=current&limit=50" --header 'Authorization: Bearer <API_KEY>'Set HEADCOUNTLABS_BASE_URL to https://api.headcountlabs.com and replace <API_KEY> with your credential. A request without a valid key returns JSON 401. The code samples show the same call in Python, Node.js, Ruby, PHP and curl, and Which route should I use? helps you choose between a list, a search and an export.
5. Check the response before continuing
This is a real job from the live API, as a list returns it. A list response also has next_cursor and snapshot_watermark next to data. The company and source_data objects appear only when you ask for them with include=company,source_data, and the description is shortened here.
{
"data": [
{
"job_id": "9f70ad16-ab51-49fe-b964-62067a7946b3",
"currentness": "current",
"stale": false,
"company_id": "3483b509-5f22-4535-a907-19c285f3b460",
"employer_name": {
"state": "known",
"value": "Cloudflare"
},
"title": {
"state": "known",
"value": "Senior Customer Engineer, Strategic - San Francisco"
},
"description": {
"state": "known",
"value": "(plain-text job description, left out here for length)"
},
"work_arrangement": {
"state": "known",
"value": "hybrid"
},
"locations": [
{
"state": "known",
"value": {
"city": "San Francisco",
"region": "US-CA",
"country": "US",
"county_fips": "06075",
"msa": {
"type": "metro",
"cbsa_code": "41860",
"cbsa_title": "San Francisco-Oakland-Fremont, CA"
}
}
}
],
"job_first_seen_at": "2026-10-07T19:31:45.114Z",
"curated_at": "2026-10-13T07:33:18.049Z",
"job_updated_at": "2026-10-14T23:30:26.947Z",
"postings": [
{
"posting_id": "79de47fa11a25e23ad485762a9a0fb1c09cca32f3ae3c108b7788734134d504c",
"source": "greenhouse",
"source_posting_id": "8246078",
"posting_status": "listed",
"posting_url": {
"state": "known",
"value": "https://boards.greenhouse.io/cloudflare/jobs/8246078?gh_jid=8246078"
},
"application_url": {
"state": "known",
"value": "https://boards.greenhouse.io/cloudflare/jobs/8246078?gh_jid=8246078"
},
"location": {
"state": "known",
"value": {
"city": "San Francisco",
"state": "CA",
"remote": false,
"country": "US"
}
},
"pay": {
"state": "known",
"value": {
"max": 336000,
"min": 214000,
"currency": "USD",
"interval": "year"
}
},
"source_posted_at": "2026-10-06T14:22:31.000Z",
"first_seen_at": "2026-10-07T19:31:45.114Z",
"last_completed_fetch_at": "2026-10-14T14:04:07.098Z",
"latest_application_check": null,
"attribution": {
"required": null,
"text": null,
"link": null
},
"source_data": {
"job_location_type": "hybrid",
"source_posted_at": "2026-10-06T14:22:31.000Z",
"source_updated_at": "2026-10-14T00:57:01.000Z",
"employment_type": null,
"source_type": "greenhouse",
"availability": "listed"
}
}
],
"company": {
"company_id": "3483b509-5f22-4535-a907-19c285f3b460",
"name": "Cloudflare",
"country": "US",
"status": "active",
"region": "CA",
"address_source": "sec",
"identifiers": [
{
"scheme": "ein",
"value": "270805829",
"exchange": null,
"source": "sec"
},
{
"scheme": "sec_cik",
"value": "0001477333",
"exchange": null,
"source": "sec"
},
{
"scheme": "ticker",
"value": "NET",
"exchange": null,
"source": "sec"
},
{
"scheme": "uei",
"value": "JV9YXS9MLA48",
"exchange": null,
"source": "sam_gov"
}
],
"industries": [
{
"system": "naics",
"code": "541519",
"source": "sam_gov"
},
{
"system": "sic",
"code": "7372",
"source": "sec"
}
]
}
}
],
"next_cursor": "<opaque cursor, or null on the last page>",
"snapshot_watermark": "2026-10-14T01:43:41.000Z"
}Check the HTTP status and content type before reading data. A successful empty data array is different from an error. Read state before value on every wrapped field, and keep source_omitted apart from a known value. Follow next_cursor as the pagination guide describes; do not invent one. Every posting carries attribution. The field dictionary explains each field of this record.
6. Troubleshoot without sharing secrets
For 401, check that you sent a valid bearer key to the intended API host. For 403, confirm the account entitlement. For 429, follow returned retry guidance and the account policy rather than repeatedly retrying. A 503 can indicate unavailable source data or a service dependency. Route-specific meanings and recovery details are in errors and response headers.
If you need help, prepare a support email to [email protected]. Include the method and path, UTC time, status code, request ID if present, and redacted error text. Remove the Authorization header, credentials and private record content. The contact form opens a draft in your email app; you review it and choose whether to send. It does not submit a ticket or confirm delivery.
Choose the route that matches the task
Jobs covers combined job records, counts, detail, and a changes feed. Companies covers the company registry and company job listing. Usage reports describe request and returned-record reporting.
Continue in the reference
Check related request behavior before you build.
View route status and methods Discuss API requirements