🇵🇾 ParaguayService to consult vehicles from Paraguay using their license plate.
Paraguayan Vehicle Information
GET - https://api.verifik.co/v2/py/vehicle
This service provides detailed information about a vehicle in Paraguay using its license plate number. The response includes vehicle details such as the brand, chassis, type, year, number of axles, the owner's name, the type of service, the current status of the vehicle, and the license plate number.
Implementation
Headers
Query Parameters
Name Type Required? Description Example
Request
JavaScript Python Swift PHP
Copy import axios from 'axios' ;
const options = {
method : 'GET' ,
url : '<https://api.verifik.co/v2/py/vehicle>' ,
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/py/vehicle?plate=null" , 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/py/vehicle?plate=null")!,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/py/vehicle?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" : {
"axles" : "3" ,
"brand" : "MERCEDES BENZ" ,
"chassis" : "9BM958207GB012345" ,
"owner" : "CI086-COOPERATIVA CHORTITZER LTDA." ,
"plate" : "ABC123" ,
"service" : "CARGA NACIONAL" ,
"situation" : "VENCIDA" ,
"type" : "CAMION CISTERNA" ,
"year" : "2023"
} ,
"signature" : {
"dateTime" : "June 24, 2024 7:34 PM" ,
"message" : "Certified by Verifik.co"
} ,
"id" : "Z4ALR"
}
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"
}