API Documentation

Integrate real-time CPF and CNPJ validation into your system with our RESTful API. Official Federal Revenue data with 100% coverage.

Quick Start

1. Get your API key

Create your account for free and get your API key from the dashboard.

2. Make your first query

curl -X GET "https://api.cpfcnpj.com.br/v1/cpf/{numero}" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"

Features

Real-time data (D+0)

Data updated directly from Brazilian Federal Revenue.

100% coverage

Full coverage of registered Brazilian CPFs and CNPJs.

Fast response

Average response time between 0.4 and 2 seconds.

LGPD & GDPR

Fully compliant with LGPD and GDPR regulations.

Pricing

Starting at R$ 0.13 per query. Check our packages on the pricing page.

Response Example

{
  "status": 200,
  "data": {
    "cpf": "***.***.***-**",
    "nome": "NOME COMPLETO",
    "nascimento": "01/01/1990",
    "situacao": "Regular",
    "genero": "M",
    "mae": "NOME DA MAE"
  }
}

Ready to get started?

Create your account and start validating CPFs and CNPJs in minutes.

Create free account