产品详情
API参数 VIN码车辆查询 调用地址: http,https://jumhert.api.bdymkt.com/vehicle/vin-query 请求方式: POST 支持格式: application/json;charset=UTF-8 调用工具: 去调试 请求参数(Headers) 请求参数(Query)
- 名称
- 类型
- 是否必须
- 示例值
- 描述
- vin
- string
- true
- null
- 车架号
<dependency>
<groupId>com.baidubce</groupId>
<artifactId>api-explorer-sdk</artifactId>
<version>1.0.0</version>
</dependency>
import com.baidubce.http.ApiExplorerClient;
import com.baidubce.http.AppSigner;
import com.baidubce.http.HttpMethodName;
import com.baidubce.model.ApiExplorerRequest;
import com.baidubce.model.ApiExplorerResponse;
// VIN码车辆信息查询 Java示例代码
public class RequestDemo {
public static void main(String[] args) {
String path = "//vehicle/vin-query";
ApiExplorerRequest request = new ApiExplorerRequest(HttpMethodName.POST, path);
request.setCredentials("您的 access key", "您的 secret key");
request.addHeaderParameter("Content-Type", "application/json;charset=UTF-8");
request.addQueryParameter("vin", "");
ApiExplorerClient client = new ApiExplorerClient(new AppSigner());
try {
ApiExplorerResponse response = client.sendRequest(request);
// 返回结果格式为Json字符串
System.out.println(response.getResult());
} catch (Exception e) {
e.printStackTrace();
}
}
}
点击复制代码
正常返回示例 {
"code": 200,
"msg": "成功",
"taskNo": "074388502348792558",
"data": {
"manufacturer": "长安凯程", // 厂家名称
"brand": "长安凯程", // 品牌
"carType": "名称" // 车型
"name": "长安凯程 长安之星 2009款 SC6363B3S", // 名称
"yeartype": "2009", // 年款
"listdate": "", // 上市日期
"bodystructure": null, // 车体结构
"bodytype": "两厢", // 车身型式
"seatnum": "7", // 座位数
"sizetype": "面包车", // 尺寸类型
"len": "3642", // 长 mm
"weight": "960", // 整备质量 kg
"width": "1528", // 宽
"height": "1925", // 高
"price": "6.9万", // 新车购置价格
"engine": "JL465QD", // 发动机
"environmentalstandards": "国六", // 排放标准
"maxhorsepower": "82", // 最大马力(Ps)
"maxpower": "50", // 最大功率 KW
"wheelbase": "2500", // 轴距
"parkingbraketype": "手拉式", // 驻车制动类型
"displacement": "1.5L", // 排量(L)
"displacementml": "1500", // 排量(mL)
"geartype": "手动", // 变速箱类型
"gearnum": "5", // 档位数
"gearbox": "5挡 手动", // 变速箱
"fronttiresize": "155 R13LT", // 前轮胎尺寸
"reartiresize": "165/70 R13LT", // 后轮胎尺寸
"drivemode": "后轮驱动", // 驱动方式
"frontbraketype": "盘式", // 前制动类型
"rearbraketype": "鼓式", // 后制动类型
"iscorrect": 1, // 1 VIN符合规则 0 VIN不符合规则
"fueltype": "汽油", //
"fuelgrade": "92号", // 燃油标号
"comfuelconsumption": "6.70", // 油耗
"machineoil": { // 机油信息
"volume": "2.8L", // 参考用量
"viscosity": "10W-40", // 粘稠度
"level": "SN", // 质量等级
"grade": "矿物" // 机油分类
},
"carid": 8416, // 车ID 对应车型API中的ID
"carlist": [ // 车型
{
"name": "长安轻型车 长安之星 2012款 1.0L 手动 SC6363B4Y 7座", //
"typeid": 650, // 车型ID 对应车型大全里的根据车型获取车的parentid
"typename": "长安之星", // 车型名称 对应typeid
"carid": 8382 // 车ID 对应车型API中的ID
},
{
"name": "长安轻型车 长安之星 2012款 1.0L 手动 SC6363B4Y 8座",
"typeid": 650,
"typename": "长安之星",
"carid": 8384
}
],
"typename": "长安之星" //
}
}
失败返回示例 {
"msg": "参数错误",
"code": 400
}
错误码定义 - code
- message
- status
- 描述
- 400
- 参数错误
- 400
- 参数错误
- 500
- 服务商维护,请稍候再试
- 500
- 服务商维护,请稍候再试
- 501
- 数据源维护,请稍候再试
- 500
- 数据源维护,请稍候再试
- 701
- 无记录
- 500
- 无记录
- 999
- 其他,以实际返回为准
- 500
- 其他,以实际返回为准
