API参数 VIN码车辆查询 调用地址: http,https://jumhert.api.bdymkt.com/vehicle/vin-query
请求方式: POST 支持格式: application/json;charset=UTF-8 调用工具: 去调试 请求参数(Headers) 请求参数(Query)
请求参数(Body) 请求参数(Path) 请求示例 javapythongocurlphpnodejs
示例代码使用, 需要使用Maven加入依赖 <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;
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);
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",
"weight": "960",
"width": "1528",
"height": "1925",
"price": "6.9万",
"engine": "JL465QD",
"environmentalstandards": "国六",
"maxhorsepower": "82",
"maxpower": "50",
"wheelbase": "2500",
"parkingbraketype": "手拉式",
"displacement": "1.5L",
"displacementml": "1500",
"geartype": "手动",
"gearnum": "5",
"gearbox": "5挡 手动",
"fronttiresize": "155 R13LT",
"reartiresize": "165/70 R13LT",
"drivemode": "后轮驱动",
"frontbraketype": "盘式",
"rearbraketype": "鼓式",
"iscorrect": 1,
"fueltype": "汽油",
"fuelgrade": "92号",
"comfuelconsumption": "6.70",
"machineoil": {
"volume": "2.8L",
"viscosity": "10W-40",
"level": "SN",
"grade": "矿物"
},
"carid": 8416,
"carlist": [
{
"name": "长安轻型车 长安之星 2012款 1.0L 手动 SC6363B4Y 7座",
"typeid": 650,
"typename": "长安之星",
"carid": 8382
},
{
"name": "长安轻型车 长安之星 2012款 1.0L 手动 SC6363B4Y 8座",
"typeid": 650,
"typename": "长安之星",
"carid": 8384
}
],
"typename": "长安之星"
}
}
失败返回示例
{
"msg": "参数错误",
"code": 400
}
错误码定义
- 500
- 服务商维护,请稍候再试
- 500
- 服务商维护,请稍候再试
- 501
- 数据源维护,请稍候再试
- 500
- 数据源维护,请稍候再试
- 999
- 其他,以实际返回为准
- 500
- 其他,以实际返回为准