{"openapi":"3.1.0","info":{"title":"Breaknorm API","version":"2.0.0","description":"Search **companies, locations, people, events, job postings and the relationships between businesses** in one index, enrich a company from its domain, find and verify work e-mail addresses, export whole segments and crawl websites live.\n\nEvery endpoint is also a tool of the [Breaknorm MCP server](#description/mcp): the same arguments, the same answers, the same rows counted. Build with whichever fits — an agent through MCP, your own code through this API.\n\n## Quickstart\n\nCreate a key on the **API keys** page of the [dashboard](https://app.breaknorm.co/keys), then search:\n\n```bash\ncurl https://api.breaknorm.co/v2/companies/search \\\n  -H \"Authorization: Bearer $BREAKNORM_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"text\": \"roofing\",\n    \"where\": [\n      { \"field\": \"country\", \"value\": \"US\" },\n      { \"field\": \"admin1\", \"value\": \"TX\" }\n    ],\n    \"size\": 2,\n    \"fields\": [\"company_id\", \"name\", \"domain\", \"city\"]\n  }'\n```\n\n```json\n{\n  \"entity\": \"companies\",\n  \"total\": 9335,\n  \"hits\": [\n    { \"company_id\": \"LC00012345678\", \"name\": \"Hill Country Roofing\", \"domain\": \"hillcountryroofing.com\", \"city\": \"Austin\" },\n    { \"company_id\": \"LC00023456789\", \"name\": \"Lone Star Roof Pros\", \"domain\": \"lonestarroofpros.com\", \"city\": \"Round Rock\" }\n  ],\n  \"next_cursor\": \"eyJ…\",\n  \"rows_charged\": 2\n}\n```\n\n## Authentication\n\nSend your key as a bearer token on every request:\n\n```http\nAuthorization: Bearer bnk_live_…\n```\n\nKeys are created and revoked on the [API keys](https://app.breaknorm.co/keys) page. Use one key per application, so you can revoke one without touching the others. A missing or revoked key answers `401`.\n\n## Rows and limits\n\nYour plan includes **rows**. Every record an answer shows is one row, each time it is shown: a search hit, a company you open and the people listed with it, a matched company, an exported line.\n\n**E-mail finding and verification** count per result: a verified address found is 2 rows, an address checked is 1 row, and a find that returns no deliverable address is free. A repeated lookup that is answered from the cache costs the same as the first.\n\nFree, on every plan:\n\n- **counts and facets** (`count_only: true`, `facets`),\n- **job postings**: searching, reading and exporting them,\n- hiring summaries and team tech stacks,\n- the schema and your usage.\n\nEach answer says what it cost in `rows_charged` (and the `X-Rows-Charged` header). `GET /v2/usage` shows what is left. When the rows run out, calls that show records answer `429` with code `quota_exceeded` and the time the window frees up; counts keep working.\n\nThe Free plan shows the first 25 results of a search and no further pages.\n\n## Filters\n\nEvery search takes the same filter language. A **condition** is `{ field, op, value }`:\n\n```json\n{ \"field\": \"size.employees\", \"op\": \"gte\", \"value\": 50 }\n```\n\n| op | value | meaning |\n|---|---|---|\n| `eq` / `ne` | one value | equals / does not equal |\n| `in` / `not_in` | array | one of / none of |\n| `gt` `gte` `lt` `lte` | number or date | ranges |\n| `between` | `[from, to]` | inclusive range |\n| `match` | text | words in a text field (substring of a keyword) |\n| `prefix` | text | starts with |\n| `exists` / `missing` | — | the field has a value / has none |\n| `within_km` | `{ lat, lon, km }` | around a point (field `geo`) |\n| `bbox` | `{ top, left, bottom, right }` | inside a box (field `geo`) |\n\n`op` can be left out: an array means `in`, no value means `exists`, a text field means `match`, anything else `eq`. Dates accept `2026-01-01` and relative forms such as `now-90d`.\n\nConditions combine like this:\n\n- `where` — all must hold (AND),\n- `any_of` — `[[…], […]]`, at least one group must hold (OR of AND-groups),\n- `exclude` — none may hold.\n\nConditions on the same nested list (`events.*`, `attrs.*`, `emails.*`) with the same `group` apply to **one** element: an ownership change *in the last 90 days*, not any ownership change plus any event in 90 days.\n\n```json\n\"where\": [\n  { \"field\": \"events.kind\", \"value\": \"ownership_change\", \"group\": \"a\" },\n  { \"field\": \"events.date\", \"op\": \"gte\", \"value\": \"now-90d\", \"group\": \"a\" }\n]\n```\n\n`GET /v2/schema` lists every filterable field per entity and the values of the closed vocabularies. An unknown field is refused with the closest real ones.\n\n## Text search\n\n`text` searches names (and, for jobs, titles); every plain word must match. Results are then ranked by relevance instead of id. Job posting text is searched with a condition: `{ \"field\": \"description\", \"op\": \"match\", \"value\": \"NIST 800-171\" }`.\n\n## Counts and facets\n\n`count_only: true` returns the exact total without records — free. `facets` counts the matches per value of up to 8 fields at once (free with `count_only`):\n\n```json\n{ \"count_only\": true, \"facets\": [{ \"field\": \"admin1\", \"size\": 10 }, { \"field\": \"size.band\" }] }\n```\n\nA number field returns min / max / average, a date field a count per year.\n\n## Paging\n\n`size` sets the page (1–200, default 25). When there are more matches the answer carries `next_cursor`; send it as `cursor` with the same request to get the next page. Keep the same `sort` while paging. For more than a few thousand records, use an [export](#tag/exports).\n\n## Grouping\n\n`group_by` returns one entry per value of an id field instead of a flat list — one entry per company, for example — with `per_group` (1–5) records in each:\n\n```json\n{ \"where\": [{ \"field\": \"seniority\", \"value\": \"cxo\" }], \"group_by\": \"company_id\", \"per_group\": 2 }\n```\n\nThe answer has `groups: [{ key, total_in_group, hits }]` and `groups_total`; `size` counts groups.\n\n## Exports\n\n`POST /v2/exports` writes every match of a search (up to 2 million rows) to a gzip CSV or NDJSON file. If the file is ready within `wait_ms` (default 20 s) the answer carries the download link; otherwise it answers `202` with an `export_id` — poll `GET /v2/exports/{export_id}` until `status` is `done`. Rows are counted once, when the file is ready. Download links are valid for 24 hours; the file stays in the dashboard for 30 days.\n\n## Errors\n\nErrors have a stable `code`, a message written to act on, and the `request_id` to quote to support:\n\n```json\n{ \"error\": { \"code\": \"invalid_argument\", \"message\": \"unknown field 'employes'. Closest: size.employees\", \"retryable\": false, \"request_id\": \"req_…\" } }\n```\n\n| HTTP | code | what to do |\n|---|---|---|\n| 400 | `invalid_argument` | fix the request; the message names the problem |\n| 401 | `unauthenticated` | send a valid key |\n| 403 | `forbidden` | the key or plan cannot use this endpoint |\n| 404 | `not_found` | no such record or export |\n| 429 | `rate_limited` | too many calls at once — retry after `Retry-After` seconds |\n| 429 | `quota_exceeded` | the rows of your plan are used up for now |\n| 503 | `unavailable` | a short outage — retry after `Retry-After` seconds |\n\n## Rate limits\n\nEach organization has a rate and a number of calls in flight; a burst above them answers `429` with `Retry-After`. Run large jobs as exports rather than thousands of searches.\n\n## MCP\n\nThe same tools are available to AI agents over MCP at `https://mcp.breaknorm.co/mcp`. Claude and ChatGPT connect with a sign-in (no key); Claude Code, Cursor and your own agents use an API key:\n\n```bash\nclaude mcp add --transport http breaknorm https://mcp.breaknorm.co/mcp \\\n  --header \"Authorization: Bearer $BREAKNORM_API_KEY\"\n```"},"x-docs":{"sections":[{"id":"get-started","title":"Get started"},{"id":"find-companies","title":"Find companies"},{"id":"find-people","title":"Find people"},{"id":"find-emails","title":"Find and verify e-mails"},{"id":"find-places","title":"Find places"},{"id":"find-jobs","title":"Find jobs (free)"},{"id":"signals","title":"Events and relationships"},{"id":"export","title":"Export"},{"id":"crawl","title":"Crawl websites"},{"id":"reference","title":"Reference"}],"guides":[{"slug":"introduction","nav":"Introduction","title":"Breaknorm API","lead":"Companies, locations, people, events, job postings and relationships in one index — search them, enrich, export and crawl.","body":"Search **companies, locations, people, events, job postings and the relationships between businesses** in one index, enrich a company from its domain, find and verify work e-mail addresses, export whole segments and crawl websites live.\n\nEvery endpoint is also a tool of the [Breaknorm MCP server](#description/mcp): the same arguments, the same answers, the same rows counted. Build with whichever fits — an agent through MCP, your own code through this API."},{"slug":"quickstart","nav":"Quickstart","title":"Quickstart","lead":"Make your first call in a minute.","body":"Create a key on the **API keys** page of the [dashboard](https://app.breaknorm.co/keys), then search:\n\n```bash\ncurl https://api.breaknorm.co/v2/companies/search \\\n  -H \"Authorization: Bearer $BREAKNORM_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"text\": \"roofing\",\n    \"where\": [\n      { \"field\": \"country\", \"value\": \"US\" },\n      { \"field\": \"admin1\", \"value\": \"TX\" }\n    ],\n    \"size\": 2,\n    \"fields\": [\"company_id\", \"name\", \"domain\", \"city\"]\n  }'\n```\n\n```json\n{\n  \"entity\": \"companies\",\n  \"total\": 9335,\n  \"hits\": [\n    { \"company_id\": \"LC00012345678\", \"name\": \"Hill Country Roofing\", \"domain\": \"hillcountryroofing.com\", \"city\": \"Austin\" },\n    { \"company_id\": \"LC00023456789\", \"name\": \"Lone Star Roof Pros\", \"domain\": \"lonestarroofpros.com\", \"city\": \"Round Rock\" }\n  ],\n  \"next_cursor\": \"eyJ…\",\n  \"rows_charged\": 2\n}\n```"},{"slug":"authentication","nav":"Authentication","title":"Authentication","lead":"Every request carries your API key as a bearer token.","body":"Send your key as a bearer token on every request:\n\n```http\nAuthorization: Bearer bnk_live_…\n```\n\nKeys are created and revoked on the [API keys](https://app.breaknorm.co/keys) page. Use one key per application, so you can revoke one without touching the others. A missing or revoked key answers `401`."},{"slug":"rows-and-limits","nav":"Rows and limits","title":"Rows and limits","lead":"What counts against your plan, and what is free.","body":"Your plan includes **rows**. Every record an answer shows is one row, each time it is shown: a search hit, a company you open and the people listed with it, a matched company, an exported line.\n\n**E-mail finding and verification** count per result: a verified address found is 2 rows, an address checked is 1 row, and a find that returns no deliverable address is free. A repeated lookup that is answered from the cache costs the same as the first.\n\nFree, on every plan:\n\n- **counts and facets** (`count_only: true`, `facets`),\n- **job postings**: searching, reading and exporting them,\n- hiring summaries and team tech stacks,\n- the schema and your usage.\n\nEach answer says what it cost in `rows_charged` (and the `X-Rows-Charged` header). `GET /v2/usage` shows what is left. When the rows run out, calls that show records answer `429` with code `quota_exceeded` and the time the window frees up; counts keep working.\n\nThe Free plan shows the first 25 results of a search and no further pages."},{"slug":"filters","nav":"Filters","title":"Filters","lead":"One filter language for every search.","body":"Every search takes the same filter language. A **condition** is `{ field, op, value }`:\n\n```json\n{ \"field\": \"size.employees\", \"op\": \"gte\", \"value\": 50 }\n```\n\n| op | value | meaning |\n|---|---|---|\n| `eq` / `ne` | one value | equals / does not equal |\n| `in` / `not_in` | array | one of / none of |\n| `gt` `gte` `lt` `lte` | number or date | ranges |\n| `between` | `[from, to]` | inclusive range |\n| `match` | text | words in a text field (substring of a keyword) |\n| `prefix` | text | starts with |\n| `exists` / `missing` | — | the field has a value / has none |\n| `within_km` | `{ lat, lon, km }` | around a point (field `geo`) |\n| `bbox` | `{ top, left, bottom, right }` | inside a box (field `geo`) |\n\n`op` can be left out: an array means `in`, no value means `exists`, a text field means `match`, anything else `eq`. Dates accept `2026-01-01` and relative forms such as `now-90d`.\n\nConditions combine like this:\n\n- `where` — all must hold (AND),\n- `any_of` — `[[…], […]]`, at least one group must hold (OR of AND-groups),\n- `exclude` — none may hold.\n\nConditions on the same nested list (`events.*`, `attrs.*`, `emails.*`) with the same `group` apply to **one** element: an ownership change *in the last 90 days*, not any ownership change plus any event in 90 days.\n\n```json\n\"where\": [\n  { \"field\": \"events.kind\", \"value\": \"ownership_change\", \"group\": \"a\" },\n  { \"field\": \"events.date\", \"op\": \"gte\", \"value\": \"now-90d\", \"group\": \"a\" }\n]\n```\n\n`GET /v2/schema` lists every filterable field per entity and the values of the closed vocabularies. An unknown field is refused with the closest real ones."},{"slug":"text-search","nav":"Text search","title":"Text search","lead":"Find records by name and posting text.","body":"`text` searches names (and, for jobs, titles); every plain word must match. Results are then ranked by relevance instead of id. Job posting text is searched with a condition: `{ \"field\": \"description\", \"op\": \"match\", \"value\": \"NIST 800-171\" }`."},{"slug":"counts-and-facets","nav":"Counts and facets","title":"Counts and facets","lead":"Size a segment for free before you fetch it.","body":"`count_only: true` returns the exact total without records — free. `facets` counts the matches per value of up to 8 fields at once (free with `count_only`):\n\n```json\n{ \"count_only\": true, \"facets\": [{ \"field\": \"admin1\", \"size\": 10 }, { \"field\": \"size.band\" }] }\n```\n\nA number field returns min / max / average, a date field a count per year."},{"slug":"paging","nav":"Paging","title":"Paging","lead":"Walk through large result sets.","body":"`size` sets the page (1–200, default 25). When there are more matches the answer carries `next_cursor`; send it as `cursor` with the same request to get the next page. Keep the same `sort` while paging. For more than a few thousand records, use an [export](#tag/exports)."},{"slug":"grouping","nav":"Grouping","title":"Grouping","lead":"One result per company instead of a flat list.","body":"`group_by` returns one entry per value of an id field instead of a flat list — one entry per company, for example — with `per_group` (1–5) records in each:\n\n```json\n{ \"where\": [{ \"field\": \"seniority\", \"value\": \"cxo\" }], \"group_by\": \"company_id\", \"per_group\": 2 }\n```\n\nThe answer has `groups: [{ key, total_in_group, hits }]` and `groups_total`; `size` counts groups."},{"slug":"exports","nav":"Exports","title":"Exports","lead":"Whole segments as a file.","body":"`POST /v2/exports` writes every match of a search (up to 2 million rows) to a gzip CSV or NDJSON file. If the file is ready within `wait_ms` (default 20 s) the answer carries the download link; otherwise it answers `202` with an `export_id` — poll `GET /v2/exports/{export_id}` until `status` is `done`. Rows are counted once, when the file is ready. Download links are valid for 24 hours; the file stays in the dashboard for 30 days."},{"slug":"errors","nav":"Errors","title":"Errors","lead":"Stable error codes you can act on.","body":"Errors have a stable `code`, a message written to act on, and the `request_id` to quote to support:\n\n```json\n{ \"error\": { \"code\": \"invalid_argument\", \"message\": \"unknown field 'employes'. Closest: size.employees\", \"retryable\": false, \"request_id\": \"req_…\" } }\n```\n\n| HTTP | code | what to do |\n|---|---|---|\n| 400 | `invalid_argument` | fix the request; the message names the problem |\n| 401 | `unauthenticated` | send a valid key |\n| 403 | `forbidden` | the key or plan cannot use this endpoint |\n| 404 | `not_found` | no such record or export |\n| 429 | `rate_limited` | too many calls at once — retry after `Retry-After` seconds |\n| 429 | `quota_exceeded` | the rows of your plan are used up for now |\n| 503 | `unavailable` | a short outage — retry after `Retry-After` seconds |"},{"slug":"rate-limits","nav":"Rate limits","title":"Rate limits","lead":"How fast you can call.","body":"Each organization has a rate and a number of calls in flight; a burst above them answers `429` with `Retry-After`. Run large jobs as exports rather than thousands of searches."},{"slug":"mcp","nav":"MCP","title":"MCP","lead":"The same tools for AI agents.","body":"The same tools are available to AI agents over MCP at `https://mcp.breaknorm.co/mcp`. Claude and ChatGPT connect with a sign-in (no key); Claude Code, Cursor and your own agents use an API key:\n\n```bash\nclaude mcp add --transport http breaknorm https://mcp.breaknorm.co/mcp \\\n  --header \"Authorization: Bearer $BREAKNORM_API_KEY\"\n```"}]},"servers":[{"url":"https://api.breaknorm.co"}],"security":[{"bearer":[]}],"tags":[{"name":"get-started","x-displayName":"Get started","description":"Your plan and what it has left. Start with the introduction above: authentication, rows, filters and paging work the same on every endpoint."},{"name":"find-companies","x-displayName":"Find companies","description":"Search companies, open one with its people and jobs, match a list of domains, or enrich a company from its website."},{"name":"find-people","x-displayName":"Find people","description":"Owners, executives and staff with title, seniority, function and contact details where they are known."},{"name":"find-emails","x-displayName":"Find and verify e-mails","description":"Find a person's work e-mail address from their name and company domain, or check whether an address is deliverable — checked against the mail server, without sending mail. One at a time, or lists in the background."},{"name":"find-places","x-displayName":"Find places","description":"Physical places of business — shops, offices, clinics, depots — with address, category and the area around them."},{"name":"find-jobs","x-displayName":"Find jobs (free)","description":"Job postings from 600k watched companies, refreshed hourly. Searching, reading and exporting them is free on every plan."},{"name":"signals","x-displayName":"Events and relationships","description":"Dated facts about businesses, and who works with whom."},{"name":"export","x-displayName":"Export","description":"Whole segments as a file."},{"name":"crawl","x-displayName":"Crawl websites","description":"Crawl websites now and read their contacts, social profiles and technologies (Live scraper add-on)."},{"name":"reference","x-displayName":"Reference","description":"The fields you can filter on."}],"paths":{"/v2/usage":{"get":{"operationId":"get_usage","summary":"Check Plan and Usage","description":"**Check Your Plan, Rows and Limits.** See your plan, how many rows are left in the current window, your live-crawl allowance and how many results a search can show.\n\n> [!NOTE]\n> **Cost:** Free\n\n> [!TIP]\n> Call it before a large job: compare rows left with the size of the run.\n\nAlso available to AI agents as the MCP tool `get_usage`.","tags":["get-started"],"x-docs":{"section":"get-started","slug":"usage","nav":"Check Plan and Usage","title":"Check Your Plan, Rows and Limits","lead":"See your plan, how many rows are left in the current window, your live-crawl allowance and how many results a search can show.","cost":"Free","tip":"Call it before a large job: compare rows left with the size of the run."},"parameters":[],"responses":{"200":{"description":"OK. `rows_charged` = rows counted for this call (also in the X-Rows-Charged header).","content":{"application/json":{"schema":{"type":"object"},"example":{"organization":{"id":"org_…","name":"Hill Country Roofing"},"plan":"light","access":"full","rows":{"window":"rolling 30 days","limit":100000,"used":1840,"left":98160},"websites":null,"job_postings":"free and unlimited on every plan: search_jobs, get_job and export of jobs never count","max_results_per_search":null}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v2/companies/search":{"post":{"operationId":"search_companies","summary":"Search Companies","description":"**Search Companies by Location, Size, Category and More.** Find companies by any combination of fields and text — location, category, size, technology, events — with counts and facets for free.\n\n> [!NOTE]\n> **Cost:** 1 row per company returned · counts and facets free\n\n> [!TIP]\n> Size a segment first with count_only: true and facets — it costs nothing — then fetch the records you need.\n\nAlso available to AI agents as the MCP tool `search_companies`.","tags":["find-companies"],"x-docs":{"section":"find-companies","slug":"search-companies","nav":"Search Companies","title":"Search Companies by Location, Size, Category and More","lead":"Find companies by any combination of fields and text — location, category, size, technology, events — with counts and facets for free.","cost":"1 row per company returned · counts and facets free","tip":"Size a segment first with count_only: true and facets — it costs nothing — then fetch the records you need."},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"Words to find in names (job titles for jobs). Every plain word must match; results are ranked by relevance."},"where":{"type":"array","items":{"$ref":"#/components/schemas/Condition"},"description":"Conditions that must all hold (AND)."},"any_of":{"type":"array","items":{"type":"array","items":{"$ref":"#/components/schemas/Condition"}},"description":"Groups of conditions, at least one group must hold (OR of ANDs)."},"exclude":{"type":"array","items":{"$ref":"#/components/schemas/Condition"},"description":"Conditions none of which may hold."},"es_query":{"type":"object","description":"Advanced: one raw Elasticsearch query clause, ANDed with the rest (read-only)."},"fields":{"type":"array","items":{"type":"string"},"description":"Fields to return (dotted paths). Default: a compact set per entity."},"sort":{"type":"array","items":{"$ref":"#/components/schemas/Sort"},"description":"Order of the results. Default: relevance with text, otherwise id."},"size":{"type":"integer","minimum":1,"maximum":200,"default":25,"description":"Records per page."},"cursor":{"type":"string","description":"The next_cursor of the previous page."},"group_by":{"type":"string","description":"One entry per value of an id field (company_id, brand_id …), with per_group records each."},"per_group":{"type":"integer","minimum":1,"maximum":5,"default":1,"description":"Records per group."},"count_only":{"type":"boolean","description":"Only the exact total (and facets), no records. Free."},"facts":{"type":"object","description":"Which facts of each record to return: {names?, latest_only?, limit?}."},"facets":{"type":"array","maxItems":8,"items":{"$ref":"#/components/schemas/Facet"},"description":"Counts per value of up to 8 fields over every match (free with count_only)."},"include_service_points":{"type":"boolean","description":"Also return companies made only of service-point listings."}}},"example":{"text":"roofing","where":[{"field":"country","value":"US"},{"field":"admin1","value":"TX"},{"field":"size.employees","op":"gte","value":10}],"size":25,"fields":["company_id","name","domain","city","size"]}}}},"responses":{"200":{"description":"OK. `rows_charged` = rows counted for this call (also in the X-Rows-Charged header).","content":{"application/json":{"schema":{"type":"object"},"example":{"entity":"companies","total":412,"hits":[{"company_id":"LC00012345678","name":"Hill Country Roofing","domain":"hillcountryroofing.com","country":"US","admin1":"TX","city":"Austin","category":{"vertical":"construction","subvertical":"roofing_contractors"},"size":{"band":"11-50","employees":34}}],"next_cursor":"eyJ…","rows_charged":1}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v2/companies/{company_id}":{"get":{"operationId":"get_company","summary":"Get a Company","description":"**Get a Company with Its Locations, People and Jobs.** Open one company by its id or domain: the full record with its locations, decision makers, latest events, relationships and open job postings.\n\n> [!NOTE]\n> **Cost:** 1 row for the company + 1 per person listed\n\n> [!TIP]\n> Lower people= when you only need the company: every person listed is a row.\n\nAlso available to AI agents as the MCP tool `get_company`.","tags":["find-companies"],"x-docs":{"section":"find-companies","slug":"get-company","nav":"Get a Company","title":"Get a Company with Its Locations, People and Jobs","lead":"Open one company by its id or domain: the full record with its locations, decision makers, latest events, relationships and open job postings.","cost":"1 row for the company + 1 per person listed","tip":"Lower people= when you only need the company: every person listed is a row."},"parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"string"},"description":"A company id (LC…) or the company's website domain.","example":"LC00012345678"},{"name":"locations","in":"query","required":false,"schema":{"type":"integer","description":"max locations (default 20)"},"description":"max locations (default 20)"},{"name":"people","in":"query","required":false,"schema":{"type":"integer","description":"max people (default 20)"},"description":"max people (default 20)"},{"name":"events","in":"query","required":false,"schema":{"type":"integer","description":"max events (default 20)"},"description":"max events (default 20)"},{"name":"jobs","in":"query","required":false,"schema":{"type":"integer","description":"max open postings (default 20)"},"description":"max open postings (default 20)"},{"name":"relations","in":"query","required":false,"schema":{"type":"integer","description":"top edges per relation and direction (default 5, 0 = none)"},"description":"top edges per relation and direction (default 5, 0 = none)"},{"name":"facts","in":"query","required":false,"schema":{"type":"string","description":"JSON-encoded object"},"description":"Which facts of each record to return: {names?, latest_only?, limit?}."}],"responses":{"200":{"description":"OK. `rows_charged` = rows counted for this call (also in the X-Rows-Charged header).","content":{"application/json":{"schema":{"type":"object"},"example":{"company":{"company_id":"LC00012345678","name":"Hill Country Roofing","domain":"hillcountryroofing.com","country":"US","admin1":"TX","city":"Austin","category":{"vertical":"construction","subvertical":"roofing_contractors"},"size":{"band":"11-50","employees":34}},"locations":{"total":2,"items":[]},"people":{"total":4,"items":[{"person_id":"LP00000000101","company_id":"LC00012345678","full_name":"Dana Whitfield","role":"Owner","seniority":"owner","is_decision_maker":true,"email":"dana@example.com","email_status":"valid"}]},"events":{"total":12,"items":[]},"jobs":{"open":3,"items":[{"job_id":"LJ184467321","company_id":"LC00012345678","company_name":"Hill Country Roofing","company_domain":"hillcountryroofing.com","title":"Roofing Sales Representative","function":"sales","seniority":"mid","city":"Austin","admin1":"TX","country":"US","posted_at":"2026-11-14","is_open":true}]},"rows_charged":2}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v2/companies/match":{"post":{"operationId":"match_companies","summary":"Match Companies by Domain","description":"**Match a List of Domains or Names to Companies.** Turn up to 1,000 domains — or 200 names with a city or state — into company records in one call.\n\n> [!NOTE]\n> **Cost:** 1 row per matched company · unmatched inputs are free\n\n> [!TIP]\n> Send URLs as they are in your CRM: https://, www. and paths are stripped before matching.\n\nAlso available to AI agents as the MCP tool `match_companies`.","tags":["find-companies"],"x-docs":{"section":"find-companies","slug":"match-companies","nav":"Match Companies by Domain","title":"Match a List of Domains or Names to Companies","lead":"Turn up to 1,000 domains — or 200 names with a city or state — into company records in one call.","cost":"1 row per matched company · unmatched inputs are free","tip":"Send URLs as they are in your CRM: https://, www. and paths are stripped before matching."},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domains":{"type":"array","items":{"type":"string"}},"names":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"city":{"type":"string"},"admin1":{"type":"string"},"country":{"type":"string"}},"required":["name"]}},"fields":{"type":"array","items":{"type":"string"},"description":"Fields to return (dotted paths). Default: a compact set per entity."}}},"example":{"domains":["hillcountryroofing.com","https://www.lonestarroofpros.com/contact","unknown-domain.com"],"fields":["company_id","name","domain"]}}}},"responses":{"200":{"description":"OK. `rows_charged` = rows counted for this call (also in the X-Rows-Charged header).","content":{"application/json":{"schema":{"type":"object"},"example":{"matches":[{"input":"hillcountryroofing.com","company":{"company_id":"LC00012345678","name":"Hill Country Roofing","domain":"hillcountryroofing.com"},"match":"domain"},{"input":"https://www.lonestarroofpros.com/contact","company":{"company_id":"LC00023456789","name":"Lone Star Roof Pros","domain":"lonestarroofpros.com"},"match":"domain"},{"input":"unknown-domain.com","company":null,"match":null}],"matched":2,"unmatched":1,"rows_charged":2}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v2/companies/enrich":{"post":{"operationId":"enrich_company","summary":"Enrich a Company","description":"**Enrich a Company from Its Domain.** Everything known about a company from its website domain — and with fresh: true, a live crawl of the site for current contacts and technologies.\n\n> [!NOTE]\n> **Cost:** 1 row for the company + 1 per person · fresh: true also uses 1 site crawl\n\n> [!TIP]\n> Leave fresh off for speed: the latest cached crawl is added when there is one.\n\nAlso available to AI agents as the MCP tool `enrich_company`.","tags":["find-companies"],"x-docs":{"section":"find-companies","slug":"enrich-company","nav":"Enrich a Company","title":"Enrich a Company from Its Domain","lead":"Everything known about a company from its website domain — and with fresh: true, a live crawl of the site for current contacts and technologies.","cost":"1 row for the company + 1 per person · fresh: true also uses 1 site crawl","tip":"Leave fresh off for speed: the latest cached crawl is added when there is one."},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","description":"The company's website domain or URL, e.g."},"fresh":{"type":"boolean","description":"Crawl the website now (default false: the latest cached crawl, if any)."},"mode":{"type":"string","enum":["homepage","contact","crawl"],"description":"With fresh: how much of the site to read (default contact)."},"people":{"type":"integer","description":"Max people (default 20)."}},"required":["domain"]},"example":{"domain":"hillcountryroofing.com","fresh":false}}}},"responses":{"200":{"description":"OK. `rows_charged` = rows counted for this call (also in the X-Rows-Charged header).","content":{"application/json":{"schema":{"type":"object"},"example":{"domain":"hillcountryroofing.com","company":{"company_id":"LC00012345678","name":"Hill Country Roofing","domain":"hillcountryroofing.com","country":"US","admin1":"TX","city":"Austin","category":{"vertical":"construction","subvertical":"roofing_contractors"},"size":{"band":"11-50","employees":34}},"people":{"total":4,"items":[{"person_id":"LP00000000101","company_id":"LC00012345678","full_name":"Dana Whitfield","role":"Owner","seniority":"owner","is_decision_maker":true,"email":"dana@example.com","email_status":"valid"}]},"website":{"status":"ok","emails":["office@hillcountryroofing.com"],"technologies":["wordpress","google-analytics"]},"rows_charged":2}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v2/people/search":{"post":{"operationId":"search_people","summary":"Search People","description":"**Search People by Title, Seniority and Location.** Find owners, executives and staff across every company by title, seniority, function, place and whether they have an e-mail or a direct phone.\n\n> [!NOTE]\n> **Cost:** 1 row per person returned · counts and facets free\n\n> [!TIP]\n> Filter has_email: true for people you can write to, and phone_shared: false for direct lines.\n\nAlso available to AI agents as the MCP tool `search_people`.","tags":["find-people"],"x-docs":{"section":"find-people","slug":"search-people","nav":"Search People","title":"Search People by Title, Seniority and Location","lead":"Find owners, executives and staff across every company by title, seniority, function, place and whether they have an e-mail or a direct phone.","cost":"1 row per person returned · counts and facets free","tip":"Filter has_email: true for people you can write to, and phone_shared: false for direct lines."},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"Words to find in names (job titles for jobs). Every plain word must match; results are ranked by relevance."},"where":{"type":"array","items":{"$ref":"#/components/schemas/Condition"},"description":"Conditions that must all hold (AND)."},"any_of":{"type":"array","items":{"type":"array","items":{"$ref":"#/components/schemas/Condition"}},"description":"Groups of conditions, at least one group must hold (OR of ANDs)."},"exclude":{"type":"array","items":{"$ref":"#/components/schemas/Condition"},"description":"Conditions none of which may hold."},"es_query":{"type":"object","description":"Advanced: one raw Elasticsearch query clause, ANDed with the rest (read-only)."},"fields":{"type":"array","items":{"type":"string"},"description":"Fields to return (dotted paths). Default: a compact set per entity."},"sort":{"type":"array","items":{"$ref":"#/components/schemas/Sort"},"description":"Order of the results. Default: relevance with text, otherwise id."},"size":{"type":"integer","minimum":1,"maximum":200,"default":25,"description":"Records per page."},"cursor":{"type":"string","description":"The next_cursor of the previous page."},"group_by":{"type":"string","description":"One entry per value of an id field (company_id, brand_id …), with per_group records each."},"per_group":{"type":"integer","minimum":1,"maximum":5,"default":1,"description":"Records per group."},"count_only":{"type":"boolean","description":"Only the exact total (and facets), no records. Free."},"facts":{"type":"object","description":"Which facts of each record to return: {names?, latest_only?, limit?}."},"facets":{"type":"array","maxItems":8,"items":{"$ref":"#/components/schemas/Facet"},"description":"Counts per value of up to 8 fields over every match (free with count_only)."},"include_registered_agents":{"type":"boolean"}}},"example":{"where":[{"field":"seniority","value":["owner","cxo"]},{"field":"has_email","value":true},{"field":"admin1","value":"TX"}],"size":25}}}},"responses":{"200":{"description":"OK. `rows_charged` = rows counted for this call (also in the X-Rows-Charged header).","content":{"application/json":{"schema":{"type":"object"},"example":{"entity":"people","total":52311,"hits":[{"person_id":"LP00000000101","company_id":"LC00012345678","full_name":"Dana Whitfield","role":"Owner","seniority":"owner","is_decision_maker":true,"email":"dana@example.com","email_status":"valid"}],"next_cursor":"eyJ…","rows_charged":1}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v2/people/lookup":{"post":{"operationId":"get_people","summary":"People at Companies","description":"**Get the People at a List of Companies.** Attach decision makers — or anyone matching your filters — to up to 1,000 companies or locations you already have.\n\n> [!NOTE]\n> **Cost:** 1 row per person returned\n\n> [!TIP]\n> Set per_company to the number of contacts you will actually use; the default is 5.\n\nAlso available to AI agents as the MCP tool `get_people`.","tags":["find-people"],"x-docs":{"section":"find-people","slug":"people-at-companies","nav":"People at Companies","title":"Get the People at a List of Companies","lead":"Attach decision makers — or anyone matching your filters — to up to 1,000 companies or locations you already have.","cost":"1 row per person returned","tip":"Set per_company to the number of contacts you will actually use; the default is 5."},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"company_ids":{"type":"array","items":{"type":"string"}},"location_ids":{"type":"array","items":{"type":"string"}},"decision_makers_only":{"type":"boolean"},"include_registered_agents":{"type":"boolean"},"where":{"type":"array","items":{"$ref":"#/components/schemas/Condition"},"description":"Conditions that must all hold (AND)."},"per_company":{"type":"integer","description":"max people per company (default 5)"},"fields":{"type":"array","items":{"type":"string"},"description":"Fields to return (dotted paths). Default: a compact set per entity."}}},"example":{"company_ids":["LC00012345678","LC00023456789"],"per_company":3,"where":[{"field":"has_email","value":true}]}}}},"responses":{"200":{"description":"OK. `rows_charged` = rows counted for this call (also in the X-Rows-Charged header).","content":{"application/json":{"schema":{"type":"object"},"example":{"by_company":{"LC00012345678":[{"person_id":"LP00000000101","company_id":"LC00012345678","full_name":"Dana Whitfield","role":"Owner","seniority":"owner","is_decision_maker":true,"email":"dana@example.com","email_status":"valid"}]},"without_people":["LC00023456789"],"rows_charged":1}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v2/email/find":{"post":{"operationId":"find_email","summary":"Find an E-mail","description":"**Find a Person's Work E-mail Address.** Give a name and the company's domain; get the address, checked against the company's mail server without sending mail.\n\n> [!NOTE]\n> **Cost:** 2 rows when a deliverable address is found · free when none is\n\n> [!TIP]\n> Take the domain from the company record (domain), not from a personal profile: the check runs against that domain's mail server.\n\nAlso available to AI agents as the MCP tool `find_email`.","tags":["find-emails"],"x-docs":{"section":"find-emails","slug":"find-email","nav":"Find an E-mail","title":"Find a Person's Work E-mail Address","lead":"Give a name and the company's domain; get the address, checked against the company's mail server without sending mail.","cost":"2 rows when a deliverable address is found · free when none is","tip":"Take the domain from the company record (domain), not from a personal profile: the check runs against that domain's mail server."},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"first_name":{"type":"string","maxLength":100},"last_name":{"type":"string","maxLength":100},"full_name":{"type":"string","maxLength":200},"domain":{"type":"string","maxLength":300},"position":{"type":"string","maxLength":150},"linkedin":{"type":"string","maxLength":400}},"required":["domain"]},"example":{"first_name":"Dana","last_name":"Whitfield","domain":"example.com"}}}},"responses":{"200":{"description":"OK. `rows_charged` = rows counted for this call (also in the X-Rows-Charged header).","content":{"application/json":{"schema":{"type":"object"},"example":{"status":"done","email":"dana.whitfield@example.com","result":"valid","confidence":0.97,"cached":false,"verified_at":"2026-11-19T15:02:11Z","domain":"example.com","rows_charged":2}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v2/email/verify":{"post":{"operationId":"verify_email","summary":"Verify an E-mail","description":"**Check Whether an E-mail Address Is Deliverable.** Ask the mail server whether the mailbox exists, without sending a message.\n\n> [!NOTE]\n> **Cost:** 1 row per address checked\n\n> [!TIP]\n> catch_all means the domain accepts every address: nothing can prove that one mailbox exists.\n\nAlso available to AI agents as the MCP tool `verify_email`.","tags":["find-emails"],"x-docs":{"section":"find-emails","slug":"verify-email","nav":"Verify an E-mail","title":"Check Whether an E-mail Address Is Deliverable","lead":"Ask the mail server whether the mailbox exists, without sending a message.","cost":"1 row per address checked","tip":"catch_all means the domain accepts every address: nothing can prove that one mailbox exists."},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["email"]},"example":{"email":"dana.whitfield@example.com"}}}},"responses":{"200":{"description":"OK. `rows_charged` = rows counted for this call (also in the X-Rows-Charged header).","content":{"application/json":{"schema":{"type":"object"},"example":{"status":"done","email":"dana.whitfield@example.com","result":"valid","confidence":0.97,"cached":true,"verified_at":null,"rows_charged":1}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v2/email/tasks/{task_id}":{"get":{"operationId":"get_email_result","summary":"Get a Pending Result","description":"**Get the Result of a Slow Lookup.** Some mail servers answer slowly: a lookup that is not done in about 30 seconds answers pending with a task id — collect the result here.\n\n> [!NOTE]\n> **Cost:** Counted once, when the result is delivered\n\n> [!TIP]\n> Poll every 10–30 seconds; most results are ready within minutes.\n\nAlso available to AI agents as the MCP tool `get_email_result`.","tags":["find-emails"],"x-docs":{"section":"find-emails","slug":"get-email-result","nav":"Get a Pending Result","title":"Get the Result of a Slow Lookup","lead":"Some mail servers answer slowly: a lookup that is not done in about 30 seconds answers pending with a task id — collect the result here.","cost":"Counted once, when the result is delivered","tip":"Poll every 10–30 seconds; most results are ready within minutes."},"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK. `rows_charged` = rows counted for this call (also in the X-Rows-Charged header).","content":{"application/json":{"schema":{"type":"object"},"example":{"status":"done","kind":"find","email":"dana.whitfield@example.com","result":"valid","confidence":0.97,"rows_charged":2}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v2/email/jobs":{"post":{"operationId":"start_email_job","summary":"Find or Verify a List","description":"**Find or Verify E-mails for a Whole List.** Send up to 1,000 people or addresses (100 on Free) in one background job and download the results as a file.\n\n> [!NOTE]\n> **Cost:** As single lookups: 2 rows per address found, 1 per address verified\n\n> [!TIP]\n> Put your own record id in ref: it comes back on every result row.\n\nAlso available to AI agents as the MCP tool `start_email_job`.","tags":["find-emails"],"x-docs":{"section":"find-emails","slug":"start-email-job","nav":"Find or Verify a List","title":"Find or Verify E-mails for a Whole List","lead":"Send up to 1,000 people or addresses (100 on Free) in one background job and download the results as a file.","cost":"As single lookups: 2 rows per address found, 1 per address verified","tip":"Put your own record id in ref: it comes back on every result row."},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["verify","find"]},"items":{"minItems":1,"maxItems":50000,"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"name":{"type":"string","maxLength":200},"idempotency_key":{"type":"string","minLength":8,"maxLength":128}},"required":["kind","items"]},"example":{"kind":"find","items":[{"first_name":"Dana","last_name":"Whitfield","domain":"example.com","ref":"crm-1001"},{"full_name":"Sam Ortega","domain":"example.org","ref":"crm-1002"}],"name":"Q4 roofing owners","idempotency_key":"q4-roofing-owners-01"}}}},"responses":{"200":{"description":"Done within the wait: the result itself.","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Accepted: still running — poll the returned id.","content":{"application/json":{"schema":{"type":"object"},"example":{"job_id":"job_5c1e0f4b2a9d7e6c3b8a1f02","type":"email_find","name":"Q4 roofing owners","status":"queued","progress":{"processed":0,"total":2},"reused":false,"accepted":2,"invalid":[],"invalid_total":0}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"get":{"operationId":"get_email_job_2","summary":"List E-mail Jobs","description":"**List Your Recent E-mail Jobs.** Your 20 most recent e-mail jobs with their status.\n\n> [!NOTE]\n> **Cost:** Free\n\nAlso available to AI agents as the MCP tool `get_email_job`.","tags":["find-emails"],"x-docs":{"section":"find-emails","slug":"list-email-jobs","nav":"List E-mail Jobs","title":"List Your Recent E-mail Jobs","lead":"Your 20 most recent e-mail jobs with their status.","cost":"Free"},"parameters":[{"name":"job_id","in":"query","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK. `rows_charged` = rows counted for this call (also in the X-Rows-Charged header).","content":{"application/json":{"schema":{"type":"object"},"example":{"jobs":[{"job_id":"job_5c1e0f4b2a9d7e6c3b8a1f02","type":"email_find","name":"Q4 roofing owners","status":"running","progress":{"processed":1,"total":2}}]}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v2/email/jobs/{job_id}":{"get":{"operationId":"get_email_job","summary":"Get E-mail Job Status","description":"**Check an E-mail Job and Download Its Results.** A job's progress and, when it is done, a download link to every row with its result.\n\n> [!NOTE]\n> **Cost:** Free\n\nAlso available to AI agents as the MCP tool `get_email_job`.","tags":["find-emails"],"x-docs":{"section":"find-emails","slug":"get-email-job","nav":"Get E-mail Job Status","title":"Check an E-mail Job and Download Its Results","lead":"A job's progress and, when it is done, a download link to every row with its result.","cost":"Free"},"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK. `rows_charged` = rows counted for this call (also in the X-Rows-Charged header).","content":{"application/json":{"schema":{"type":"object"},"example":{"job_id":"job_5c1e0f4b2a9d7e6c3b8a1f02","type":"email_find","status":"done","progress":{"processed":2,"total":2},"result":{"rows":2,"format":"csv","download":{"url":"https://api.breaknorm.co/v1/files/job_5c1e0f4b2a9d7e6c3b8a1f02?…","expires_at":"2026-11-20T15:10:00Z"},"summary":{"valid":1,"not_found":1},"rows_charged":2}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"cancel_email_job","summary":"Cancel an E-mail Job","description":"**Cancel an E-mail Job.** Stop a job; the rows it already finished stay downloadable and are the only ones counted.\n\n> [!NOTE]\n> **Cost:** Free\n\nAlso available to AI agents as the MCP tool `cancel_email_job`.","tags":["find-emails"],"x-docs":{"section":"find-emails","slug":"cancel-email-job","nav":"Cancel an E-mail Job","title":"Cancel an E-mail Job","lead":"Stop a job; the rows it already finished stay downloadable and are the only ones counted.","cost":"Free"},"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK. `rows_charged` = rows counted for this call (also in the X-Rows-Charged header).","content":{"application/json":{"schema":{"type":"object"},"example":{"job_id":"job_5c1e0f4b2a9d7e6c3b8a1f02","type":"email_find","status":"running","progress":{"processed":1,"total":2}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v2/locations/search":{"post":{"operationId":"search_locations","summary":"Search Locations","description":"**Search Business Locations by Category, Area and Distance.** Find shops, offices, clinics and depots by category, address, opening status, the area around them or the distance from a point.\n\n> [!NOTE]\n> **Cost:** 1 row per location returned · counts and facets free\n\n> [!TIP]\n> A franchise unit carries the chain (brand_id) and its operator (operator_company_id): sell to the operator.\n\nAlso available to AI agents as the MCP tool `search_locations`.","tags":["find-places"],"x-docs":{"section":"find-places","slug":"search-locations","nav":"Search Locations","title":"Search Business Locations by Category, Area and Distance","lead":"Find shops, offices, clinics and depots by category, address, opening status, the area around them or the distance from a point.","cost":"1 row per location returned · counts and facets free","tip":"A franchise unit carries the chain (brand_id) and its operator (operator_company_id): sell to the operator."},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"Words to find in names (job titles for jobs). Every plain word must match; results are ranked by relevance."},"where":{"type":"array","items":{"$ref":"#/components/schemas/Condition"},"description":"Conditions that must all hold (AND)."},"any_of":{"type":"array","items":{"type":"array","items":{"$ref":"#/components/schemas/Condition"}},"description":"Groups of conditions, at least one group must hold (OR of ANDs)."},"exclude":{"type":"array","items":{"$ref":"#/components/schemas/Condition"},"description":"Conditions none of which may hold."},"es_query":{"type":"object","description":"Advanced: one raw Elasticsearch query clause, ANDed with the rest (read-only)."},"fields":{"type":"array","items":{"type":"string"},"description":"Fields to return (dotted paths). Default: a compact set per entity."},"sort":{"type":"array","items":{"$ref":"#/components/schemas/Sort"},"description":"Order of the results. Default: relevance with text, otherwise id."},"size":{"type":"integer","minimum":1,"maximum":200,"default":25,"description":"Records per page."},"cursor":{"type":"string","description":"The next_cursor of the previous page."},"group_by":{"type":"string","description":"One entry per value of an id field (company_id, brand_id …), with per_group records each."},"per_group":{"type":"integer","minimum":1,"maximum":5,"default":1,"description":"Records per group."},"count_only":{"type":"boolean","description":"Only the exact total (and facets), no records. Free."},"facts":{"type":"object","description":"Which facts of each record to return: {names?, latest_only?, limit?}."},"facets":{"type":"array","maxItems":8,"items":{"$ref":"#/components/schemas/Facet"},"description":"Counts per value of up to 8 fields over every match (free with count_only)."}}},"example":{"where":[{"field":"category.subvertical","value":"dental_clinics"},{"field":"geo","op":"within_km","value":{"lat":30.2672,"lon":-97.7431,"km":15}}],"size":25}}}},"responses":{"200":{"description":"OK. `rows_charged` = rows counted for this call (also in the X-Rows-Charged header).","content":{"application/json":{"schema":{"type":"object"},"example":{"entity":"locations","total":188,"hits":[{"location_id":"LL3f9c…","company_id":"LC00034567890","name":"Barton Creek Dental","address":"2401 S Lamar Blvd","city":"Austin","admin1":"TX","country":"US","phones":["+1 512 555 0142"],"status":"open"}],"next_cursor":"eyJ…","rows_charged":1}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v2/jobs/search":{"post":{"operationId":"search_jobs","summary":"Search Job Postings","description":"**Search Job Postings from 600k Companies.** Find open or recently closed job postings by role, seniority, place, pay, required tools and the hiring company's own fields.\n\n> [!NOTE]\n> **Cost:** Free on every plan\n\n> [!TIP]\n> group_by: \"company_id\" turns the postings into a list of hiring companies, with the best posting of each as evidence.\n\nAlso available to AI agents as the MCP tool `search_jobs`.","tags":["find-jobs"],"x-docs":{"section":"find-jobs","slug":"search-jobs","nav":"Search Job Postings","title":"Search Job Postings from 600k Companies","lead":"Find open or recently closed job postings by role, seniority, place, pay, required tools and the hiring company's own fields.","cost":"Free on every plan","tip":"group_by: \"company_id\" turns the postings into a list of hiring companies, with the best posting of each as evidence."},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"Words to find in names (job titles for jobs). Every plain word must match; results are ranked by relevance."},"where":{"type":"array","items":{"$ref":"#/components/schemas/Condition"},"description":"Conditions that must all hold (AND)."},"any_of":{"type":"array","items":{"type":"array","items":{"$ref":"#/components/schemas/Condition"}},"description":"Groups of conditions, at least one group must hold (OR of ANDs)."},"exclude":{"type":"array","items":{"$ref":"#/components/schemas/Condition"},"description":"Conditions none of which may hold."},"es_query":{"type":"object","description":"Advanced: one raw Elasticsearch query clause, ANDed with the rest (read-only)."},"fields":{"type":"array","items":{"type":"string"},"description":"Fields to return (dotted paths). Default: a compact set per entity."},"sort":{"type":"array","items":{"$ref":"#/components/schemas/Sort"},"description":"Order of the results. Default: relevance with text, otherwise id."},"size":{"type":"integer","minimum":1,"maximum":200,"default":25,"description":"Records per page."},"cursor":{"type":"string","description":"The next_cursor of the previous page."},"group_by":{"type":"string","description":"One entry per value of an id field (company_id, brand_id …), with per_group records each."},"per_group":{"type":"integer","minimum":1,"maximum":5,"default":1,"description":"Records per group."},"count_only":{"type":"boolean","description":"Only the exact total (and facets), no records. Free."},"facts":{"type":"object","description":"Which facts of each record to return: {names?, latest_only?, limit?}."},"facets":{"type":"array","maxItems":8,"items":{"$ref":"#/components/schemas/Facet"},"description":"Counts per value of up to 8 fields over every match (free with count_only)."},"status":{"type":"string","enum":["open","closed","all"],"description":"open (default: live postings) | closed (taken down in the last 90 days; closed_at set — 'who stopped hiring for X', sort [{field:'closed_at'}]) | all."},"include_closed":{"type":"boolean","description":"Older form of status 'all'."},"posted_within_days":{"type":"integer","description":"Posted in the last N days by the employer's date, or first seen by us in that window when the posting has no date (~1 in 4)."},"group_by_company":{"type":"boolean","description":"One posting per company (the best by the sort / relevance): a company list with a posting as evidence."},"like":{"type":"array","items":{"type":"string"},"description":"job_ids (open or closed) that ARE what you want: re-ranks by their titles (most words must match) and wording."},"not_like":{"type":"array","items":{"type":"string"},"description":"job_ids that are NOT what you want (needs like): left out, and their wording pushed down."},"company_where":{"type":"array","items":{"type":"object"},"description":"COMPANY JOIN: conditions on the company (any search_companies field: tech, events, people counts, attrs …) — only postings of companies that match (≤50,000 companies)."},"company_any_of":{"type":"array","items":{"type":"array","items":{"type":"object"}},"description":"COMPANY JOIN: OR of AND-groups of company conditions."},"company_exclude":{"type":"array","items":{"type":"object"},"description":"COMPANY JOIN: company conditions that must NOT hold."},"company_text":{"type":"string","description":"COMPANY JOIN: free text over company names / domains."}}},"example":{"where":[{"field":"function","value":"sales"},{"field":"admin1","value":"TX"},{"field":"company_size.band","value":["11-50","51-200"]}],"posted_within_days":30,"size":25}}}},"responses":{"200":{"description":"OK. `rows_charged` = rows counted for this call (also in the X-Rows-Charged header).","content":{"application/json":{"schema":{"type":"object"},"example":{"entity":"jobs","total":1284,"companies":412,"hits":[{"job_id":"LJ184467321","company_id":"LC00012345678","company_name":"Hill Country Roofing","company_domain":"hillcountryroofing.com","title":"Roofing Sales Representative","function":"sales","seniority":"mid","city":"Austin","admin1":"TX","country":"US","posted_at":"2026-11-14","is_open":true}],"next_cursor":"eyJ…","rows_charged":0}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v2/jobs/{job_id}":{"get":{"operationId":"get_job","summary":"Get a Job Posting","description":"**Get a Job Posting with Its Full Text.** One posting with every section of its text, the company it belongs to and the requirements read from it.\n\n> [!NOTE]\n> **Cost:** Free on every plan\n\nAlso available to AI agents as the MCP tool `get_job`.","tags":["find-jobs"],"x-docs":{"section":"find-jobs","slug":"get-job","nav":"Get a Job Posting","title":"Get a Job Posting with Its Full Text","lead":"One posting with every section of its text, the company it belongs to and the requirements read from it.","cost":"Free on every plan"},"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK. `rows_charged` = rows counted for this call (also in the X-Rows-Charged header).","content":{"application/json":{"schema":{"type":"object"},"example":{"jobs":[{"job_id":"LJ184467321","company_id":"LC00012345678","company_name":"Hill Country Roofing","company_domain":"hillcountryroofing.com","title":"Roofing Sales Representative","function":"sales","seniority":"mid","city":"Austin","admin1":"TX","country":"US","posted_at":"2026-11-14","is_open":true,"requirements_txt":"3+ years of residential roofing sales …","benefits_txt":"Health, dental, 401(k) …"}],"not_found":[]}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v2/jobs/batch":{"post":{"operationId":"get_job_2","summary":"Get Job Postings in Bulk","description":"**Get up to 50 Job Postings at Once.** Fetch the full text of up to 50 postings by id in one call.\n\n> [!NOTE]\n> **Cost:** Free on every plan\n\nAlso available to AI agents as the MCP tool `get_job`.","tags":["find-jobs"],"x-docs":{"section":"find-jobs","slug":"get-jobs","nav":"Get Job Postings in Bulk","title":"Get up to 50 Job Postings at Once","lead":"Fetch the full text of up to 50 postings by id in one call.","cost":"Free on every plan"},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"job_id":{"type":"string"},"job_ids":{"type":"array","items":{"type":"string"}}}},"example":{"job_ids":["LJ184467321","LJ184467322"]}}}},"responses":{"200":{"description":"OK. `rows_charged` = rows counted for this call (also in the X-Rows-Charged header).","content":{"application/json":{"schema":{"type":"object"},"example":{"jobs":[{"job_id":"LJ184467321","company_id":"LC00012345678","company_name":"Hill Country Roofing","company_domain":"hillcountryroofing.com","title":"Roofing Sales Representative","function":"sales","seniority":"mid","city":"Austin","admin1":"TX","country":"US","posted_at":"2026-11-14","is_open":true}],"not_found":["LJ184467322"]}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v2/companies/{company_id}/hiring":{"get":{"operationId":"get_company_activity","summary":"Company Hiring Summary","description":"**See How a Company Is Hiring.** Open roles, new and closed postings, remote share, pay and the mix by function and seniority — and the technology its postings name.\n\n> [!NOTE]\n> **Cost:** Free on every plan\n\nAlso available to AI agents as the MCP tool `get_company_activity`.","tags":["find-jobs"],"x-docs":{"section":"find-jobs","slug":"company-hiring","nav":"Company Hiring Summary","title":"See How a Company Is Hiring","lead":"Open roles, new and closed postings, remote share, pay and the mix by function and seniority — and the technology its postings name.","cost":"Free on every plan"},"parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"string"},"description":"A company id (LC…) or the company's website domain.","example":"LC00012345678"},{"name":"evidence_per_item","in":"query","required":false,"schema":{"type":"integer","description":"evidence postings per tool (0–10, default 3)"},"description":"evidence postings per tool (0–10, default 3)"},{"name":"max_items","in":"query","required":false,"schema":{"type":"integer","description":"tools per list, strongest first (1–200, default 50); counts gives the full numbers"},"description":"tools per list, strongest first (1–200, default 50); counts gives the full numbers"},{"name":"recent","in":"query","required":false,"schema":{"type":"integer","description":"newest open postings (0–50, default 10)"},"description":"newest open postings (0–50, default 10)"}],"responses":{"200":{"description":"OK. `rows_charged` = rows counted for this call (also in the X-Rows-Charged header).","content":{"application/json":{"schema":{"type":"object"},"example":{"found":true,"company":{"company_id":"LC00012345678","name":"Hill Country Roofing"},"hiring":{"open_jobs":3,"new_30d":2,"closed_30d":1,"remote_share":0,"mix":{"function":[{"value":"sales","open":2}]}},"technology":{"used":[{"slug":"salesforce","postings":2,"open_postings":2,"status":"active"}]}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v2/companies/{company_id}/teams":{"get":{"operationId":"get_company_teams","summary":"Company Team Tech Stacks","description":"**See Which Tools Each Team of a Company Uses.** Read every department's postings at a company and get, per team, the tools it uses, requires and would like candidates to know.\n\n> [!NOTE]\n> **Cost:** Free on every plan\n\n> [!TIP]\n> team_by: \"department\" uses the company's own department names; \"function\" is comparable across companies.\n\nAlso available to AI agents as the MCP tool `get_company_teams`.","tags":["find-jobs"],"x-docs":{"section":"find-jobs","slug":"company-teams","nav":"Company Team Tech Stacks","title":"See Which Tools Each Team of a Company Uses","lead":"Read every department's postings at a company and get, per team, the tools it uses, requires and would like candidates to know.","cost":"Free on every plan","tip":"team_by: \"department\" uses the company's own department names; \"function\" is comparable across companies."},"parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"string"},"description":"A company id (LC…) or the company's website domain.","example":"LC00012345678"},{"name":"team_by","in":"query","required":false,"schema":{"type":"string","enum":["function","family","department"]}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["open","all"],"description":"open (default): live postings; all: open + closed in the last 90 days"},"description":"open (default): live postings; all: open + closed in the last 90 days"},{"name":"tools_per_team","in":"query","required":false,"schema":{"type":"integer","description":"1–50, default 15"},"description":"1–50, default 15"},{"name":"teams","in":"query","required":false,"schema":{"type":"integer","description":"1–60, default 30 (largest first)"},"description":"1–60, default 30 (largest first)"},{"name":"evidence_per_tool","in":"query","required":false,"schema":{"type":"integer","description":"0–3, default 1"},"description":"0–3, default 1"}],"responses":{"200":{"description":"OK. `rows_charged` = rows counted for this call (also in the X-Rows-Charged header).","content":{"application/json":{"schema":{"type":"object"},"example":{"found":true,"company":{"company_id":"LC00056789012","name":"Northwind Analytics","domain":"northwind-analytics.com"},"postings":214,"team_by":"function","teams":[{"team":"data_and_ai","postings":41,"open_postings":38,"stack":{"used":[{"tool":"snowflake","postings":19,"share":0.463,"open_postings":18,"status":"active"},{"tool":"dbt","postings":15,"share":0.366,"open_postings":14,"status":"active"}],"required":[{"tool":"python","postings":33,"share":0.805,"open_postings":31,"status":"active"}],"nice_to_have":[{"tool":"airflow","postings":9,"share":0.22,"open_postings":9,"status":"active"}]}}],"rows_charged":0}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v2/jobs/teams":{"post":{"operationId":"search_company_teams","summary":"Team Tech Stacks Across Companies","description":"**Find Companies by Their Teams' Tech Stacks.** Every company whose postings match a job search — say, data teams that require Snowflake — with its teams and their tools, a page at a time.\n\n> [!NOTE]\n> **Cost:** Free on every plan\n\n> [!TIP]\n> Rank first: facet search_jobs on company_id with count_only, then page this endpoint.\n\nAlso available to AI agents as the MCP tool `search_company_teams`.","tags":["find-jobs"],"x-docs":{"section":"find-jobs","slug":"teams-across-companies","nav":"Team Tech Stacks Across Companies","title":"Find Companies by Their Teams' Tech Stacks","lead":"Every company whose postings match a job search — say, data teams that require Snowflake — with its teams and their tools, a page at a time.","cost":"Free on every plan","tip":"Rank first: facet search_jobs on company_id with count_only, then page this endpoint."},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"Words to find in names (job titles for jobs). Every plain word must match; results are ranked by relevance."},"where":{"type":"array","items":{"$ref":"#/components/schemas/Condition"},"description":"Conditions that must all hold (AND)."},"any_of":{"type":"array","items":{"type":"array","items":{"$ref":"#/components/schemas/Condition"}},"description":"Groups of conditions, at least one group must hold (OR of ANDs)."},"exclude":{"type":"array","items":{"$ref":"#/components/schemas/Condition"},"description":"Conditions none of which may hold."},"es_query":{"type":"object","description":"Advanced: one raw Elasticsearch query clause, ANDed with the rest (read-only)."},"fields":{"type":"array","items":{"type":"string"},"description":"Fields to return (dotted paths). Default: a compact set per entity."},"sort":{"type":"array","items":{"$ref":"#/components/schemas/Sort"},"description":"Order of the results. Default: relevance with text, otherwise id."},"size":{"type":"integer","minimum":1,"maximum":200,"default":25,"description":"Records per page."},"cursor":{"type":"string","description":"The next_cursor of the previous page."},"group_by":{"type":"string","description":"One entry per value of an id field (company_id, brand_id …), with per_group records each."},"per_group":{"type":"integer","minimum":1,"maximum":5,"default":1,"description":"Records per group."},"count_only":{"type":"boolean","description":"Only the exact total (and facets), no records. Free."},"facts":{"type":"object","description":"Which facts of each record to return: {names?, latest_only?, limit?}."},"facets":{"type":"array","maxItems":8,"items":{"$ref":"#/components/schemas/Facet"},"description":"Counts per value of up to 8 fields over every match (free with count_only)."},"team_by":{"type":"string","enum":["function","family","department"]},"status":{"type":"string","enum":["open","all"]},"tools_per_team":{"type":"integer","description":"1–15, default 8"},"teams":{"type":"integer","description":"1–20, default 8 per company"},"posted_within_days":{"type":"integer"},"company_where":{"type":"array","items":{"type":"object"}},"company_any_of":{"type":"array","items":{"type":"array","items":{"type":"object"}}},"company_exclude":{"type":"array","items":{"type":"object"}},"company_text":{"type":"string"}}},"example":{"where":[{"field":"function","value":"data_and_ai"},{"field":"tech_required","value":"snowflake"},{"field":"country","value":"US"}],"team_by":"function","teams":3,"tools_per_team":5,"size":20}}}},"responses":{"200":{"description":"OK. `rows_charged` = rows counted for this call (also in the X-Rows-Charged header).","content":{"application/json":{"schema":{"type":"object"},"example":{"total":1873,"companies":1058,"team_by":"function","items":[{"company":{"company_id":"LC00056789012","name":"Northwind Analytics","domain":"northwind-analytics.com"},"postings":7,"teams":[{"team":"data_and_ai","postings":6,"stack":{"required":[{"tool":"snowflake","postings":6,"share":1},{"tool":"python","postings":5,"share":0.833}]}}]}],"next_cursor":"eyJ…","rows_charged":0}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v2/events/search":{"post":{"operationId":"search_events","summary":"Search Events","description":"**Search Permits, Filings, Financing and Ownership Changes.** Find dated events about businesses — permits, inspections, licences, loans, government awards, ownership changes — and the companies behind them.\n\n> [!NOTE]\n> **Cost:** 1 row per event returned · counts and facets free\n\n> [!TIP]\n> Facet on company_id with count_only to turn events into a ranked company list for free.\n\nAlso available to AI agents as the MCP tool `search_events`.","tags":["signals"],"x-docs":{"section":"signals","slug":"search-events","nav":"Search Events","title":"Search Permits, Filings, Financing and Ownership Changes","lead":"Find dated events about businesses — permits, inspections, licences, loans, government awards, ownership changes — and the companies behind them.","cost":"1 row per event returned · counts and facets free","tip":"Facet on company_id with count_only to turn events into a ranked company list for free."},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"Words to find in names (job titles for jobs). Every plain word must match; results are ranked by relevance."},"where":{"type":"array","items":{"$ref":"#/components/schemas/Condition"},"description":"Conditions that must all hold (AND)."},"any_of":{"type":"array","items":{"type":"array","items":{"$ref":"#/components/schemas/Condition"}},"description":"Groups of conditions, at least one group must hold (OR of ANDs)."},"exclude":{"type":"array","items":{"$ref":"#/components/schemas/Condition"},"description":"Conditions none of which may hold."},"es_query":{"type":"object","description":"Advanced: one raw Elasticsearch query clause, ANDed with the rest (read-only)."},"fields":{"type":"array","items":{"type":"string"},"description":"Fields to return (dotted paths). Default: a compact set per entity."},"sort":{"type":"array","items":{"$ref":"#/components/schemas/Sort"},"description":"Order of the results. Default: relevance with text, otherwise id."},"size":{"type":"integer","minimum":1,"maximum":200,"default":25,"description":"Records per page."},"cursor":{"type":"string","description":"The next_cursor of the previous page."},"group_by":{"type":"string","description":"One entry per value of an id field (company_id, brand_id …), with per_group records each."},"per_group":{"type":"integer","minimum":1,"maximum":5,"default":1,"description":"Records per group."},"count_only":{"type":"boolean","description":"Only the exact total (and facets), no records. Free."},"facts":{"type":"object","description":"Which facts of each record to return: {names?, latest_only?, limit?}."},"facets":{"type":"array","maxItems":8,"items":{"$ref":"#/components/schemas/Facet"},"description":"Counts per value of up to 8 fields over every match (free with count_only)."}}},"example":{"where":[{"field":"kind","value":"permit_issued"},{"field":"date","op":"gte","value":"now-30d"},{"field":"admin1","value":"TX"}],"size":25}}}},"responses":{"200":{"description":"OK. `rows_charged` = rows counted for this call (also in the X-Rows-Charged header).","content":{"application/json":{"schema":{"type":"object"},"example":{"entity":"events","total":9120,"hits":[{"event_id":"LE00099887766","company_id":"LC00012345678","kind":"permit_issued","family":"licence","date":"2026-11-12","admin1":"TX","detail":"Re-roof, residential","amount_usd":18500}],"next_cursor":"eyJ…","rows_charged":1}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v2/relations/search":{"post":{"operationId":"search_relations","summary":"Search Relationships","description":"**Search Relationships Between Businesses.** Who works with whom: the clients of a benefits broker, the plans an adviser serves, the manager of a property, the subcontractors of a prime.\n\n> [!NOTE]\n> **Cost:** 1 row per relationship returned · counts and facets free\n\nAlso available to AI agents as the MCP tool `search_relations`.","tags":["signals"],"x-docs":{"section":"signals","slug":"search-relationships","nav":"Search Relationships","title":"Search Relationships Between Businesses","lead":"Who works with whom: the clients of a benefits broker, the plans an adviser serves, the manager of a property, the subcontractors of a prime.","cost":"1 row per relationship returned · counts and facets free"},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"Words to find in names (job titles for jobs). Every plain word must match; results are ranked by relevance."},"where":{"type":"array","items":{"$ref":"#/components/schemas/Condition"},"description":"Conditions that must all hold (AND)."},"any_of":{"type":"array","items":{"type":"array","items":{"$ref":"#/components/schemas/Condition"}},"description":"Groups of conditions, at least one group must hold (OR of ANDs)."},"exclude":{"type":"array","items":{"$ref":"#/components/schemas/Condition"},"description":"Conditions none of which may hold."},"es_query":{"type":"object","description":"Advanced: one raw Elasticsearch query clause, ANDed with the rest (read-only)."},"fields":{"type":"array","items":{"type":"string"},"description":"Fields to return (dotted paths). Default: a compact set per entity."},"sort":{"type":"array","items":{"$ref":"#/components/schemas/Sort"},"description":"Order of the results. Default: relevance with text, otherwise id."},"size":{"type":"integer","minimum":1,"maximum":200,"default":25,"description":"Records per page."},"cursor":{"type":"string","description":"The next_cursor of the previous page."},"group_by":{"type":"string","description":"One entry per value of an id field (company_id, brand_id …), with per_group records each."},"per_group":{"type":"integer","minimum":1,"maximum":5,"default":1,"description":"Records per group."},"count_only":{"type":"boolean","description":"Only the exact total (and facets), no records. Free."},"facts":{"type":"object","description":"Which facts of each record to return: {names?, latest_only?, limit?}."},"facets":{"type":"array","maxItems":8,"items":{"$ref":"#/components/schemas/Facet"},"description":"Counts per value of up to 8 fields over every match (free with count_only)."}}},"example":{"where":[{"field":"relation","value":"benefits_broker_of"},{"field":"from_company_id","value":"LC00045678901"}],"size":25}}}},"responses":{"200":{"description":"OK. `rows_charged` = rows counted for this call (also in the X-Rows-Charged header).","content":{"application/json":{"schema":{"type":"object"},"example":{"entity":"relations","total":37,"hits":[{"relation_id":"LR00011122233","relation":"benefits_broker_of","from_company_id":"LC00045678901","from_name":"Capitol Benefits Group","to_company_id":"LC00012345678","to_name":"Hill Country Roofing","value_num":4200,"value_text":"Medical plan, 2025"}],"rows_charged":1}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v2/exports":{"post":{"operationId":"export","summary":"Export a Search","description":"**Export Every Match of a Search to a File.** Write up to 2 million records of any search to a gzip CSV or NDJSON file and get a download link.\n\n> [!NOTE]\n> **Cost:** 1 row per exported record · job postings free\n\n> [!TIP]\n> Exports run in the background: a 202 answer gives an export_id to poll.\n\nAlso available to AI agents as the MCP tool `export`.","tags":["export"],"x-docs":{"section":"export","slug":"create-export","nav":"Export a Search","title":"Export Every Match of a Search to a File","lead":"Write up to 2 million records of any search to a gzip CSV or NDJSON file and get a download link.","cost":"1 row per exported record · job postings free","tip":"Exports run in the background: a 202 answer gives an export_id to poll."},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"entity":{"type":"string","enum":["companies","locations","people","events","jobs","relations"]},"text":{"type":"string","description":"Words to find in names (job titles for jobs). Every plain word must match; results are ranked by relevance."},"where":{"type":"array","items":{"$ref":"#/components/schemas/Condition"},"description":"Conditions that must all hold (AND)."},"any_of":{"type":"array","items":{"type":"array","items":{"$ref":"#/components/schemas/Condition"}},"description":"Groups of conditions, at least one group must hold (OR of ANDs)."},"exclude":{"type":"array","items":{"$ref":"#/components/schemas/Condition"},"description":"Conditions none of which may hold."},"es_query":{"type":"object","description":"Advanced: one raw Elasticsearch query clause, ANDed with the rest (read-only)."},"fields":{"type":"array","items":{"type":"string"},"description":"Fields to return (dotted paths). Default: a compact set per entity."},"sort":{"type":"array","items":{"$ref":"#/components/schemas/Sort"},"description":"Order of the results. Default: relevance with text, otherwise id."},"size":{"type":"integer","minimum":1,"maximum":200,"default":25,"description":"Records per page."},"cursor":{"type":"string","description":"The next_cursor of the previous page."},"group_by":{"type":"string","description":"One entry per value of an id field (company_id, brand_id …), with per_group records each."},"per_group":{"type":"integer","minimum":1,"maximum":5,"default":1,"description":"Records per group."},"count_only":{"type":"boolean","description":"Only the exact total (and facets), no records. Free."},"facts":{"type":"object","description":"Which facts of each record to return: {names?, latest_only?, limit?}."},"facets":{"type":"array","maxItems":8,"items":{"$ref":"#/components/schemas/Facet"},"description":"Counts per value of up to 8 fields over every match (free with count_only)."},"format":{"type":"string","enum":["csv","ndjson"]},"max_rows":{"type":"integer"},"wait_ms":{"type":"integer","description":"how long to wait for the file (0–25,000 ms, default 20,000); a longer export returns status running and an export_id for get_export"}},"required":["entity"]},"example":{"entity":"companies","where":[{"field":"admin1","value":"TX"},{"field":"category.subvertical","value":"roofing_contractors"}],"format":"csv","max_rows":50000}}}},"responses":{"200":{"description":"Done within the wait: the result itself.","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Accepted: still running — poll the returned id.","content":{"application/json":{"schema":{"type":"object"},"example":{"export_id":"job_44477207b9c58c93c3e787b1","status":"running","entity":"companies","note":"The file is still being written. Call get_export with this export_id in a few seconds; rows are counted when it is ready."}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v2/exports/{export_id}":{"get":{"operationId":"get_export","summary":"Get Export Status","description":"**Check an Export and Get Its Download Link.** The status of an export; when it is done, the row count and a download link valid for 24 hours.\n\n> [!NOTE]\n> **Cost:** Free (rows are counted once, when the file is ready)\n\nAlso available to AI agents as the MCP tool `get_export`.","tags":["export"],"x-docs":{"section":"export","slug":"get-export","nav":"Get Export Status","title":"Check an Export and Get Its Download Link","lead":"The status of an export; when it is done, the row count and a download link valid for 24 hours.","cost":"Free (rows are counted once, when the file is ready)"},"parameters":[{"name":"export_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK. `rows_charged` = rows counted for this call (also in the X-Rows-Charged header).","content":{"application/json":{"schema":{"type":"object"},"example":{"export_id":"job_44477207b9c58c93c3e787b1","status":"done","rows":4120,"format":"csv","download_url":"https://api.breaknorm.co/v1/files/job_44477207b9c58c93c3e787b1?…","expires_at":"2026-11-20T10:12:00Z","rows_charged":4120}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v2/sites/scrape":{"post":{"operationId":"scrape_sites","summary":"Crawl Websites","description":"**Crawl Websites Now.** Crawl a list of domains or URLs — or the websites of a search's results — and read their contacts, social profiles and technologies.\n\n> [!NOTE]\n> **Cost:** 1 site crawl per website · needs the Live scraper add-on\n\n> [!TIP]\n> mode: \"homepage\" is fastest; \"contact\" adds the contact, imprint and team pages.\n\nAlso available to AI agents as the MCP tool `scrape_sites`.","tags":["crawl"],"x-docs":{"section":"crawl","slug":"crawl-websites","nav":"Crawl Websites","title":"Crawl Websites Now","lead":"Crawl a list of domains or URLs — or the websites of a search's results — and read their contacts, social profiles and technologies.","cost":"1 site crawl per website · needs the Live scraper add-on","tip":"mode: \"homepage\" is fastest; \"contact\" adds the contact, imprint and team pages."},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domains":{"type":"array","items":{"type":"string"},"description":"Domains or URLs (a URL is reduced to its site)."},"list_file":{"type":"string","description":"An uploaded list: a file name in this account's upload folder, one domain or URL per line (CSV: the first column; a header line is skipped)."},"urls":{"type":"array","items":{"type":"string"},"description":"mode 'urls': the exact page URLs to fetch (grouped per site)."},"from_search":{"type":"object","description":"{entity: 'companies' | 'locations', args: {…the search_companies / search_locations arguments: text, where, any_of, exclude…}, max_sites?: 1000}."},"mode":{"type":"string","enum":["homepage","contact","crawl","sitemap","urls"],"description":"Default homepage."},"depth":{"type":"integer","description":"mode crawl: link depth from the homepage, 1–5 (default 2)."},"page_cap":{"type":"integer","description":"Max pages per site (crawl / sitemap default 25, max 200)."},"formats":{"type":"array","items":{"type":"string","enum":["json","markdown","html"]},"description":"Per page: json = structured content (default), markdown = main content as Markdown, html = raw HTML."},"max_age_hours":{"type":"integer","description":"Accept a cached crawl up to this old (default 168 = 7 days; 0 = always fetch fresh)."},"idempotency_key":{"type":"string","description":"Resubmitting with the same key returns the same job instead of crawling again."},"detail":{"type":"string","enum":["compact","full"],"description":"compact (default): per site name, description, contacts (e-mails, phones, addresses), third-party e-mails, socials, opening hours, technologies, identity (legal name, ids, founded year, country), key pages, website status / redirect."},"fields":{"type":"array","items":{"type":"string"},"description":"Fields to return (dotted paths). Default: a compact set per entity."}}},"example":{"domains":["hillcountryroofing.com"],"mode":"contact"}}}},"responses":{"200":{"description":"Done within the wait: the result itself.","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Accepted: still running — poll the returned id.","content":{"application/json":{"schema":{"type":"object"},"example":{"job_id":"sj_7f3a…","status":"running","sites":1,"websites_charged":1}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v2/scrape-jobs/{job_id}":{"get":{"operationId":"get_scrape_job","summary":"Get Crawl Status","description":"**Check a Crawl and Read Its Results.** A crawl's progress and, per website, what was found.\n\n> [!NOTE]\n> **Cost:** Free\n\nAlso available to AI agents as the MCP tool `get_scrape_job`.","tags":["crawl"],"x-docs":{"section":"crawl","slug":"get-crawl","nav":"Get Crawl Status","title":"Check a Crawl and Read Its Results","lead":"A crawl's progress and, per website, what was found.","cost":"Free"},"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer"}},{"name":"formats","in":"query","required":false,"schema":{"type":"string","description":"JSON-encoded array"}},{"name":"detail","in":"query","required":false,"schema":{"type":"string","enum":["compact","full"],"description":"compact (default): per site name, description, contacts (e-mails, phones, addresses), third-party e-mails, socials, opening hours, technologies, identity (legal name, ids, founded year, country), key pages, website status / redirect."},"description":"compact (default): per site name, description, contacts (e-mails, phones, addresses), third-party e-mails, socials, opening hours, technologies, identity (legal name, ids, founded year, country), key pages, website status / redirect."},{"name":"fields","in":"query","required":false,"schema":{"type":"string","description":"JSON-encoded array"},"description":"Fields to return (dotted paths). Default: a compact set per entity."}],"responses":{"200":{"description":"OK. `rows_charged` = rows counted for this call (also in the X-Rows-Charged header).","content":{"application/json":{"schema":{"type":"object"},"example":{"job_id":"sj_7f3a…","status":"done","results":[{"domain":"hillcountryroofing.com","status":"ok","emails":["office@hillcountryroofing.com"],"phones":["+1 512 555 0188"]}]}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v2/sites/{domain}":{"get":{"operationId":"get_site","summary":"Get Website Data","description":"**Get the Latest Crawl of a Website.** What the most recent crawl of a website found, without crawling again.\n\n> [!NOTE]\n> **Cost:** Free\n\nAlso available to AI agents as the MCP tool `get_site`.","tags":["crawl"],"x-docs":{"section":"crawl","slug":"get-website","nav":"Get Website Data","title":"Get the Latest Crawl of a Website","lead":"What the most recent crawl of a website found, without crawling again.","cost":"Free"},"parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string"}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","enum":["homepage","contact","crawl","sitemap","urls"]}},{"name":"page_offset","in":"query","required":false,"schema":{"type":"integer","description":"First page to return (default 0); use next_page_offset from a size-limited answer."},"description":"First page to return (default 0); use next_page_offset from a size-limited answer."},{"name":"formats","in":"query","required":false,"schema":{"type":"string","description":"JSON-encoded array"}},{"name":"detail","in":"query","required":false,"schema":{"type":"string","enum":["compact","full"],"description":"compact (default): per site name, description, contacts (e-mails, phones, addresses), third-party e-mails, socials, opening hours, technologies, identity (legal name, ids, founded year, country), key pages, website status / redirect."},"description":"compact (default): per site name, description, contacts (e-mails, phones, addresses), third-party e-mails, socials, opening hours, technologies, identity (legal name, ids, founded year, country), key pages, website status / redirect."},{"name":"fields","in":"query","required":false,"schema":{"type":"string","description":"JSON-encoded array"},"description":"Fields to return (dotted paths). Default: a compact set per entity."}],"responses":{"200":{"description":"OK. `rows_charged` = rows counted for this call (also in the X-Rows-Charged header).","content":{"application/json":{"schema":{"type":"object"},"example":{"domain":"hillcountryroofing.com","crawled_at":"2026-11-02T08:14:00Z","emails":["office@hillcountryroofing.com"],"technologies":["wordpress"]}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v2/schema":{"get":{"operationId":"describe_schema","summary":"List All Fields","description":"**List Every Filterable Field.** Every field of every entity with its type, and the values of the closed vocabularies — event kinds, functions, seniorities.\n\n> [!NOTE]\n> **Cost:** Free\n\nAlso available to AI agents as the MCP tool `describe_schema`.","tags":["reference"],"x-docs":{"section":"reference","slug":"schema","nav":"List All Fields","title":"List Every Filterable Field","lead":"Every field of every entity with its type, and the values of the closed vocabularies — event kinds, functions, seniorities.","cost":"Free"},"parameters":[{"name":"entity","in":"query","required":false,"schema":{"type":"string","enum":["companies","locations","people","events","jobs","relations"]}}],"responses":{"200":{"description":"OK. `rows_charged` = rows counted for this call (also in the X-Rows-Charged header).","content":{"application/json":{"schema":{"type":"object"},"example":{"fields":{"companies":["company_id: keyword","name: text","size.employees: integer","…"]},"vocab":{"event_families":["compliance","licence","…"]}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}},"/v2/schema/{entity}":{"get":{"operationId":"describe_schema_2","summary":"List Fields of One Entity","description":"**List the Fields of One Entity.** The filterable fields of companies, locations, people, events, jobs or relations.\n\n> [!NOTE]\n> **Cost:** Free\n\nAlso available to AI agents as the MCP tool `describe_schema`.","tags":["reference"],"x-docs":{"section":"reference","slug":"schema-entity","nav":"List Fields of One Entity","title":"List the Fields of One Entity","lead":"The filterable fields of companies, locations, people, events, jobs or relations.","cost":"Free"},"parameters":[{"name":"entity","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK. `rows_charged` = rows counted for this call (also in the X-Rows-Charged header).","content":{"application/json":{"schema":{"type":"object"},"example":{"fields":{"jobs":["job_id: keyword","title: text","function: keyword","…"]}}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"An API key from the dashboard's API keys page (bnk_live_…)."}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_argument","unauthenticated","forbidden","not_found","quota_exceeded","rate_limited","unavailable","internal"]},"message":{"type":"string","description":"What went wrong, written for the caller to act on."},"hint":{"type":"string"},"retryable":{"type":"boolean"},"request_id":{"type":"string"}}}},"example":{"error":{"code":"invalid_argument","message":"unknown field 'employes'. Closest: size.employees","retryable":false,"request_id":"req_2kq9…"}}},"Condition":{"type":"object","description":"One filter condition. See *Filters* in the introduction for every operator.","required":["field"],"properties":{"field":{"type":"string","description":"A field of the entity (GET /v2/schema lists them).","examples":["country"]},"op":{"type":"string","enum":["eq","ne","in","not_in","gt","gte","lt","lte","between","match","prefix","exists","missing","within_km","bbox"],"description":"Left out: an array value means `in`, no value `exists`, a text field `match`, otherwise `eq`."},"value":{"description":"The value to compare with: a string, number, boolean, array, or {lat, lon, km} / {top, left, bottom, right} for the geo operators.","examples":["US"]},"group":{"type":"string","description":"Conditions on one nested list (events.*, attrs.*, emails.*) with the same group apply to one element."}}},"Facet":{"type":"object","required":["field"],"properties":{"field":{"type":"string","examples":["admin1"]},"size":{"type":"integer","minimum":1,"maximum":200,"description":"Values to return (default 20)."}}},"Sort":{"type":"object","required":["field"],"properties":{"field":{"type":"string","examples":["size.employees"]},"order":{"type":"string","enum":["asc","desc"],"default":"desc"}}}},"responses":{"Error":{"description":"An error with a stable code — see *Errors* in the introduction.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}