BrasilAPI (community project) — data from the Receita Federal (Brazilian Federal Revenue) CNPJ register

BrasilAPI — CNPJ (company register)

Brazil's public company register (CNPJ), served by the community-run BrasilAPI. It returns the official record from the Receita Federal database — corporate name, trade name, address, CNAE activity codes, partners (QSA) and registration status.

Official source Brazil no key REST/JSON
GET brasilapi.com.br/api/cnpj/v1/{cnpj}

Verified 2026-09

About this API

BrasilAPI is a community-run, open-source aggregator of Brazilian public data. Its /api/cnpj/v1/{cnpj} endpoint returns a company's full record from a CNPJ number: registration details, address, primary and secondary CNAE activity codes, the list of partners and officers (QSA) and registration status. The underlying data comes from the Minha Receita project, which processes the open CNPJ dataset published periodically by the Receita Federal (Brazilian Federal Revenue). The API is free, needs no key and returns an "*" CORS header, so it also works straight from the browser.

Frequently asked questions

Do I need an API key?

No. The CNPJ endpoint is fully open — no API key, registration or token is required. You simply make a GET request with the CNPJ number.

What data does this API return?

The official company record from the CNPJ database: corporate name (razão social), trade name, full address, primary and secondary CNAE activity codes, the list of partners and officers (QSA) and registration status (e.g. ATIVA).

Can this API be called directly from a browser?

Yes. The API returns an Access-Control-Allow-Origin: * header, so you can call it straight from front-end code without a proxy server. That is why the live "Try it" button on this page works.

Who runs this API?

BrasilAPI is an independent, open-source community project (MIT license). The CNPJ endpoint itself is backed by the Minha Receita project, which processes the open CNPJ dataset published by the Receita Federal — Brazil's Federal Revenue Service. BrasilAPI is not an official government service.