Skip to content
BrazID

CPF and CNPJ Lookup API

Look up and validate CPFs and CNPJs with official data and high accuracy

CPF, CNPJ and registration data lookup API based on Brazil’s Federal Revenue Service (Receita Federal) data, for fintechs, e-commerce and SaaS. Protect your business from fake sign-ups with a simple, scalable, low-cost integration.

Free plan, no credit card required.

  • Age check
  • Identity check
  • Registration status
Adults-only signupCPF529.982.247-25Date of birth26/11/1982Submit requestConfirm your detailsCPF529.982.247-25Full nameMaria Souza LimaSubmit requestReviewing your signupCPF529.982.247-25Submit requestBrazIDMARIA SOUZA LIMA529.***.***-25Processing…Over 1826/11/1982Name matches the CPFRegistration status is regularREGULAR

Get started in 3 steps.

Plug the API into your system quickly and simply.

  1. 1E-mail[email protected]Create account

    Create your account

    Sign up for free, no credit card needed, and get 20 lookups a month as soon as you confirm your e-mail.

  2. 2New API keyProductionSandboxx-api-key:brz_test_••••••••Copy

    Generate your API key

    Create keys in the dashboard to authenticate requests with the x-api-key header. Use the sandbox key to test without spending credits.

  3. 3POST/v1/cpf/live{ "cpf": "529…" }200 OKMARIA SOUZA529.***.***-25Regular status

    Make your first lookup

    Call the CPF or CNPJ API and get the official data in the response. The documentation has ready-to-copy examples.

Everything your operation needs to validate CPF and CNPJ

CPF and CNPJ lookups, batches, risk screening, webhooks and a test environment in a single API, with official data and no document requests to your customer.

  • Fake accounts and identity fraud

    Cross-check CPF, name and registration status before granting an account and block what does not match.

  • Minor protection

    Work out age from the official birth date, without asking for a document photo.

  • Hiring without surprises

    Confirm the person by CPF and the company by CNPJ before signing.

  • Credit and suppliers

    See a company’s status, activity and partners before extending terms.

  • Security and LGPD

    Encrypted connection, API keys stored only as hashes and lookup data kept only for your plan’s retention period.

  • Compliance & Background Check

    Cross-check a CPF against PEP, sanctions, slave labor and active debt and get the risk level in a single lookup.

  • Batch lookups

    Send a list of up to 1,000 CPFs or CNPJs at once and get a webhook when the batch finishes.

  • WhatsApp support

    Get integration questions answered by our team, on WhatsApp or by email.

Clear pricing. No surprises at the end of the month.

Free

$0/mo

20 lookups included per month, renewed every cycle

Extra lookup
Unavailable
  • Full access
  • REST API
  • Lookup history
  • WhatsApp and email support
Start free
Most popular

Pro

$59/mo

37% OFF

Credits per month

Extra lookup
$0.07
  • Full access
  • REST API
  • Lookup history
  • WhatsApp and email support
Subscribe

Corporate

On request

From 10,000 lookups included

Extra lookup
Contracted
  • Full access
  • REST API
  • Lookup history
  • WhatsApp and email support
  • Team with roles and SSO (SAML/OIDC)
Talk to sales

Prices in USD apply to companies outside Brazil. Companies with a Brazilian CNPJ or CPF are billed in BRL.

  • Only successful responses use a credit. Validation, authentication, rate-limit and availability errors are free.
  • The allowance lasts 30 days and does not roll over, free plan included (20 lookups per cycle).
  • Email and webhook alerts when usage reaches 80% and 95% of your quota.

Integrate in any language

One HTTP request and an API key. See how to look up a CPF in your language and what the API returns.

cURL POST /v1/cpf/live

1curl -X POST \2 'https://api.brazid.com/v1/cpf/live' \3 -H 'x-api-key: YOUR_API_KEY' \4 -H 'Content-Type: application/json' \5 -d '{"cpf":"52998224725","birthdate":"1982-11-26"}'

Response

1{2 "success": true,3 "data": {4 "cpf": "52998224725",5 "name": "MARIA SOUZA LIMA",6 "birthdate": "1982-11-26",7 "day": 26,8 "month": 11,9 "year": 1982,10 "situation": "REGULAR",11 "registration_date": "2004-03-12"12 }13}

Lookup completed successfully.

Frequently asked questions

Talk to us

Did not find what you were looking for?

Tell us what you need and our team will get back to you.

Contact the team
Where does the data come from?

CPF data comes from the official registry through an accredited provider, and the lookup requires the holder’s date of birth. CNPJ data comes from the Receita Federal open data. We keep results for up to 30 days to answer repeated lookups faster.

What counts as a billed lookup?

Only 200 responses, meaning the document was found (1 credit for a simple CPF lookup or a CNPJ lookup; 2 credits for a live CPF lookup). Invalid format (400), wrong check digit (422), not found (404), rate limit (429) or unavailability (503) never use a credit.

What happens when my quota runs out?

On the free plan the API answers 402 (Payment Required) once the cycle’s 20 lookups are used, until it renews. On Pro and Corporate plans it keeps answering and each extra lookup is billed on the renewal invoice at your plan’s rate.

How do you handle personal data?

All traffic uses TLS and API keys are stored only as SHA-256 hashes. The logs of your lookups are visible only to your account, for 24 hours to 30 days depending on the plan, and our internal team sees only masked CPFs (123.***.***-00).

Can I cancel at any time?

Yes. When you cancel, your account returns to the free plan at the end of the paid cycle.

Run your first lookup in a few minutes.

Create an account, confirm your email and generate your API key in the dashboard.

  • 20 free lookups per month
  • No credit card
  • Sandbox to test