Simple CPF lookup
GET/v1/cpf/{cpf}
Looks up a CPF by number only, without a date of birth. Returns the same payload as the live lookup, without the situation and registration_date fields. It is the cheapest option, 1 credit per lookup.
Path parameter
- cpfpathrequired
- CPF with 11 digits, numbers only (no punctuation).
Only a 200 response charges 1 credit.
- Checks run in this order: CPF format (400), check digits (422), balance (402) and, finally, the lookup.
- The response has the same format as the live lookup, but without the
situationandregistration_datefields: it returnscpf,name,birthdate,day,monthandyear. - A CPF with no record answers 404 and is not charged. If the source is unavailable, the answer is 503. Only a 200 response uses a credit.
- It does not take a date of birth, so there is no date check: the lookup confirms identity by the CPF.
- If you also need the registration status and registration date, use the live lookup (
POST /v1/cpf/live), which costs 2 credits.
cURL
1curl https://api.brazid.com/v1/cpf/52998224725 \2 -H "x-api-key: $BRAZID_API_KEY"
1const res = await fetch('https://api.brazid.com/v1/cpf/52998224725', {2 headers: { 'x-api-key': process.env.BRAZID_API_KEY },3});4 5const data = await res.json();6console.log(res.status, data);
1import os2import requests3 4res = requests.get(5 "https://api.brazid.com/v1/cpf/52998224725",6 headers={"x-api-key": os.environ["BRAZID_API_KEY"]},7)8 9print(res.status_code, res.json())
1$ch = curl_init("https://api.brazid.com/v1/cpf/52998224725");2curl_setopt_array($ch, [3 CURLOPT_RETURNTRANSFER => true,4 CURLOPT_HTTPHEADER => ["x-api-key: " . getenv("BRAZID_API_KEY")],5]);6 7$data = json_decode(curl_exec($ch), true);8$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
200 OK
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": 198210 }11}
404 Not Found
1{2 "error": "CPF not found"3}