CNPJ API documentation
Brazilian company data API: CNPJ lookup and search, partners, tax regime, state registrations, SUFRAMA and CEP, what each guide covers and how to get started.
https://api.cnpja.com - 01 Public access Look up CNPJs and CEPs without a key, in low-volume integrations.
- 02 First request Create a key and make your first authenticated lookup.
- 03 Reference Browse every endpoint, parameter and response.
- Availability · 30 days
- Unavailable
- Cached p50 latency · today
- Unavailable
Tip: Concepts on this page: Data available on CNPJá, Data sources and Data freshness.
The CNPJá API delivers the registration of Brazilian companies and related data, such as partners, tax regime, state registrations, SUFRAMA registrations and CEPs, read from public sources such as the Receita Federal. It is the same database as the app, accessed by your system.
About the CNPJá API
The API is organized around REST: each operation is a predictable URL under the base https:/, with the /v2 prefix, accessed over HTTPS. Use GET to look up and search data, and POST, PATCH and DELETE to manage lists. 2xx statuses indicate success, 4xx a problem with the request and 5xx a failure on the API side.
GET /v2/establishments/37335118000180 HTTP/1.1
Host: api.cnpja.com
Authorization: YOUR_API_KEY Response from Lookup CNPJ, trimmed:
{
"taxId": "37335118000180",
"tradeName": "Cnpja",
"status": { "code": "ACTIVE", "label": "Active" },
"company": {
"id": "37335118",
"legalName": "CNPJA TECNOLOGIA LTDA"
},
"address": { "city": "São Paulo", "state": "SP" },
"updatedAt": "2026-01-27T03:00:00.000Z"
} The data is organized into resources, each with its own identifier:
| Resource | Identifier |
|---|---|
| Company | CNPJ root, the first 8 characters |
| Establishment | 14-character CNPJ |
| Person | Its own id, which is neither the CPF nor the CNPJ |
| Individual | CPF with a state or SUFRAMA registration |
| CEP | 8 digits |
| List | Its own id, belonging to the organization |
What each resource holds is in Company, establishment, person, individual, CEP and list, and where each item comes from, in Data sources.
These guides explain what each feature delivers and when to use it. The full technical specification, with every operation, parameter and field, is in the Reference, and registry and tax terms are in the Glossary.
Features
| Guide | What it delivers | Operations |
|---|---|---|
| CNPJ lookup | Receita Federal registration of a CNPJ, with registration status, address, contacts, economic activities (CNAE) and company data, plus optional resources requested in expand | Lookup CNPJ, Lookup company |
| CNPJ search and lists | Establishments filtered by activity, address, size, tax regime, registration status, dates and contacts, sorted by relevance, CNPJ, opening date, share capital or legal name, with cursor pagination, and CNPJ lists to restrict or exclude results | Search CNPJ, Create list, Search lists, Lookup list, Update list, Delete list |
| Partners and people | Each company’s QSA and the current participations of each natural person, legal entity or foreign party | Lookup CNPJ, Lookup company, Search CNPJ, Lookup person, Search people |
| Tax regime | The company’s current regime, Simples Nacional and SIMEI opt-in, IBS and CBS regular regime option, and period history | Lookup CNPJ, Lookup company, Search CNPJ |
| State registrations | State registrations from the CCC by state, with type, status and enabled tax documents, by CNPJ or by CPF | Lookup CNPJ, Lookup CPF |
| SUFRAMA | SUFRAMA registrations, with status, registration date and approved project, by CNPJ or by CPF | Lookup CNPJ, Lookup CPF |
| Certificates | A single PDF, the dossier, with the certificates you choose, which carry the registration at the source on the date of the query, each as the source’s original PDF or as a reproduction generated by CNPJá: the CNPJ registration certificate, the QSA, Simples Nacional opt-in, and CCC and SUFRAMA registrations | Issue CNPJ dossier, Issue CPF dossier |
| Location and maps | Coordinates of an establishment’s address, a map image and a street view image | Lookup CNPJ, Render CNPJ map, Render CNPJ street view |
| CEP and addresses | Address, type and status of a CEP as registered in the DNE, and CEP search by address or prefix | Lookup CEP, Search CEP |
How it works
Authentication
Outside public access, every request carries one of the organization’s API keys in the Authorization header, as the whole value and with no prefix, and the key stays on your server only. See Authentication and, to create and revoke keys, Managing API keys.
Public access
Lookup CNPJ and Lookup CEP also accept requests without a key and without parameters, with the default values and limits per IP address. See Public access.
Response format
Responses are JSON, except the PDF dossiers and the images; coded values carry a stable code and a label in the requested language, and searches are paginated with a cursor. See Response format.
Data freshness
Each resource comes from a live query, which brings the data available at the source at the time of the query, or from the cache, according to the max age requested in maxAge; a failure at the source can result in 206, a partial success. See Max age and partial success and Data freshness.
Billing
Each resource delivered is charged separately, in live or cached queries, from the same quota the app uses, and responses do not report usage. See Queries and quota and each operation’s consumption in the Metering Rules.
Usage limits
The API limits requests per second and concurrent requests, by plan, and the duration of each request, and answers 429 above a limit. See Limits and errors and the organization’s limits in Usage limits.
Use cases
- Customer onboarding: validate a new customer’s CNPJ and fill in legal name, address and contacts with CNPJ lookup, or the address from the CEP with CEP and addresses.
- Supplier vetting: support the check of the registration status and the partners before doing business, with CNPJ lookup and Partners and people.
- Invoice issuance: support the check of the recipient’s tax regime, Simples Nacional opt-in and state registrations, with Tax regime and State registrations.
- Manaus Free Trade Zone benefits: check the SUFRAMA registrations of a CNPJ or CPF with SUFRAMA.
- Prospecting: find companies by activity, municipality, size or opening date, excluding current customers, with CNPJ search and lists, within the Terms of Use.
- Economic group analysis: see which companies a person takes part in with Partners and people.
- Audit and compliance: keep as PDF a CNPJ’s or CPF’s registration at the source, on the date of the query, with Certificates.
- Logistics and field visits: get an establishment’s coordinates or show its address on a map with Location and maps.
- Low-volume forms: look up CNPJs and CEPs without a key with Public access.
Next steps
- No account: use Public access to look up CNPJs and CEPs directly.
- First request with a key: create your account and follow First request to get a key and use every parameter.
- Plan choice: compare each plan’s quotas in Free, Pro and Enterprise plans and the prices on the pricing page.
- Questions: find short answers in Frequently asked questions.
- Full reference: browse the Reference for every operation, parameter and field, or download the OpenAPI file to import it into tools that support this format. Trying an operation in the Reference with your key consumes the organization’s quota like any request, under the Metering Rules.