Brazil

Brazil APIs

CPF and CNPJ checks, including the alphanumeric CNPJ that Receita Federal issues from July 2026, plus postal codes, holidays and IBAN.

What LiveAPI covers in Brazil

ID and tax numbersCPF, CNPJ
Postal codesBrazilian postal-code coverage from LiveAPI's in-house dataset.
Public holidaysNational holidays via Nager.Date.
IBANLength and checksum, with the country's IBAN format.
VAT numbersNot covered.
License platesNot covered.

ID, tax and company numbers

  • CPF POST /v1/validate/BR/cpf
    11 digits, two mod 11 check digits; returns the issuing states. Example: 529.982.247-25
  • CNPJ POST /v1/validate/BR/cnpj
    Numeric or alphanumeric (12 characters + 2 digits); returns root and branch. Example: 12.ABC.345/01DE-35

Checks are algorithmic only (registry_checked: false). Values are never stored or logged.

FAQ

Does it support the new alphanumeric CNPJ?

Yes. Letters A-Z are accepted in the first 12 positions and the check digits use the Receita Federal ASCII-minus-48 rule, so 12.ABC.345/01DE-35 is valid.

Does it query Receita Federal?

No. It is a check-digit test only and does not confirm the CPF or CNPJ is registered or active.

We value your privacy

We use necessary cookies to run this website. With your consent, we would also like to use analytics and marketing cookies. Read our cookie policy.