Consulting CNPJ in the Commercial API

In the commercial API, you can directly query a CNPJ in our database. In this endpoint, you must send the x_api_token header with the token that was sent to you via email.

You can also pass the token as a parameter in the URL, example:

https://comercial.cnpj.ws/cnpj/27865757000102?token=YOUR_TOKEN

Method: GET

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

Request Examples

Recupera dados de uma empresa pelo seu CNPJ (API Comercial)

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
cnpjintegerRequired
Responses
200

Sucesso

application/json
get
/cnpj/{cnpj}

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

More information about the package

Return Example

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

Last updated

Was this helpful?