CPF API
Tenha acesso à API do CPF para verificar o nome, data de nascimento e status de registro dos indivíduos.
API - CPF
Vantagens da CPF API
A API do CPF oferece mais segurança e integridade para os dados pessoais.
-
Evite fraudes
-
Automatize a verificação de indivíduos
-
Melhore a análise de leads
-
Verifique a situação do cadastro
-
Fácil de usar
-
Bibliotecas em C# e Java
A documentação
mais completa
Veja exemplos de uso abaixo.
A documentação
mais completa
Veja exemplos de uso abaixo.
Através do botão, acesse a documentação completa. Ou veja um exemplo de uso abaixo.
Edit Content
Request
GET
https://api.nuv.tools/cpf/v1/{token}?cpf={cpf}&birthdate={birthdate}
token: provided for testing or after contracting.
• Size: 128
• Type: Alphanumeric
• Mandatory: true
cpf: registration number without punctuation.
• Size: 11
• Type: Number
• Mandatory: true
• Example: 12345678901
birthdate: CPF owner’s date of birth.
• Size: 8
• Type: Number
• Format: yyyyMMdd
• Mandatory: true
• Example: 19980203
Response
{
"status": "OK",
"cpf": "123.456.789-10",
"name": "JOSÉ ALVES",
"genre": "M",
"birthdate": "02/13/1985",
"status": "REGULAR",
"registrydate": "05/18/2001"
}
Edit Content
Cliente
using System;
using NuvTools.API.CPF;
namespace Company
{
public class CpfClientService
{
private readonly ApiCpfClient _apiCpfClient;
public CpfClientService(ApiCpfClient apiCpfClient)
{
_apiCpfClient = apiCpfClient;
}
public async Task> Find(CpfFilter cpfFilter)
{
var queryString = cpfFilter.GetQueryString();
return await _apiCpfClient.GetFromJsonAsync>(queryString);
}
}
}
Usage
namespace Company
{
public class Test
{
[Inject] private Company.CpfClientService CpfClientService { get; set; }
public async Task Test()
{
CpfFilter cpfFilter = new {
Cpf = "12345678910",
BirthDate = new DateTime(1,1,2001)
};
var resultCpf = await CpfClientService.Find(cpfFilter);
if(resultCpf.Succeeded)
Console.WriteLine(string.Format("CPF: {0} - BirthDate: {1}",
resultCpf.Data.Cpf,
resultCpf.Data.BirthDate.ToShortDateString()));
}
}
}
Edit Content
Client
//ARTIFACT: CpfClientService.java
package company;
public class CpfClientService
{
private final ApiCpfClient _apiCpfClient;
public CpfClientService(ApiCpfClient apiCpfClient)
{
_apiCpfClient = apiCpfClient;
}
public find(CpfFilter cpfFilter)
{
queryString = cpfFilter.GetQueryString();
return _apiCpfClient.get();
}
}
Usage
//ARTIFACT: Test.java
package company;
public class Test
{
@Inject
private Company.CpfClientService getCpfClientService(){ return auto_CpfClientService; }
private Test()
{
CpfFilter cpfFilter = new {,
Cpf = "12345678910"
BirthDate = new DateTime(1,1,2001)
};
resultCpf = await getCpfClientService().find(cpfFilter);
if(resultCpf.Succeeded)
Console.WriteLine(String.Format("CPF: {0} - BirthDate: {1}",
resultCpf.Data.Cpf,
resultCpf.Data.BirthDate.ToShortDateString()));
}
}
Edit Content
Request
GET
https://api.nuv.tools/cpf/v1/{token}?cpf={cpf}&birthdate={birthdate}
token: provided for testing or after contracting.
• Size: 128
• Type: Alphanumeric
• Mandatory: true
cpf: registration number without punctuation.
• Size: 11
• Type: Number
• Mandatory: true
• Example: 12345678901
birthdate: CPF owner’s date of birth.
• Size: 8
• Type: Number
• Format: yyyyMMdd
• Mandatory: true
• Example: 19980203
Response
{
"status": "OK",
"cpf": "123.456.789-10",
"name": "JOSÉ ALVES",
"genre": "M",
"birthdate": "02/13/1985",
"status": "REGULAR",
"registrydate": "05/18/2001"
}
Edit Content
Client
using System;
using NuvTools.API.CPF;
namespace Company
{
public class CpfClientService
{
private readonly ApiCpfClient _apiCpfClient;
public CpfClientService(ApiCpfClient apiCpfClient)
{
_apiCpfClient = apiCpfClient;
}
public async Task> Find(CpfFilter cpfFilter)
{
var queryString = cpfFilter.GetQueryString();
return await _apiCpfClient.GetFromJsonAsync>(queryString);
}
}
}
Usage
namespace Company
{
public class Test
{
[Inject] private Company.CpfClientService CpfClientService { get; set; }
public async Task Test()
{
CpfFilter cpfFilter = new {
Cpf = "12345678910",
BirthDate = new DateTime(1,1,2001)
};
var resultCpf = await CpfClientService.Find(cpfFilter);
if(resultCpf.Succeeded)
Console.WriteLine(string.Format("CPF: {0} - BirthDate: {1}",
resultCpf.Data.Cpf,
resultCpf.Data.BirthDate.ToShortDateString()));
}
}
}
Edit Content
Client
//ARTIFACT: CpfClientService.java
package company;
public class CpfClientService
{
private final ApiCpfClient _apiCpfClient;
public CpfClientService(ApiCpfClient apiCpfClient)
{
_apiCpfClient = apiCpfClient;
}
public find(CpfFilter cpfFilter)
{
queryString = cpfFilter.GetQueryString();
return _apiCpfClient.get();
}
}
Usage
//ARTIFACT: Test.java
package company;
public class Test
{
@Inject
private Company.CpfClientService getCpfClientService(){ return auto_CpfClientService; }
private Test()
{
CpfFilter cpfFilter = new {,
Cpf = "12345678910"
BirthDate = new DateTime(1,1,2001)
};
resultCpf = await getCpfClientService().find(cpfFilter);
if(resultCpf.Succeeded)
Console.WriteLine(String.Format("CPF: {0} - BirthDate: {1}",
resultCpf.Data.Cpf,
resultCpf.Data.BirthDate.ToShortDateString()));
}
}
Principais benefícios
Os preços mais acessíveis do mercado
Pague apenas pelo que você usa e ainda receba descontos graduais. Consulte a lista de preços.
-
Faixa de Requisições Valor por Requisição
-
1 - 999 $ 0,10
-
1.000 - 19.999 $ 0,09
-
20.000 - 59.999 $ 0,07
-
60.000 - 199.999 $ 0,06
-
200.000+ Contate-nos
Comece Agora
Pronto para turbina sua empresa?
Aumente as vendas e mantenha-se à frente no mercado competitivo, sendo um dos primeiros a se beneficiar de nossas soluções revolucionárias.
