秘鲁 — 车辆信息
Endpoint
https://api.verifik.co/v2/pe/vehiculo/placa
秘鲁车辆信息服务可基于车牌返回秘鲁登记车辆的详细数据。响应中包括车辆品牌、车型、年份、发动机与底盘序列号、座位数及用途类型等关键信息。
请求头(Headers)
| 名称 | 取值 |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <token> |
参数(Parameters)
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
plate | string | 是 | 待查询的车牌,不含空格或圆点。 |
请求(Request)
- JavaScript
- Python
- Swift
- PHP
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 <your_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/pe/vehiculo/placa?plate=", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
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()
<?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
{
"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"
}
}
{
"code": "NotFound",
"message": "Record not found."
}
{
"code": "MissingParameter",
"message": "missing plate\n"
}
使用场景
- 车辆核验:核验在秘鲁登记车辆的基本信息。
- 保险服务:在保险流程中核验车辆数据。
- 交通主管部门:查询车辆的官方信息。
- 运输企业:核验商用车辆数据。
- 资产核查:确认车辆的技术细节。
功能特性
- ✅ 按车牌查询。
- ✅ 完整技术信息(品牌、车型、年份)。
- ✅ 发动机与底盘序列号。
- ✅ 座位数。
- ✅ 车辆用途类型。
- ✅ 车牌格式校验。
- ✅ 响应由 Verifik.co 认证。