# CNPJ.ws > CNPJ.ws is an API (Application Programming Interface) for querying data of Brazilian legal entities through the CNPJ (Cadastro Nacional da Pessoa Jurídica). It returns public company data in JSON format, making it easy to integrate with any software. Keep your suppliers' and customers' data always up to date by consulting the complete data of any company using its CNPJ. The API is developed and maintained by Bitize, a startup born in the Sorocaba Technology Park, which uses this data in BitERP, its AI-powered ERP, to find and approve suppliers for its clients. Key facts: - **Data source**: CNPJ.ws periodically fetches data from public agencies such as the Receita Federal (Federal Revenue), Sintegra, and Suframa, enriching its database and delivering relevant, updated information in an organized and fast manner. - **Detailed information**: Partners (sócios), branches (estabelecimentos), addresses, Simples Nacional, MEI, state registrations (inscrições estaduais), Suframa registrations, economic activities (CNAE), legal nature, company size, registration status, and more. - **Two API tiers**: a free Public API and a token-authenticated Commercial API. - **Company search filters** (Premium plan only): search companies by state, city, CNAE, registration status, and state registration. - **Rate limits**: the free Public API allows up to 3 queries per minute. Paid plans have a general limit of 2,000 requests per minute plus a monthly query quota; after the contracted monthly limit is reached, queries continue but are capped at 4 per minute. Monthly limits do not accumulate into following periods. - **Consumption notifications**: the API sends emails when consumption reaches 80%, 90%, and 100% of the monthly quota. - **Billing**: charges are monthly, with a Service Invoice (Nota Fiscal de Serviço) issued for each charge after payment. Monthly, semi-annual, and annual billing cycles are available. - **Alphanumeric CNPJ**: the API is already prepared for the alphanumeric CNPJ format, whose first registrations are expected in July 2026. - **Languages**: the site is available in Portuguese (pt-BR, default), English (en-US), and Spanish (es-ES) under locale-prefixed URLs. ## Documentation - [CNPJ.ws Documentation — llms.txt](https://docs.cnpj.ws/llms.txt): Full machine-readable index of the CNPJ.ws documentation, including data models, API reference, and guides. **Start here for API details.** - [Documentation home](https://docs.cnpj.ws/): Overview, data models, API reference, and integration guides. - [Commercial API reference](https://docs.cnpj.ws/referencia-de-api/api-comercial.md): Token-authenticated API with CNPJ lookup, company search, and usage monitoring. - [Public API reference](https://docs.cnpj.ws/referencia-de-api/api-publica.md): Free API for basic CNPJ consultation. - [Public API limitations](https://docs.cnpj.ws/referencia-de-api/api-publica/limitacoes.md): Rate limits and restrictions of the free tier. - [Data models](https://docs.cnpj.ws/modelos-de-dados.md): Reference for establishments, partners, economic activities, states, cities, legal natures, company sizes, tax regimes, and more. - [Error messages](https://docs.cnpj.ws/modelos-de-dados/mensagens-erro.md): Error codes and responses returned by the API. - [Changelog](https://docs.cnpj.ws/changelog.md): API and documentation change history. ## Site - [Home (English)](https://www.cnpj.ws/en-US): Product overview, free CNPJ lookup, plans, and FAQ. - [Home (Portuguese)](https://www.cnpj.ws/pt-BR): Versão em português. - [Home (Spanish)](https://www.cnpj.ws/es-ES): Versión en español. - [Client Portal](https://app.cnpj.ws): Sign in to manage your subscription, API tokens, and usage. - [GitHub](https://github.com/cnpj-ws): Official CNPJ.ws repositories and code samples. ## Integration guides - [Consult CNPJ with Javascript and Node.js](https://docs.cnpj.ws/blog/consultar-cnpj-javascript.md) - [Consult CNPJ with PHP](https://docs.cnpj.ws/blog/consulta-cnpj-php.md) - [Consult CNPJ with Java](https://docs.cnpj.ws/blog/consultar-cnpj-java.md) - [Consult CNPJ with ADVPL (Protheus)](https://docs.cnpj.ws/blog/integracao-protheus.md) - [Protheus trigger for CNPJ lookup](https://docs.cnpj.ws/blog/gatilho-consultar-cnpj.md) - [Consult CNPJ for free with Excel](https://docs.cnpj.ws/blog/consultar-cnpj-excel.md) - [Automate customer registration with a CNPJ API](https://docs.cnpj.ws/blog/como-automatizar-o-cadastro-de-clientes-com-uma-api-de-consulta-cnpj.md) - [Keep customer and supplier records up to date](https://docs.cnpj.ws/blog/manter-clientes-fornecedores-atualizados.md) ## Background - [What is the CNPJ](https://docs.cnpj.ws/blog/o-que-e-cnpj.md): The Cadastro Nacional de Pessoa Jurídica is the registry used by the Receita Federal to open an institution, with or without profit purposes. - [Alphanumeric CNPJ](https://docs.cnpj.ws/blog/cnpj-alfanumerico.md): How to calculate the check digits of the alphanumeric CNPJ. - [Test alphanumeric CNPJ](https://docs.cnpj.ws/blog/cnpj-alfanumerico-de-teste.md): Example for adapting your application ahead of the July 2026 rollout. - [The CNPJ.ws project](https://docs.cnpj.ws/blog/cnpjws.md) ## Legal - [Terms of Use](https://www.cnpj.ws/en-US/termos-de-uso) - [Privacy Policy](https://www.cnpj.ws/en-US/politicas-de-privacidade) - [Service Level Agreement (SLA)](https://www.cnpj.ws/en-US/acordo-de-nivel-de-servico) Data returned by CNPJ.ws is public and non-confidential, and its disclosure complies with Decree No. 8.777/2016 and Law No. 12.527/2011, which ensure the constitutional right of access to information, while respecting the individual right to privacy. ## Contact - Email: contato@cnpj.ws - Address: Rua Eugênio Rabello, 98, Jardim Embaixador, Sorocaba-SP, Brazil - Legal entity: C D TIRABASSI JUNIOR TECNOLOGIA DA INFORMAÇÃO LTDA — CNPJ 42.064.856/0001-70 - Parent company: [Bitize](https://www.bitize.com.br) - Related product: [BitERP](https://www.biterp.ai) — AI-powered ERP that consumes CNPJ.ws data