curl -X GET 'https://api.apicpf.dev/consulta?cpf=52998224725' \
-H 'X-API-KEY: sk-live_sua_chave_aqui' \
-H 'Accept: application/json'
curl -X GET 'https://api.apicpf.dev/v1/validate?cpf=529.982.247-25'
curl -X GET 'https://api.apicpf.dev/cpf/52998224725' \
-H 'X-API-KEY: sk-live_sua_chave_aqui'
$ch = curl_init('https://api.apicpf.dev/consulta?cpf=52998224725');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'X-API-KEY: sk-live_sua_chave_aqui',
'Accept: application/json',
],
]);
$response = curl_exec($ch);
curl_close($ch);
$json = file_get_contents('https://api.apicpf.dev/v1/validate?cpf=52998224725');
$ch = curl_init('https://api.apicpf.dev/cpf/52998224725');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['X-API-KEY: sk-live_sua_chave_aqui']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
const res = await fetch('https://api.apicpf.dev/consulta?cpf=52998224725', {
headers: {
'X-API-KEY': 'sk-live_sua_chave_aqui',
'Accept': 'application/json',
},
});
const data = await res.json();
const res = await fetch('https://api.apicpf.dev/v1/validate?cpf=52998224725');
const data = await res.json();
const res = await fetch('https://api.apicpf.dev/cpf/52998224725', {
headers: { 'X-API-KEY': 'sk-live_sua_chave_aqui' },
});