The CompanyData Company Data API is a company and business data API for KYB, enrichment and lead generation, built on official government registers: 377M+ registered businesses in 190+ countries, from 1,200+ registers and sources, in one schema and refreshed monthly. Search a company by name, registration number, address, phone or email, then get the full record: address, registration and VAT number, industry codes, employees, revenue, contacts, executives and the corporate structure (parent, ultimate parent and every company in the group).
One API key covers every country. On the same key: domain enrichment (website in, company out) and location lookups.
- Docs: companydata.com/api-docs
- KYB / business verification: companydata.com/kyb-api
- OpenAPI spec: companydata.com/openapi.json
- Get an API key: app.companydata.com/signup-api (7-day trial with 500 searches and 10 exports)
- Sample data: 547 Dutch software companies in this repo, plus free city datasets (CSV, no key needed)
- Runnable examples: bulk file, API and MCP
- KYB and onboarding: check that a business exists in the official register, with its registration number, legal form and address. Due diligence & KYC guide
- Company search and autocomplete: a company name field in a signup or checkout form that fills in the registered address. Autocomplete guide
- CRM and lead enrichment: complete a record from a name, registration number or website domain with industry, size, revenue and contacts. Matching a list
- Corporate structure: every company in a group, from any member, with local, national and global headquarters. Corporate structure guide
- Prospect lists: filter by country, city, industry (SIC), employees, revenue or founding year and export the matches. Lead generation guide
- Address search: find the companies on a street, in a postal code or in a city. Address search guide
Base URL: https://app.companydata.com. Send your key in the x-api-key header.
curl -G "https://app.companydata.com/api/company/search" \
-H "x-api-key: $COMPANYDATA_API_KEY" \
--data-urlencode "countryCode=NL" \
--data-urlencode "search=Heineken"{
"meta": { "totalCount": 3, "currentPage": 1, "totalPages": 1, "pageSize": 25 },
"data": {
"records": [
{ "ID": "330114331", "Company Name": "Heineken N.V.", "Country": "Netherlands", "City": "AMSTERDAM" }
]
}
}Pass the ID to /api/company/export for the full record:
curl -G "https://app.companydata.com/api/company/export" \
-H "x-api-key: $COMPANYDATA_API_KEY" \
--data-urlencode "ID=330114331"npm install @companydata/companydata-sdkimport { ApiClient } from '@companydata/companydata-sdk';
const client = new ApiClient({
auth: { type: 'apiKey', apiKey: process.env.COMPANYDATA_API_KEY! },
});
const { data } = await client.company.search({ countryCode: 'NL', search: 'Heineken' });
// Every record in a country, page by page
let page = await client.company.exportWithScroll({ countryCode: 'NL', pageSize: 1000 });
while (page.meta.hasMoreRecords) {
page = await client.company.exportWithScroll({ scrollId: page.meta.scrollId, pageSize: 1000 });
}Repo: companydatacom/companydata-sdk | npm: @companydata/companydata-sdk | Docs: JavaScript SDK
Thin wrappers over the main SDK, pinned to one country, with a lookup helper for that register. Same record shape.
| Register | Country | npm | Repo |
|---|---|---|---|
| KVK | NL | @companydata/kvk-api |
kvk-api |
| Handelsregister | DE | @companydata/handelsregister-api |
handelsregister-api |
| Companies House | GB | @companydata/companies-house-api |
companies-house-api |
| Sirene | FR | @companydata/sirene-api |
sirene-api |
| KBO/BCE | BE | @companydata/kbo-api |
kbo-api |
| KRS | PL | @companydata/krs-api |
krs-api |
| Bolagsverket | SE | @companydata/bolagsverket-api |
bolagsverket-api |
| Zefix | CH | @companydata/zefix-api |
zefix-api |
| ARES | CZ | @companydata/ares-api |
ares-api |
| CVR | DK | @companydata/cvr-api |
cvr-api |
| CNPJ | BR | @companydata/cnpj-api |
cnpj-api |
| ABN Lookup | AU | @companydata/abn-lookup-api |
abn-lookup-api |
| SEC EDGAR | US | @companydata/sec-edgar-api |
sec-edgar-api |
Hosted, no install:
claude mcp add --transport http companydata https://companydata.com/mcp/ --header "x-api-key: your_api_key"Cursor (.cursor/mcp.json):
{
"mcpServers": {
"companydata": {
"url": "https://companydata.com/mcp/",
"headers": { "x-api-key": "your_api_key" }
}
}
}Or run it locally with npx (Node.js 18+):
claude mcp add companydata -e COMPANYDATA_API_KEY=your_api_key -- npx -y @companydata/mcp-serverTools: company_search, company_enrich, field_lookup.
Config for Cursor and prompts to try: mcp/.
Repo: companydatacom/companydata-mcp-server | npm: @companydata/mcp-server | Setup guide: companydata.com/product/mcp-server
| Method | Endpoint | What it does |
|---|---|---|
| GET | /api/company/search |
Find companies by name, registration number, address, phone, email or filters. Light records (ID, name, country), up to 50 results |
| GET | /api/company/export |
Full company records for an ID or a filter, with standard or scroll pagination for any number of records |
| GET | /api/website/html |
Domain enrichment: download a website and return the company candidates in it (registration and VAT numbers, JSON-LD, imprint) |
| GET | /api/cities |
Exact city names to use in the cityName filter |
Full reference with parameters, error codes and response examples: companydata.com/api-docs.
The same filters work on search and export. A selection:
| Parameter | Filters on |
|---|---|
search |
Company name |
nationalId |
Registration number (add countryCode) |
countryCode |
ISO 2-letter country code (list) |
cityName, postalCode, streetName, provinceName |
Address (address search) |
phoneNumber, mobileNumber, email |
Contact details |
sic4Digits |
4-digit SIC industry code |
employeesTotal, annualSales, foundingYears |
Size, revenue and age |
worldwideHeadquarterID |
Every company in a corporate group |
hasEmail, hasPhone, hasWebsite, hasCEOName, ... |
Records that have that field |
All filters: Company search & export.
Export returns flat records under data.records. Fields include:
- Identity: company name, trade name, registration number and type, legal form, founding year
- Address: street, postal code, city, state or province, country
- Industry: SIC codes with descriptions
- Size: employees on site and in total, yearly revenue in local currency and USD, each marked reported or modelled
- Contacts: website, email, phone, CEO name and title, executives
- Corporate structure: local, national and global headquarters (ID, name, address), location type, subsidiary code, number of companies in the group
Which fields you get depends on your plan. Every field: Response fields and the data dictionary.
# 1. Find the company and read its "Global Headquarter ID Number"
curl -G "https://app.companydata.com/api/company/export" \
-H "x-api-key: $COMPANYDATA_API_KEY" \
--data-urlencode "ID=330114331"
# 2. Every company in that group
curl -G "https://app.companydata.com/api/company/export" \
-H "x-api-key: $COMPANYDATA_API_KEY" \
--data-urlencode "worldwideHeadquarterID=<Global Headquarter ID Number>"The whole group as a JSON tree, in one command (examples/corporate-hierarchy.mjs, Node.js 18+, no dependencies):
COMPANYDATA_API_KEY=your_api_key node examples/corporate-hierarchy.mjs --search "Amazon.com" --country US > amazon.jsonIt exports every company with the group's worldwideHeadquarterID (scroll pagination, so nothing is skipped) and hangs each one under its local, then national, then global headquarters. Walkthrough with a tree view: Corporate structure.
Small, runnable examples of getting company data into your own stack, one folder per route:
| Folder | Route | You get | Use it when |
|---|---|---|---|
bulk/ |
Bulk feed in your warehouse | SQL to query and refresh a company file with DuckDB | You query the same market again and again, or build the data into your product |
api/ |
Real-time API in your backend | A matcher and a cache in TypeScript, no dependencies | You look up one company at a time: signup, onboarding, KYB |
mcp/ |
MCP server for AI agents | Config for Claude Code and Cursor, plus prompts to try | An agent or assistant has to look companies up itself |
examples/ |
Export scripts | A corporate group as a JSON tree, the largest companies in a city as CSV | You want a whole group or a city file in one command |
The reasoning behind the three routes (cost, freshness, what you may store) is in the write-up on dev.to: Bulk file, API or MCP: how to get company data into your app in 2026.
The bulk example runs out of the box on sample/companies.csv: 547 Dutch software companies with registration number, address, industry codes, size, revenue and group structure. No contact names, emails or phone numbers. The API and MCP examples need a key (get one here):
export COMPANYDATA_API_KEY=your_api_key
# bulk: needs DuckDB (https://duckdb.org)
duckdb < bulk/query.sql
# api: needs Node.js 18+
npx tsx api/find-company.ts
# mcp: add the hosted server to Claude Code
claude mcp add --transport http companydata https://companydata.com/mcp/ \
--header "x-api-key: $COMPANYDATA_API_KEY"
# examples: a whole corporate group as JSON
node examples/corporate-hierarchy.mjs --search "Amazon.com" --country US > amazon.jsonKey your own tables on the registration number plus country, and keep the provider's record ID next to it. Names change and collide; those two do not. It is also what lets a record you loaded from a file be the same record your API call and your agent see.
In this repo: sample/companies.csv, 547 Dutch software companies (SIC 737x) from the current release, with IDs that work in the API.
Free CSV samples of the 1,000 largest companies in eight cities, in the same fields as the API (CC0 license). No API key needed.
| City | Sample CSV |
|---|---|
| Amsterdam | amsterdam-business-dataset-sample.csv |
| Berlin | berlin-business-dataset-sample.csv |
| London | london-business-dataset-sample.csv |
| Paris | paris-business-dataset-sample.csv |
| Madrid | madrid-business-dataset-sample.csv |
| Rome | rome-business-dataset-sample.csv |
| New York City | new-york-city-business-dataset-sample.csv |
| Los Angeles | los-angeles-business-dataset-sample.csv |
A few rows from those files:
| Company | City | Industry (SIC) | Revenue (USD) | Global headquarters | Companies in group |
|---|---|---|---|---|---|
| Zalando SE | Berlin | 5961 Catalog and Mail-Order Houses | $11.0B | Zalando SE, Germany | 108 |
| 50hertz Transmission GmbH | Berlin | 4911 Electric Services | $11.0B | Elia Group, Belgium | 47 |
| Endesa Energia SAU | Madrid | 4911 Electric Services | $20.5B | Enel SpA, Italy | 2,461 |
| Repsol Petroleo SA | Madrid | 2911 Petroleum Refining | $31.4B | Repsol SA, Spain | 1,991 |
| CBRE GWS Integrated Facility Management B.V. | Amsterdam | 6719 Offices of Holding Companies | $321M | CBRE Group, Inc., United States | 2,001 |
| Adobe Inc. | Los Angeles | 7372 Prepackaged Software | $19.4B | Adobe Inc., United States | 146 |
| Oaktree Capital Management, L.P. | Los Angeles | 6282 Investment Advice | $4.9B | Brookfield Corporation, Canada | 153 |
- Build a city file yourself:
examples/city-dataset.mjsexports the largest companies in any city, by revenue, with IDs and registration numbers kept as text:COMPANYDATA_API_KEY=your_api_key node examples/city-dataset.mjs --country NL --city AMSTERDAM --limit 1000 > amsterdam.csv - All companies in a city: companydata.com/free-business-datasets
- A sample of your own selection (country, industry, size), within 24 hours: companydata.com/request-data
- Look up one company for free: companydata.com/company-lookup
- 50 requests per second per key by default; above that the API returns
429. - Monthly searches, export credits and requests depend on the plan. Responses carry headers with what is left, and a
429names the limit and when it resets. - Details: Authentication.
- Product page: companydata.com/company-data-api
- API docs: companydata.com/api-docs
- Quickstart: companydata.com/api-docs/quickstart
- OpenAPI spec: companydata.com/openapi.json
- Docs for LLMs: companydata.com/llms-full.txt
- Pricing: companydata.com/pricing
- All APIs, including per-register APIs: companydata.com/apis
- Data sources: companydata.com/our-data
- Contact: companydata.com/contact