Skip to content

CPF lookup

POST/v1/cpf

Looks up a CPF together with its date of birth. The response may reflect a lookup made up to 30 days ago against the official source.

Request body

cpfstringrequired
CPF with 11 digits, with or without punctuation.
birthdatestringrequired
Holder’s date of birth, as YYYY-MM-DD. If it does not match the official source, the answer is 404.

Only a 200 response charges 1 credit.

  • Checks run in this order: CPF and date format (400), check digits (422), balance (402) and, finally, the lookup (official source).
  • When the official source is unavailable the answer is 503 and nothing is charged.

cURL

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

200 OK

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

404 Not Found

1{2 "error": "CPF not found"3}