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.br/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