LatAm Tax ID Validator: CNPJ, CPF, RFC, CURP, NIT, RUT, RUC avatar

LatAm Tax ID Validator: CNPJ, CPF, RFC, CURP, NIT, RUT, RUC

Pricing

$0.50 / 1,000 validations

Go to Apify Store
LatAm Tax ID Validator: CNPJ, CPF, RFC, CURP, NIT, RUT, RUC

LatAm Tax ID Validator: CNPJ, CPF, RFC, CURP, NIT, RUT, RUC

Validate and format Latin American tax IDs in bulk: Brazil CNPJ (including the new alphanumeric CNPJ) and CPF, Mexico RFC and CURP, Colombia NIT, Chile RUT, Peru RUC, Argentina CUIT/CUIL, Ecuador, Uruguay, Guatemala, Paraguay, Dominican Republic and Venezuela.

Pricing

$0.50 / 1,000 validations

Rating

0.0

(0)

Developer

Ceiba Data

Ceiba Data

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Security

Limited permissions

Share

LatAm Tax ID Validator (CNPJ, CPF, RFC, CURP, NIT, RUT, RUC, CUIT)

Validate, format and classify Latin American tax and identity numbers in bulk, offline and in milliseconds. It checks the official check-digit algorithms for 12 countries, including Brazil's new alphanumeric CNPJ (issued since July 2026), and tells you why a number is invalid.

CountryIDsWhat you get
🇧🇷 BrazilCNPJ (numeric and alphanumeric), CPFCheck digits, formatting, head office or branch
🇲🇽 MexicoRFC (companies and individuals), CURPCheck digit, embedded date, generic RFCs, CURP birth date, sex and state
🇨🇴 ColombiaNITCheck digit (DV) validation or calculation
🇨🇱 ChileRUTCheck digit including K, formatting
🇵🇪 PeruRUCPerson or company, embedded DNI
🇦🇷 ArgentinaCUIT / CUILPerson or company, embedded DNI
🇪🇨 EcuadorRUC, cédulaNatural, juridical or public RUC
🇺🇾 UruguayRUTStructure and check digit
🇬🇹 GuatemalaNITCheck digit including K
🇵🇾 ParaguayRUCCheck digit
🇩🇴 Dominican RepublicRNCCheck digit
🇻🇪 VenezuelaRIFType letter and check digit

Why use it

  • Clean supplier and customer data before it reaches your ERP, invoicing or KYC flow.
  • Catch typos at onboarding: a wrong check digit is the most common reason an invoice is rejected by DIAN, SAT, SUNAT or SEFAZ.
  • Ready for the alphanumeric CNPJ: many systems still reject letters. This Actor implements IN RFB 2.229/2024 and was cross-checked against 12,100 reference cases.
  • Built for AI agents: a deterministic tool an agent can call through the Apify MCP server instead of guessing.

No website is scraped and no data leaves the run: validation is pure computation, which is why it is fast and cheap.

How to use it

  1. Paste your IDs in IDs to check, one per line. Dots, hyphens and slashes are fine.
  2. Leave Country on auto-detect, or set it when your list comes from one country.
  3. Run it and download the results as JSON, CSV or Excel, or call it from the API.

Auto-detection uses the format and the check digits. Some numbers are valid in two countries (an 11-digit number starting with 20 can be a Peruvian RUC and an Argentine CUIT at the same time); those come back with ambiguous: true and both candidates, so set Country for those lists.

Output example

{
"input": "12.ABC.345/01DE-35",
"isValid": true,
"country": "BR",
"idType": "CNPJ",
"normalized": "12ABC34501DE35",
"formatted": "12.ABC.345/01DE-35",
"checkDigit": "35",
"entityType": "company",
"details": { "root": "12ABC345", "branch": "01DE", "isHeadOffice": false, "alphanumeric": true },
"reason": null,
"notes": ["Alphanumeric CNPJ (issued from July 2026 under IN RFB 2.229/2024)."]
}

An invalid number explains the problem, for example "reason": "Wrong check digit: expected 4, got 5."

Use cases

  • Supplier and customer onboarding: reject a mistyped NIT, CNPJ or RFC before it reaches your ERP.
  • Data cleaning: validate and format a whole CRM export in one run.
  • E-invoicing: catch the wrong check digit that makes DIAN, SAT, SUNAT or SEFAZ reject an invoice.
  • AI agents: a cheap, deterministic tool to verify an ID mentioned in a conversation or document.

Use with AI agents (MCP)

Every Apify Actor is also a tool for AI agents. Add this Actor to Claude, Cursor, VS Code or any MCP client with the Apify MCP server:

https://mcp.apify.com?tools=ceibadata/latam-tax-id-validator

Or run it locally:

$npx -y @apify/actors-mcp-server --tools ceibadata/latam-tax-id-validator

Then just ask, for example:

Check whether these tax IDs are valid and tell me the country and type of each: 800.197.268-4, 12.ABC.345/01DE-35, GODE561231GR8.

Example input (API / AI agents)

{
"ids": [
"800.197.268-4",
"12.ABC.345/01DE-35",
"GODE561231GR8"
],
"country": "auto"
}

From code, one call returns the results:

curl -X POST "https://api.apify.com/v2/acts/ceibadata~latam-tax-id-validator/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
-H 'Content-Type: application/json' -d @input.json

Pricing

You pay a small fee per ID checked. There is no monthly fee and nothing is charged when the input is empty.

FAQ

Does it check that the company exists or is active? No. It checks that the number is well formed and its check digits are correct, which is what tax authorities validate first. Registry lookups (status, name, address) are a separate step.

Why can a Mexican RFC be valid while its check digit fails? The SAT has issued some RFCs whose check digit does not follow its own algorithm. The Actor reports the mismatch in details.checkDigitValid so you can decide.

My Colombian NITs have no check digit. Turn on Colombian NITs come without check digit and the Actor calculates it for you.


En español / Em português

Validador de NIT, RUT, RUC, CUIT, RFC y CURP para Latinoamérica: verifica el dígito de verificación, da formato y dice si es persona o empresa. Validador de CNPJ alfanumérico e CPF para o Brasil, conforme a IN RFB 2.229/2024.


Built and maintained by Ceiba Data, a studio that publishes Latin American data tools on Apify. Ceiba Data is operated with AI. Questions or a missing country? Open an issue on this Actor and we will answer within 24 hours.