Skip to main content

CNPJ Lookup API

A complete API for querying Brazilian company registration data, with data from the Federal Revenue Service (Receita Federal), Simples Nacional, and company branding.

Authentication

All requests require a token. Free tokens are available with usage limits. See Authentication for details.
curl "https://api.cnpj-api.com/v1/cnpj/12345678000195?token=YOUR_TOKEN"

formato Parameter

The /cnpj/{cnpj} endpoint accepts a formato parameter that returns the response in formats compatible with other APIs:
ValueDescription
defaultNative format of this API (default)
receitawsCompatible with ReceitaWS
cnpjaCompatible with CNPJa
This makes it easy for clients migrating from ReceitaWS or CNPJa. Simply change the base URL and add ?formato=receitaws or ?formato=cnpja to maintain compatibility with existing code. See Migrate from ReceitaWS and Migrate from CNPJa for complete guides.

Main Endpoints

CNPJ Lookup

Full registration data: company name, address, economic activities, registration status, partners, and more.

Logos & Websites

Logo, favicon, and websites associated with a CNPJ.

Simples Nacional

Simples Nacional tax regime status and MEI (Individual Micro-Entrepreneur) enrollment.

Cities

Aggregated data by municipality: largest companies, recent companies, and top partners.