Skip to content
CNPJá API

One GET, every record on the company.

Registration, partners, tax regime, state registrations, SUFRAMA and coordinates in a single call to Lookup CNPJ, with the same data and the same allowance as the app. Keys are created in the app, under Settings > API keys, and CNPJ and CEP also answer keyless, as a courtesy.

Source
Official sources and Google Maps
Freshness
Maximum age from 5 minutes to 1 year
Access
With a key; CNPJ and CEP keyless too
Billing
Per resource delivered
cnpja.com/docs/api/first-request Example
$ curl "https://api.cnpja.com/v2/establishments/91850264000190?expand=company.taxRegime" \ -H "Authorization: $CNPJA_API_KEY"
expand
{"updatedAt": "2026-12-01T03:00:00.000Z","taxId": "91850264000190","tradeName": "Exemplo","type": { "code": "HEAD", "label": "Matriz" },"status": { "code": "ACTIVE", "label": "Ativa" },"address": {"street": "Rua das Indústrias","number": "1200","city": "Joinville","state": "SC","postalCode": "89219500","municipality": "4209102"},"primaryActivity": { "code": "2539001", "label": "Serviços de usinagem, tornearia e solda" },"company": {"id": "91850264","legalName": "EXEMPLO INDÚSTRIA LTDA","size": { "code": "SMALL", "label": "Empresa de Pequeno Porte" },"partners": [{"role": { "code": "49", "label": "Sócio-Administrador" },"person": {"type": { "code": "INDIVIDUAL", "label": "Pessoa Física" },"legalName": "Joana Exemplo","taxId": "***650245**"}}],"taxRegime": {"updatedAt": "2026-11-17T03:00:00.000Z","type": { "code": "PRESUMED_PROFIT", "label": "Lucro Presumido" }}}}
Breakdown
  • Establishment (live) 1
  • Tax regime (cached) 1
Usage
  • Live query 1
  • Cached query 1
Total · Queries 2
Each one live or cached, according to the maximum age.
trace-id 4bf92f3577b34da6a3ce929d0e0e4736
What it is for

What you solve with CNPJá API

Official Brazilian company records, built into your systems.

  • Autofill sign-up forms

    Check the CNPJ and fill in legal name, address and contacts on the form, or the address from the CEP. At low volume, keyless public access does the job, as a courtesy.

  • Vet suppliers

    Check registration status, special status and partners before closing a deal or releasing a payment.

  • Get ready to issue invoices

    Check the regime and state registration of the recipient with a short maximum age for the registrations alone, without shortening it for the rest of the answer.

  • Prospect with filters

    Search establishments by activity, municipality, size or opening date, in pages of up to 1,000 records, and leave customers out with a list.

  • Map economic groups

    Follow each partner by the stable id of the person and see which other companies they take part in.

  • Keep certificates on file

    Issue in a single PDF the CNPJ card, the QSA, the Simples opt-in and the CCC and SUFRAMA registrations.

Dashboard and migration

The dashboard you will have, and the way there

Requests, usage, availability and latency measured per key, on the Usage and Requests pages of the same app where keys are created. Coming from another API, a guide takes each parameter and field to its equivalent.

cnpja.com/organizations/current/usage Example
Usage
Period Last 30 days
Actor
Current period Enterprise
Resets on Dec 14
Day 18 of 30
Live queries 71.3K / 100K
Cached queries 612.4K / 1M
Requests
381,186
Peak of 17,765 on 11/19
Queries consumed
637,095
81,039 live · 556,056 cached
Availability
99.95%
175 with a server error
p50 latency
136ms
p50 136ms p95 557ms p99 1,664ms
Breakdown
Requests by status 381,186 requests
0%25%50%75%100%
11/0211/0711/1211/1711/2211/27
Latency by percentile

An allowance that grows without changing plans

Every plan includes an allowance of live queries and another of cached queries, renewed every month and shared by your team in the app and all your keys. On Pro, you add up to 100 live and 1,000 cached packs to the allowance, and a monthly overage budget covers whatever goes past it.

See pricing
Live queries Cached queries Included allowance Packs of 1,000, up to 100 live and 1,000 cached Overage, up to the monthly budget
Sources

Where each piece of data comes from, and when

Each resource comes from a live query at its source or from the cache, according to the maximum age you accept, from 5 minutes to 1 year, 45 days by default. Optional resources can have their own. Stale ones are queried in parallel and, if a source fails, the answer is 206, with the cached data and no charge for that resource.

  • Receita Federal Live Cache
  • Simples Nacional Live Cache
  • CCC Live Cache
  • SUFRAMA Live Cache
  • Correios Cache
  • Google Maps Live Cache
Data What it holds
CNPJ API · taxId
CNPJ looked up, 14 unpunctuated characters, alphanumeric format included.
Last update API · updatedAt
Last update from the official source. Each optional resource carries its own.
Code of each value API · *.code
Stable identifier of every classified value, the same in any language. Base your logic on it.
Label of each value API · *.label
Display text of the code, in pt-BR or en-US according to Accept-Language.
Company API · company
Data shared by head office and branches: legal name, capital, legal nature, size and partners.
Partner identifier API · company.partners[].person.id
Identifier of the person, the same in every company they take part in.
Tax regime API · company.taxRegime
Tax regime and the Simples and SIMEI options, requested in expand, with a maximum age of its own.
State registrations API · stateRegistry
State registrations per state, with status and restrictions, requested in expand, with a maximum age of their own.
SUFRAMA registrations API · suframa
SUFRAMA registrations, with status and approved project, requested in expand, with a maximum age of their own.
Address coordinates API · address.coordinates
Latitude and longitude of the address, requested in expand. They do not follow the maximum age.
Next page API · nextCursor
Cursor to the next page of a search, beside records, total and limit, or null on the last one.
Error identifier API · traceId
Identifier of the request in the body of every error, beside status, code and message.
Refused field API · errors[].field
Field refused by validation, such as items.2 for the third item of a list.
Trace header API · trace-id
Header of every response, successful ones included, with the same identifier.
Customers

Who already uses CNPJá

Good to know

Limits, no fine print

  • Keyless access is a limited, revocable courtesy with no service level: only Lookup CNPJ and Lookup CEP, with no query parameter at all. A CNPJ not yet in the cache returns 404.
  • With a key, the limit follows the organization's plan, across all its keys: 5 requests per second and 5 in flight on Free, 50 on Pro and up to 250 on Enterprise.
  • Each request has up to 60 seconds, and each live query up to 30.
  • Responses carry no cost or limit headers, nor Retry-After. Usage is shown on the Usage and Requests pages of the app.
  • The maximum age applies to each request and schedules nothing: a resource is queried live only when a request finds it past the limit.
In the API

The same data, in your systems

GET /v2/establishments/91850264000190?expand=company.taxRegime,stateRegistry
{  "updatedAt": "2026-11-01T03:00:00.000Z",  "taxId": "91850264000190",  "tradeName": "Exemplo",  "type": { "code": "HEAD", "label": "Matriz" },  "status": { "code": "ACTIVE", "label": "Ativa" },  "address": {    "street": "Rua das Indústrias",    "number": "1200",    "city": "Joinville",    "state": "SC",    "postalCode": "89219500",    "municipality": "4209102"  },  "primaryActivity": {    "code": "2539001",    "label": "Serviços de usinagem, tornearia e solda"  },  "company": {    "id": "91850264",    "legalName": "EXEMPLO INDÚSTRIA LTDA",    "size": { "code": "SMALL", "label": "Empresa de Pequeno Porte" },    "taxRegime": {      "updatedAt": "2026-10-20T03:00:00.000Z",      "type": { "code": "PRESUMED_PROFIT", "label": "Lucro Presumido" }    }  },  "stateRegistry": {    "updatedAt": "2026-10-28T03:00:00.000Z",    "registrations": [      {        "number": "254871236",        "state": "SC",        "type": { "code": "STATE_TAXPAYER", "label": "Contribuinte" },        "isEnabled": true,        "hasRestriction": false      }    ],    "taxRestrictions": []  }}

Lookup CNPJ with two optional resources, tax regime and state registrations, each with its own update date.

Questions

Frequently asked questions

Do I need a key to use the API?

Not for Lookup CNPJ and Lookup CEP with no parameters: public access takes 5 requests per second and 5 in flight per IP, at no charge, as a limited, revocable courtesy with no service level, for low-volume or low-criticality integrations. Every other operation and every parameter needs a key, created in the app under Settings > API keys.

How is the API charged?

Per resource delivered, as live queries, which cost more, or cached ones, from the same monthly allowance your team uses in the app. On Pro, it grows with packs of 1,000 queries and a monthly overage budget. Public requests, list operations and 400, 401, 402, 429 and 5xx responses are not charged; a 404 takes the queries made to confirm it, under the Metering rules.

What does status 206 mean?

Partial success: a live query failed or took over 30 seconds, and the affected resource came from the cache, at no charge. Treat it as success and compare updatedAt with the age you accept.

Is there an OpenAPI specification?

Yes. The interactive reference holds every operation, parameter and field, and the OpenAPI file can be downloaded to import into compatible tools.

What are the request limits?

With a key, the limit is that of the plan the organization is on, across all its keys: 5 per second and 5 in flight on Free, 50 on Pro and up to 250 on Enterprise, as its contract sets. Without a key, public access takes 5 per second and 5 in flight per IP. Past the limit the answer is 429, not charged and with no Retry-After, so pace requests on the application side.

How do I migrate from another CNPJ API?

There are guides for ReceitaWS, SintegraWS, Infosimples, CNPJ.ws, BrasilAPI and OpenCNPJ, with the equivalent of every parameter, field and behavior.

Connect

Goes well with

Start on the free plan.

Create an account in a minute and look up any Brazilian company, in the app or through the API.