> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cnpj-api.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> API for querying Brazilian company registration data by CNPJ

# 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](/en/autenticacao) for details.

```bash theme={null}
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:

| Value       | Description                         |
| ----------- | ----------------------------------- |
| `default`   | Native format of this API (default) |
| `receitaws` | Compatible with ReceitaWS           |
| `cnpja`     | Compatible 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](/en/migrar-receitaws) and [Migrate from CNPJa](/en/migrar-cnpja) for complete guides.

## Main Endpoints

<CardGroup cols={2}>
  <Card title="CNPJ Lookup" icon="building" href="/en/endpoint-cnpj">
    Full registration data: company name, address, economic activities, registration status, partners, and more.
  </Card>

  <Card title="Logos & Websites" icon="image" href="/en/endpoint-logos">
    Logo, favicon, and websites associated with a CNPJ.
  </Card>

  <Card title="Simples Nacional" icon="file-invoice" href="/en/endpoint-simples">
    Simples Nacional tax regime status and MEI (Individual Micro-Entrepreneur) enrollment.
  </Card>

  <Card title="Cities" icon="city" href="/en/endpoint-cidades">
    Aggregated data by municipality: largest companies, recent companies, and top partners.
  </Card>
</CardGroup>
