🇵🇪 Peruvian VehicleService to query Peruvian vehicles using their license plate.
Peruvian Vehicle Information
GET - https://api.verifik.co/v2/pe/vehiculo/placa
The Peruvian Vehicle Information service provides detailed data about registered vehicles in Peru based on their license plate number. The response includes key details such as the vehicle's make, model, year, engine and chassis serial numbers, seating capacity, and usage type.
Implementation
Headers
Query Parameters
Name Type Required? Description Example Plate number 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/pe/vehiculo/placa>' ,
params : {plate : 'ABC123' } ,
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/pe/vehiculo/placa?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/pe/vehiculo/placa?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/pe/vehiculo/placa?plate=' ) ;
$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 () ;
}
Response
200 404 409
Copy {
"data" : {
"plate" : "ABC123" ,
"use" : "PARTICULAR" ,
"type" : "AUTOMOVIL" ,
"brand" : "NISSAN" ,
"model" : "VERSA" ,
"year" : "2014" ,
"engineSerial" : "HR123456789J" ,
"chasisSerial" : "1234567890" ,
"seats" : "5" ,
"validFormat" : true ,
"serial" : "1234567890"
} ,
"signature" : {
"dateTime" : "August 1, 2022 5:23 PM" ,
"message" : "Certified by [Verifik.co](<http://verifik.co/>)"
}
}
Copy {
"code" : "NotFound" ,
"message" : "Record not found." ,
"signature" : {
"dateTime" : "August 31, 2022 3:24 PM" ,
"message" : "Certified by Verifik.co"
}
}
Copy {
"code" : "MissingParameter" ,
"message" : "missing plate\n"
}
Last updated 2 months ago