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 numbers | CPF, CNPJ |
|---|---|
| Postal codes | Brazilian postal-code coverage from LiveAPI's in-house dataset. |
| Public holidays | National holidays via Nager.Date. |
| IBAN | Length and checksum, with the country's IBAN format. |
| VAT numbers | Not covered. |
| License plates | Not 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.