State Registration (IE) Lookup by CNPJ
A company's State Registration (Inscrição Estadual, IE) is its entry in the ICMS taxpayer registry of its Brazilian state - any business that issues goods invoices needs one. CNPJAPI looks up a CNPJ's IE from the official source: the State Revenue offices' (SEFAZ) taxpayer registry, through the same official SEFAZ (NF-e) web services that invoice issuers use - and without you needing your own digital certificate.
The problem
- The federal Receita Federal database (and the APIs that only mirror it, such as ReceitaWS) does not carry the State Registration - the IE is state-level, not federal.
- Integrating with SEFAZ yourself requires a digital certificate and a per-state implementation - costly and slow.
- Sites that "look up IE" usually scrape the SEFAZ portals: they break when a portal changes, hit captchas, and offer no stable API to automate.
How the API solves it
One call per CNPJ returns the State Registration from the official source:
- Official SEFAZ source (taxpayer registry), not scraping
- No certificate of yours: CNPJAPI bridges to SEFAZ; you use just the API key
- 16 states covered, including Rio de Janeiro: AC, AM, BA, ES, GO, MT, MS, MG, PB, PR, PE, RJ, RN, RS, SC, SP
- By state or a nationwide sweep in a single call
- Status (active or cancelled), taxpayer type (ICMS taxpayer, exempt or non-taxpayer) and the legal name as held in the state registry
- REST API with the same key as the CNPJ lookup; combine both with
?incluir=ie
See the full contract and the live availability by state.
Official source vs scraping
| CNPJAPI (official source) | Portal scrapers | |
|---|---|---|
| Origin | Official SEFAZ web service | Portal HTML, subject to change |
| Stability | Versioned, stable contract | Breaks when the portal changes |
| Captcha | No | Frequent |
| Automation | REST API with a key | Fragile or nonexistent |
| Coverage | 16 states, including RJ | Varies per site |
An API alternative to SINTEGRA: IE lookup by CNPJ
SINTEGRA (Brazil's integrated system for interstate ICMS operations) is the free public service that aggregates the state tax authorities' (SEFAZ) ICMS taxpayer registries and lets you check, by CNPJ, whether a company's State Registration (IE) exists and its status. For a one-off lookup it does the job - but it's manual, one portal per state, with captchas and no API to automate.
CNPJAPI queries the same official SEFAZ ICMS taxpayer registry, through a stable REST API: one call per CNPJ, by state or as a nationwide sweep, with no captcha and no portal-by-portal navigation. It's SINTEGRA for teams that need to automate - integrate into an ERP, validate records in bulk or query at scale.
CNPJAPI is not SINTEGRA and is not affiliated with it; the data comes from the same source - the state tax authorities' ICMS taxpayer registries.
FAQ
Does Receita Federal (or ReceitaWS) return the State Registration? No. The IE is a state-level (ICMS) record; the federal registry does not include it. It comes from each state's SEFAZ.
How do I look up a CNPJ's IE?
Call GET /consulta/ie/{cnpj}?uf=SP with your API key, or omit the state to sweep the 16 covered states in one call.
Do I need a digital certificate? No. CNPJAPI already runs the official SEFAZ integration; you query with just the API key.
Is CNPJAPI's IE lookup a SINTEGRA? The data is the same you'd find on SINTEGRA - the state SEFAZ ICMS taxpayer registry - but CNPJAPI delivers it through a REST API, to automate by CNPJ, by state or nationwide, with no captcha. CNPJAPI is not SINTEGRA and is not affiliated with it.
Where to start
- Generate your API key at https://app.cnpjapi.com.br. Every registered plan includes a monthly IE quota - the free plan too - plus top-up credits for volume.
- Call
GET /consulta/ie/{cnpj}?uf=SP, or omit the state for the nationwide sweep (see the guides). - Need the registration data alongside? Use
GET /{cnpj}?incluir=ie.
Create your account and look up State Registration from the official source in minutes.