NewFacial identity verification

Simple Lookup

CPF lookup API.
Name and date of birth, instantly.

Send only the CPF (Brazil's individual taxpayer ID) and get name, gender and date of birth in JSON. No e-CNPJ (Brazilian company ID), no digital certificate, no sales meeting. 50 free credits per month to try it out.

No credit card. Your key appears in the dashboard right away.

What you get

The CPF goes in. The person comes out.

Eleven digits become a completed record, before the person finishes typing.

The holder's name

Full name, with accents. The nameUpper field has the same name in uppercase, ready to compare with what the person typed.

namenameUpper

The date of birth

In DD/MM/YYYY and also split into day, month and year. Calculating age becomes simple arithmetic, with no text parsing.

birthDatedaymonthyear

The gender

M or F, as recorded in the registry. May be null when the data does not exist.

gender

The standardized CPF

The 11 digits, with no dots or dash, even if you send the CPF formatted.

cpf

The Simple Lookup does not return registration status, year of death, address, phone or email. For registration status and proof, use the Real-Time Lookup.

See the full response reference

How it works

Three steps, none of them bureaucratic.

From a new account to your first JSON in production, with no sales intermediary in the way.

  1. 01

    Create an account and copy your key

    Self-serve signup at app.cpfhub.io, with no e-CNPJ (Brazilian company ID), digital certificate or contract. Your API key appears in the dashboard right after signup.

  2. 02

    Call GET /cpf/{cpf}

    One HTTP request with the x-api-key header. The CPF goes in the URL, with or without formatting. No body, no OAuth and no expiring token.

  3. 03

    Get the JSON and move on

    Name, gender and date of birth come back in the same call. Your form fills itself in, or your validation rule decides on the spot.

Integrate in any language

REST API with an OpenAPI spec and ready-made examples, simple enough for your AI agent to integrate on its own.

cURLGET /cpf/12345678909
# Send a CPF, get name, gender and birth date

curl -X GET \
  'https://api.cpfhub.io/cpf/12345678909' \
  -H 'x-api-key: YOUR_API_KEY'
Response
{
  "success": true,
  "data": {
    "cpf": "12345678909",
    "name": "Fulano de Tal",
    "nameUpper": "FULANO DE TAL",
    "gender": "M",
    "birthDate": "15/06/1990",
    "day": 15,
    "month": 6,
    "year": 1990
  }
}

50 free credits per month, no credit card required.

Where to use it

Built for the critical path.

Where the lookup replaces manual typing, phone verification and signup rework.

Fill in the signup form

The person types the CPF and the rest of the form completes itself. Fewer fields to fill in means less abandonment, and the data goes into your database already standardized.

Fraud prevention at signup and checkout

Compare the name and date the person entered with what the API returns. A mismatch becomes a manual review instead of a chargeback.

Age verification

The year field comes separate precisely for this. Calculate the age without parsing a string and apply your age-bracket rule.

Customer record cleanup

An old database with misspelled names or missing dates of birth. Run the CPFs through the API and normalize the whole file.

Checks in customer support

The agent confirms the holder's name and date of birth during the call, without depending on what the customer remembers on the spot.

AI agents via MCP

The official MCP server exposes the lookup as a tool. Claude, Cursor and Windsurf can look up a CPF without you writing an HTTP client.

Credits and errors

A CPF that is not found does not use any credits.

You pay for results, not for attempts. A messy database does not turn into an inflated invoice.

How credits are used

  • A lookup that finds the CPF uses 1 credit.
  • A CPF with no record returns 404 and uses no credit.
  • A CPF with an incorrect format or check digit returns 400 or 422 and is neither looked up nor charged.
  • GET /quota shows your balance and never uses a credit.
  • Default limit of 30 requests per minute per key (each batch counts as 1). Above that, the API returns 429 and uses no credit.

Response codes

200CPF found. Uses 1 credit.
400The CPF does not have 11 digits after stripping non-numeric characters.
401API key missing or invalid.
403Credits used up on a plan without overage, or inactive account.
404Valid CPF, but no record. Does not use a credit.
422Incorrect check digit, including repeated sequences.
429More than 30 requests per minute. Wait for the time in the Retry-After header. Does not use a credit.

Plans

Start on the Free plan. Move up when you need to.

The same balance applies to the Simple Lookup (1 credit) and the Real-Time Lookup (1.5 credits). You switch routes without switching plans. All prices are in Brazilian reais (BRL).

Free

R$ 0

50 credits per month, no card required

SLA 95%

Enterprise

Custom pricing

Over 10,000 credits per month

SLA 99.9%

In production

Already running in the signup flow of teams that scale.

7,000+

companies served

30M+

CPFs verified

50

free credits per month, no card required

Frequently asked questions

Automated assistance, 24 hours a day

Still have questions?

Chat with us on WhatsApp.

Talk to our team
What does the CPF lookup API return?

Full name, gender (M/F) and date of birth. Fields: cpf (11 digits, unformatted), name, nameUpper, gender, birthDate, day, month and year. It does not return a score, address, phone number or email. For registration status, year of death and proof, use the Real-Time Lookup at /en/cpf-lookup-federal-revenue.

Does the API offer single and batch lookups?

Yes. The Simple Lookup is GET /cpf/{cpf} and batch is POST /cpf/bulk (up to 10,000 CPFs, an asynchronous job polled with GET /cpf/bulk/{jobId}). There is also GET /quota for balance and plan, which does not use credits.

Do I need an e-CNPJ or a digital certificate?

No. The integration is self-serve: create the account, copy the API key from the dashboard and send it in the x-api-key header. No e-CNPJ and no biometrics.

How much does the CPF lookup API cost?

Free: 50 credits per month, no card, 95% SLA. Pro: from R$ 19 per month with 100 credits (up to 10,000), overage from R$ 0.19 to R$ 0.10 per credit depending on volume, 99% SLA. Enterprise: custom pricing, 99.9% SLA. See /en/pricing.

What is the difference from the Real-Time Lookup?

The Simple Lookup needs only the CPF and responds from our database, with name, gender and date of birth, for 1 credit. The Real-Time Lookup also needs the holder's date of birth, queries Receita Federal (Brazil's federal tax authority) in real time and returns registration status, year of death (deathYear, integer or null), control code and HTML proof, for 1.5 credits per successful lookup. Both use the same key and the same balance.

Is there a request limit?

Yes, per minute and per API key: 30 requests per minute on Simple Lookup (each batch counts as 1) and 5 on Real-Time Lookup. Above that, the API responds 429 with Retry-After, without consuming credits. Usage is controlled by the plan's credit balance. On Free (50 credits/month), the API stops when the credits run out. Paid plans with overage enabled keep responding and the overage is billed in the next cycle.

Does a CPF that is not found use a credit?

No. Only lookups that return data use a credit. A valid CPF with no record returns 404 at no charge, and a CPF with an incorrect check digit returns 422 without being looked up.

Does the API work with AI agents?

Yes. The official MCP server is at https://api.cpfhub.io/mcp and exposes the lookup as a tool for Claude, Cursor and Windsurf, with the same API key. You do not need to write an HTTP client.

Is the API LGPD compliant?

Yes. We process personal data with a legal basis and privacy practices. LGPD is Brazil's data protection law. DPO: dpo@cpfhub.io. Policy at /en/privacy.

Integrate the CPF API in minutes.

  • 50 free credits per month
  • No credit card
  • 24h assistance on WhatsApp
WhatsApp