通过VIN车辆识别代码查询_精准版API,获取车辆精准参数

80 阅读1分钟

通过17位VIN码的精准匹配,帮助用户快速获取车辆的品牌、型号、出厂日期、排量、外观、车辆型号等详细参数。这一API广泛应用于二手车交易、车辆租赁、配件采购和车辆维修等领域,为用户提供一个高效、准确的解决方案。

代码示例

返回格式:json

请求方式:不限

接口备注:1对1精准返回,查询不到不扣次数。

请求参数说明:

名称必填类型说明
keystring个人中心查看
vinstringvin码

返回参数说明:

名称类型说明
datastringjson内容查看说明

JSON返回示例:

{
"code": 1,
"msg": "操作成功",
-"data": {
"vin": "JTFRMFAP4R8008442",
"brand_name": "海狮",
"manufacturer": "丰田",
"series_name": "海狮HIACE",
"name": "丰田 海狮HIACE 280马力 7-13座 轻型客车 手自一体 (HIACE GRH322L-EDTPHV)",
"zws": "13",
"year": "2020",
"price": "45.50",
"rlxs": "汽油",
"effluent_standard": "国四",
"model": "",
"productiondate": "",
"engine_no": "",
"engine_model": "",
"color": "",
"displacement": "3.5L",
"driven_type": "中置后驱",
"body_type": "轻客",
"scyh": "",
"maxpower": "206",
"wheelbase": "3860",
"len": "",
"width": "",
"height": "",
"full_weight": "",
"full_weight_max": "",
"tyre_number": "",
"tyre_size": "",
"remark": "轻客,中置后驱,手自一体"
}
}

Java代码示例

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;

public class VinApiDemo {
    public static void main(String[] args) {
        try {
            // API接口地址
            String apiEndpoint = "https://api.tanshuapi.com/api/vin_v3/v2/index";
            // API密钥(需替换为您个人的API密钥)
            String apiKey = "your_api_key_here";
            // VIN码示例
            String vin = "LS4ASE2E1GJ126698";

            // 构建请求URL
            String requestUrl = apiEndpoint + "?key=" + apiKey + "&vin=" + vin;

            // 发送HTTP请求
            URL url = new URL(requestUrl);
            HttpURLConnection conn = (HttpURLConnection) url.openConnection();
            conn.setRequestMethod("GET");

            // 读取响应
            BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
            String inputLine;
            StringBuilder response = new StringBuilder();
            while ((inputLine = in.readLine()) != null) {
                response.append(inputLine);
            }
            in.close();

            // 输出响应结果
            System.out.println(response.toString());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}