Serpro Consulta CNPJ API
Company enrichment. 3 documented operations.
API capabilities
1 tasks covered in the catalog.
Documented operations
Provider routes and credentials are separate from All Them APIs.
Consulta BásicaCompany enrichmentGET /basica/{ni}
- Inputs
- ni; x-signature, x-request-tag
- Authentication
- Confirm the key, permissions and plan in the provider documentation.
- Listed response fields
CNPJhead office or branchlegal nametrade nameregistration statusregistration status dateregistration status reasonlegal nature codelegal natureactivity start datemain CNAEsecondary CNAEsstreet typestreetstreet numberaddress complementZIP codeneighborhoodmunicipality codemunicipalitystatecountry codecountryjurisdiction municipality code
Consulta EmpresaCompany enrichmentGET /empresa/{ni}
- Inputs
- ni; x-signature, x-request-tag
- Authentication
- Confirm the key, permissions and plan in the provider documentation.
- Listed response fields
CNPJhead office or branchlegal nametrade nameregistration statusregistration status dateregistration status reasonlegal nature codelegal natureactivity start datemain CNAEsecondary CNAEsstreet typestreetstreet numberaddress complementZIP codeneighborhoodmunicipality codemunicipalitystatecountry codecountryjurisdiction municipality code
Consulta QSACompany enrichmentGET /qsa/{ni}
- Inputs
- ni; x-signature, x-request-tag
- Authentication
- Confirm the key, permissions and plan in the provider documentation.
- Listed response fields
CNPJhead office or branchlegal nametrade nameregistration statusregistration status dateregistration status reasonlegal nature codelegal natureactivity start datemain CNAEsecondary CNAEsstreet typestreetstreet numberaddress complementZIP codeneighborhoodmunicipality codemunicipalitystatecountry codecountryjurisdiction municipality code
Plans & pricing references
Listed fees retain the source billing period and currency. Check the provider for allowances, overages and current terms.
| Plan | Billing | Listed fee | Coverage |
|---|---|---|---|
| Faixa 01 - 1 a 999 | on-demand | R$0.00 | Company enrichment |
| Faixa 02 - 1.000 a 9.999 | on-demand | R$564.34 | Company enrichment |
| Faixa 02 - 1.000 a 9.999 | on-demand | R$742.06 | Company enrichment |
| Faixa 02 - 1.000 a 9.999 | on-demand | R$1,013.79 | Company enrichment |
| Faixa 03 - 10.000 a 49.999 | on-demand | R$3,556.64 | Company enrichment |
| Faixa 03 - 10.000 a 49.999 | on-demand | R$5,962.40 | Company enrichment |
| Faixa 03 - 10.000 a 49.999 | on-demand | R$8,264.17 | Company enrichment |
| Faixa 04 - 50.000 a 99.999 | on-demand | R$13,079.74 | Company enrichment |
| Faixa 04 - 50.000 a 99.999 | on-demand | R$25,109.50 | Company enrichment |
| Faixa 04 - 50.000 a 99.999 | on-demand | R$35,049.30 | Company enrichment |
| Faixa 05 - 100.000 a 249.999 | on-demand | R$17,789.82 | Company enrichment |
| Faixa 05 - 100.000 a 249.999 | on-demand | R$39,759.60 | Company enrichment |
Matching plan fees are grouped across operations. Included credits, metered rates and allowances can differ by operation; consult the official pricing reference.
Showing 12 of 46 listed plan/fee combinations. Use the official pricing reference for the full current offer.
Coding agent prompt
Prepare the adapter with the provider's documentation and your own account.
Build a server-side integration for Serpro Consulta CNPJ.
Read the official provider documentation before choosing authentication, request fields or a plan:
https://apicenter.estaleiro.serpro.gov.br/documentacao/dist/index.html
Catalog operations to verify against the current documentation:
- Consulta Básica: GET /basica/{ni}; inputs: ni; x-signature, x-request-tag
- Consulta Empresa: GET /empresa/{ni}; inputs: ni; x-signature, x-request-tag
- Consulta QSA: GET /qsa/{ni}; inputs: ni; x-signature, x-request-tag
Read credentials from a server-only environment variable such as PROVIDER_SERPRO_CONSULTA_CNPJ_API_KEY; confirm the actual authentication scheme in the provider docs. Never expose credentials in browser code, URLs or logs.
Add bounded timeouts, explicit 401/403/429 handling, input validation and fixture-based tests. Preserve missing values and provider identifiers. Do not run paid or personal-data queries without approval. This is the provider's interface, not an All Them APIs execution endpoint.
If an endpoint, field, account permission or rate limit cannot be confirmed, list the missing requirement instead of inventing a working request. Return the adapter, tests and exact verification steps.Sources & integration checks
- Public source check
- Official source fetched · Nov 25, 2026
- Catalog source date
- Nov 8, 2026
- Authentication reference
- See each operation and confirm the provider's current access requirements.
- Before using in production
- Verify coverage, accepted-result billing, rate limits, data freshness and permitted use for your workload.
Catalog data: Datacircle, CC BY 4.0. Provider sources and check dates are recorded separately. Catalog prices and operations are references, not an Agent Bench result.