🇨🇱 Vehicle InformationService to query Chilean vehicles using their license plate.
Vehicle Information
GET - https://api.verifik.co/v2/cl/vehicle
This API endpoint allows you to verify the information of a vehicle registered in Chile by providing its license plate number. The response includes details such as the chassis number, engine number, manufacturer, model, year, color, and any outstanding fines associated with the vehicle. Additionally, the API also provides information on the vehicle's owner, type, and origin, where available. Please note that you need to provide the license plate number of the vehicle to query its information.
Implementation
Headers
Query Parameters
Name Type Required? Description Example Plate to consult, without spaces or points.
Request
JavaScript Python Swift PHP
Copy import axios from 'axios' ;
const options = {
method : 'GET' ,
url : '<https://api.verifik.co/v2/cl/vehicle>' ,
params : {plate : 'BB985' } ,
headers : {
Accept : 'application/json' ,
Authorization : 'jwt <tu_token>'
}
};
try {
notFou const { data } = await axios .request (options);
console .log (data);
} catch (error) {
console .error (error);
}
Copy import http . client
conn = http . client . HTTPSConnection ( "api.verifik.co" )
payload = ''
headers = {}
conn . request ( "GET" , "/v2/cl/vehicle?plate=" , payload, headers)
res = conn . getresponse ()
data = res . read ()
print (data. decode ( "utf-8" ))
Copy var request = URLRequest(url: URL(string: "https://api.verifik.co/v2/cl/vehicle?plate=")!,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 ()
Copy <? php
require_once 'HTTP/Request2.php' ;
$request = new HTTP_Request2 ();
$request -> setUrl ( 'https://api.verifik.co/v2/cl/vehicle?plate=' ) ;
$request -> setMethod ( HTTP_Request2 :: METHOD_GET ) ;
$request -> setConfig ( array (
'follow_redirects' => TRUE
) ) ;
$request -> setBody ( '' ) ;
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 () ;
}
Response
200 404 409
Copy {
"data" : {
"chasisNumber" : "ME1KG0447E2066723" ,
"color" : "NEGRO" ,
"engineNumber" : "1ES3032465" ,
"fines" : "NO POSEE MULTAS" ,
"manufacturer" : "NO DISPONIBLE" ,
"mark" : "YAMAHA" ,
"model" : "FZ 16" ,
"orderTheft" : "NO DISPONIBLE" ,
"origin" : "NO DISPONIBLE" ,
"owner" : "" ,
"plate" : "BB985" ,
"publicTrans" : "NO DISPONIBLE" ,
"revision" : "NO DISPONIBLE" ,
"rut" : "26043542-6" ,
"type" : "MOTO" ,
"typeTransPub" : "NO DISPONIBLE" ,
"year" : "2014"
} ,
"signature" : {
"dateTime" : "April 21, 2023 8:32 PM" ,
"message" : "Certified by Verifik.co"
}
}
Copy {
"code" : "NotFound" ,
"message" : "Placa no encontrada" ,
"signature" : {
"dateTime" : "December 6, 2022 4:29 PM" ,
"message" : "Certified by Verifik.co"
}
}
Copy {
"code" : "MissingParameter" ,
"message" : "missing plate\n"
}