Consulting CNPJ in the Public API

In the public API, you can make up to 3 queries per minute of a CNPJ using the GET method. This query is made only in our database.

Remember to send the CNPJ without special characters.

Method: GET

Endpoint: https://publica.cnpj.ws/cnpj/CNPJ_NUMBER_WITHOUT_SPECIAL_CHARACTERS

Request Examples

Recupera dados de uma empresa pelo seu CNPJ (API Pública)

get
Path parameters
cnpjintegerRequired
Responses
chevron-right
200

Sucesso

application/json
get
/cnpj/{cnpj}

We have a package that can help you integrate with JavaScript:

More information about the packagearrow-up-right

Return Example

Below is an example of the JSON returned when searching for the CNPJ 27865757000102:

Last updated

Was this helpful?