The CURP service allows you to easily verify the identity of Mexican citizens by their CURP number. With this service, you can obtain important personal information such as the full name, date of birth, nationality, and document proof for a given CURP number.
The returned data also includes details about the place of registration and other relevant information, making it an essential tool for identity verification and fraud prevention purposes.
Name | Type | ¿Required? | Description | Example |
---|---|---|---|---|
documentType | String | True |
Document type. Valid parameter: CURP. | CURP |
documentNumber | String | True |
Document of the person to consult, without spaces or periods. | 123456789 |
import axios from 'axios';
const options = {
method: 'GET',
url: '<https://api.verifik.co/v2/mx/curp>',
params: {documentNumber: 'ABCD890513ABCDEF09', documentType: 'CURP'},
headers: {
Accept: 'application/json',
Authorization: 'jwt <tu_token>'
}
};
try {
notFou const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
{
"data": {
"documentType": "CURP",
"documentNumber": "ABCD890513ABCDEF09",
"curp": "ABCD890513ABCDEF09",
"dateOfBirth": "13/05/1989",
"names": "MATEO VERIFIK",
"secondSurname": "VERIFIK",
"sex": "MASCULINO",
"surname": "VERIFIK"
},
"signature": {
"dateTime": "December 29, 2023 1:58 AM",
"message": "Certified by Verifik.co"
},
"id": "DB78U"
}
Code | Description | Response Body | |
---|---|---|---|
404 |
Not Found | Information not found. | { |
"code": "NotFound", | |||
"message": "Record not found.", | |||
"signature": { | |||
"dateTime": "August 31, 2022 3:24 PM", | |||
"message": "Certified by Verifik.co" | |||
} | |||
} | |||
409 |
Conflict | You need to provide some parameters. | { |
"code": "MissingParameter", | |||
"message": "missing documentType\n. missing documentNumber\n" | |||
} | |||
409 |
Conflict | Invalid documentType for this query. | { |
"code": "MissingParameter", | |||
"message": "documentType must be one of: [CURP]" | |||
} | |||
409 |
Conflict | The documentNumber exceeds the maximum character limit. | { |
"code": "MissingParameter", | |||
"message": "documentNumber maximum length: 18\n" | |||
} |