
VIN查询精准版
企业用户实名使用个人用户实名使用个人用户无法使用
车辆精准版VIN车架号查询,返回车辆销售名称、长宽高、指导价、年款、排量、发动机型号等信息。此为精准版一对一车型返回
价格
¥0元/2次
新用户免费体验,自购买起有效期1个月
选择套餐:

接口名称:VIN车架号查询精准版
描述:输入vin车架号,查询车辆信息,返回精准车型
请求地址 url:https://api.shuxuntech.com/v1/vin2/query
请求方式 method:get/post
参数:
| 名称 | 参数位置 | 类型 | 是否必填 | 说明 |
|---|---|---|---|---|
| appKey | head | string | 是 | 数勋分配appKey |
| timestamp | head | string | 是 | unix时间毫秒值 |
| sign | head | string | 是 | 签名,说明 |
| vin | query | string | 是 | 车架号 |
签名算法说明:
数勋分配的appKey、当前unix时间毫秒值timestamp、数勋分配的appSecret、 按顺序拼接sha256加密得到sign,查看如下示例
appKey = aaa;
timestamp = 1682476904289;
appSecret = bbb;
sign = sha256(appKey+timestamp+appSecret)
正面返回:
{
"code": "0",
"msg": "成功",
"isFee": 1,
"seqNo": "mvv7ez1u2wasrg7vq1xjowo0k925lh5a",
"data": {
"result": 1,
"info": {
"engineno": "K01***7", //发动机号
"fueltype": "汽油", //燃料种类
"totalweight": "2535", //总质量
"color": "墨玉黑", //颜色
"productiondate": "2019-04-26", //生产日期
"carlevel": "", //车等级,暂时没用
"reartrack": "1610", //后轮距
"boxheight": "", //货箱栏板内尺寸高
"enginemodel": "4G2***3", //发动机型号
"comfuelconsumption": "10.1", //油耗
"boxwidth": "", //货箱栏板内尺寸宽
"fronttrack": "1610", //前轮距
"len": "4645", //外形尺寸(mm) 长
"price": "17.48", //指导价格
"bodytype": "SUV", //车体结构
"displacement": "2.0T", //排量
"model": "BJ202***AB", //车辆型号
"vin": "LNBRCFBK***6547", //车架号
"brand": "北京", //车品牌
"environmentalstandards": "国五", //排放标准
"height": "1871", //外形尺寸(mm)高
"drivemode": "前置四驱", //驱动方式
"ratedloadweight": "0", //额定载质量(kg)
"maxpower": "160", //最大功率(kW)
"displacementml": "", //排量(ml)
"boxlen": "", //货箱栏板内尺寸(mm) 长
"weight": "2110", //整备质量(kg)
"tirenum": "4", //轮胎数
"tiresize": "265/65R17", //轮胎规格
"groupname": "***BJ40(第一代,2008-)", //车组
"yeartype": "2018", //年款
"seatnum": 5, //座位数
"wheelbase": "2745", //轴距
"axlenum": "2", //轴数
"name": "***BJ40 2018款 PLUS 2.0T 自动四驱***版", //车系名称
"width": "1925" //外形尺寸(mm)宽
}
}
}
错误返回:
{
"code": "1",
"msg": "参数错误",
"isFee": 0,
"seqNo": null,
"data": null
}
返回字段描述:
| 字段名 | 类型 | 描述 |
|---|---|---|
| code | string | 错误码 |
| msg | string | 错误描述 |
| isFee | int | 是否计费(1:计费,0:不计费) |
| seqNo | string | 调用流水号 |
| data | object | 返回数据 |
data对象说明
| 字段名 | 类型 | 描述 |
|---|---|---|
| result | int | 查询结果,1:查询成功,2:无记录 |
| info | object | 车辆信息,注释请看返回示例 |
info对象说明
| 字段名 | 类型 | 描述 |
|---|---|---|
| engineno | string | 发动机号 |
| fueltype | string | 燃料种类 |
| totalweight | string | 总质量 |
| color | string | 颜色 |
| productiondate | string | 生产日期 |
| carlevel | string | 车等级,暂时没用 |
| reartrack | string | 后轮距 |
| boxheight | string | 货箱栏板内尺寸高 |
| enginemodel | string | 发动机型号 |
| comfuelconsumption | string | 油耗 |
| boxwidth | string | 货箱栏板内尺寸宽 |
| fronttrack | string | 前轮距 |
| len | string | 外形尺寸(mm) 长 |
| price | string | 指导价格 |
| bodytype | string | 车体结构 |
| displacement | string | 排量 |
| model | string | 车辆型号 |
| vin | string | 车架号 |
| brand | string | 车品牌 |
| environmentalstandards | string | 排放标准 |
| height | string | 外形尺寸(mm)高 |
| drivemode | string | 驱动方式 |
| ratedloadweight | string | 额定载质量(kg) |
| maxpower | string | 最大功率(kW) |
| displacementml | string | 排量(ml) |
| boxlen | string | 货箱栏板内尺寸(mm) 长 |
| weight | string | 整备质量(kg) |
| tirenum | string | 轮胎数 |
| tiresize | string | 轮胎规格 |
| groupname | string | 车组 |
| yeartype | string | 年款 |
| seatnum | string | 座位数 |
| wheelbase | string | 轴距 |
| axlenum | string | 轴数 |
| name | string | 车系名称 |
| width | string | 外形尺寸(mm)宽 |
code错误码说明
| code | 说明 |
|---|---|
| 0 | 成功 |
| 1 | 参数错误 |
| 2 | 无记录 |
| 3 | 第三方服务异常 |
| 4 | 签名错误 |
| 5 | 余额不足 |
| 6 | 调用频率超限 |
| 7 | 账号停用 |
| 8 | 接口已停用 |
| 9 | 联系服务商开通接口权限 |
| 10 | ip不在白名单 |
| 11 | 系统异常 |
| 12 | 实名状态错误 |
| 99 | 其他异常,具体返回为准 |
VIN车架号查询精准版
package com.shuxun.data.impl.demo;
import com.shuxun.common.core.util.HttpUtil;
import org.apache.commons.codec.digest.DigestUtils;
import java.util.HashMap;
import java.util.Map;
public class Vin2QueryDemo {
private static final String APP_KEY = "您的appKey";
private static final String APP_SECRET = "您的appSecret";
private static final String API_URL = "https://api.shuxuntech.com/v1/vin2/query";
public static void main(String[] args) {
String timestamp = System.currentTimeMillis()+"";
String sign = DigestUtils.sha256Hex(APP_KEY + timestamp + APP_SECRET);
Map<String, String> header = new HashMap<>(4);
header.put("appKey", APP_KEY);
header.put("timestamp", timestamp);
header.put("sign", sign);
Map<String, String> params = new HashMap<>(2);
params.put("vin", "");
// 工具类下载地址 https://file.shuxuntech.com/other/code/util.zip
String result = HttpUtil.get(API_URL, header, params);
System.out.println("返回结果="+result);
}
}
import requests
import time
import hashlib
appKey = "您的appKey"
appSecret = "您的appSecret"
url = "https://api.shuxuntech.com/v1/vin2/query"
method = 'POST'
time = time.time()
timestamp = str(round(time * 1000))
print (timestamp)
tmp = appKey + timestamp + appSecret
sign = hashlib.sha256(tmp.encode("utf8")).hexdigest()
headers = {
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
'appKey': appKey
'timestamp': timestamp
'sign': sign
}
params = {}
params['vin'] = ''
response = requests.post(url, data = params, headers = headers)
print (response.text)
<?php
$appKey = "您的appKey";
$appSecret= "您的appSecret";
$url = "https://api.shuxuntech.com/v1/vin2/query";
$method = "POST";
$timestamp = getUnixTimestamp();
var_dump($timestamp);
$sign = hash('sha256',$appKey . $timestamp . $appSecret);
var_dump($sign);
$headers = array();
array_push($headers, "Content-Type" . ":" . "application/x-www-form-urlencoded; charset=UTF-8");
array_push($headers, "appKey" . ":" . $appKey);
array_push($headers, "timestamp" . ":" . $timestamp);
array_push($headers, "sign" . ":" . $sign);
$vin = "";
$bodys = "vin=" . $vin;
$curl = curl_init();
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
curl_setopt($curl, CURLOPT_POSTFIELDS, $bodys);
curl_setopt($curl, CURLOPT_FAILONERROR, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
if (1 == strpos("$".$url, "https://")) {
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
}
var_dump(curl_exec($curl));
function getUnixTimestamp () {
list($s1, $s2) = explode(' ', microtime());
return sprintf('%.0f',(floatval($s1) + floatval($s2)) * 1000);
}
using System;
using System.IO;
using System.Net;
using System.Net.Security;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
using System.Text;
public class ApiDemo {
private const String url = "https://api.shuxuntech.com/v1/vin2/query";
private const String method = "POST";
private const String appKey = "您的appKey";
private const String appSecret = "您的appSecret";
public static void Main(string[] args) {
TimeSpan ts = DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0, 0);
String timestamp = Convert.ToInt64(ts.TotalMilliseconds).ToString();
String sign = SHA256(appKey + timestamp + appSecret);
HttpWebRequest httpRequest = null;
HttpWebResponse httpResponse = null;
httpRequest = (HttpWebRequest) WebRequest.CreateDefault(new Uri(url));
httpRequest.Method = method;
httpRequest.ContentType = "application/x-www-form-urlencoded; charset=UTF-8";
httpRequest.Headers.Add("appKey", appKey);
httpRequest.Headers.Add("timestamp", timestamp);
httpRequest.Headers.Add("sign", sign);
String vin = "";
String params = "vin=" + vin;
byte[] data = Encoding.UTF8.GetBytes(params);
using (Stream stream = httpRequest.GetRequestStream()) {
stream.Write(data, 0, data.Length);
}
httpResponse = (HttpWebResponse) httpRequest.GetResponse();
Console.WriteLine(httpResponse.StatusCode);
Stream st = httpResponse.GetResponseStream();
StreamReader reader = new StreamReader(st, Encoding.GetEncoding("utf-8"));
Console.WriteLine(reader.ReadToEnd());
}
public static string SHA256(string str) {
byte[] SHA256Data = Encoding.UTF8.GetBytes(str);
SHA256Managed Sha256 = new SHA256Managed();
byte[] by = Sha256.ComputeHash(SHA256Data);
return BitConverter.ToString(by).Replace("-", "").ToLower();
}
}
java
python
php
c#
产品详情
API文档
示例代码
产品价格










