π¨π± Chile - Driver License
This service allows you to retrieve detailed information about a Chilean driver's license using the license number as a query parameter. You can obtain information such as the RUT (unique tax identification number), address, license class, control dates, and more. It provides essential data related to the driver's license in a structured format.
Endpointβ
GET https://api.verifik.co/v2/cl/driver-license
Headersβ
| Name | Value |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <token> |
Parametersβ
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
documentNumber | string | Yes | License to consult, without spaces or points. | 12345678 |
Requestβ
- JavaScript
- Python
- PHP
- Swift
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.verifik.co/v2/cl/driver-license',
params: {
documentNumber: '12345678'
},
headers: {
'Accept': 'application/json',
'Authorization': 'Bearer <tu_token>'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
import http.client
conn = http.client.HTTPSConnection("api.verifik.co")
payload = ''
headers = {}
conn.request("GET", "/v2/cl/driver-license?documentNumber=12345678", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
require_once 'HTTP/Request2.php';
$request = new HTTP_Request2();
$request->setUrl('https://api.verifik.co/v2/cl/driver-license?documentNumber=12345678');
$request->setMethod(HTTP_Request2::METHOD_GET);
$request->setConfig(array(
'follow_redirects' => TRUE
));
try {
$response = $request->send();
if ($response->getStatus() == 200) {
echo $response->getBody();
}
else {
echo 'Unexpected HTTP status: ' . $response->getStatus() . ' ' .
$response->getReasonPhrase();
}
}
catch(HTTP_Request2_Exception $e) {
echo 'Error: ' . $e->getMessage();
}
?>
var request = URLRequest(url: URL(string: "https://api.verifik.co/v2/cl/driver-license?documentNumber=12345678")!,timeoutInterval: Double.infinity)
request.httpMethod = "GET"
let task = URLSession.shared.dataTask(with: request) { data, response, error in
guard let data = data else {
print(String(describing: error))
return
}
print(String(data: data, encoding: .utf8)!)
}
task.resume()
Responseβ
- 200
- 404
- 409
{
"data": {
"RUT": "12.345.678-9",
"address": "PEDRO LEON UGALDE 1825",
"class": "B",
"controlDate": "23/08/2009",
"documentNumber": "012345678",
"lastControlDate": "15/07/2003",
"lastName": "VERIFIK",
"license": "CA-12345678",
"municipality": "SANTIAGO",
"names": "MATEO",
"procedure": "DUPLICADO",
"restrictions": ".USAR LENTES O DE CONTACTO. "
},
"signature": {
"dateTime": "November 2, 2023 3:12 PM",
"message": "Certified by Verifik.co"
},
"id": "1tm6q"
}
{
"code": "NotFound",
"message": "Record not found."
}
{
"code": "MissingParameter",
"message": "missing documentNumber\n"
}
Featuresβ
- RUT Validation: Verify Chilean tax identification numbers
- License Class Information: Get detailed license class details (A, B, C, etc.)
- Control Dates: Access license control and last control dates
- Driver Information: Retrieve driver names, addresses, and municipality
- License Restrictions: Get information about driving restrictions
- Procedure Information: Access license procedure details (duplicate, renewal, etc.)
- Multiple Programming Languages: Support for JavaScript, Python, PHP, and Swift
- Real-time Data: Access current and up-to-date driver license information
- Comprehensive Error Handling: Detailed error responses for various scenarios
- Structured Responses: Well-formatted JSON responses with signature verification
- Chilean Registry Integration: Direct access to official Chilean driver license database