API参数 VIN码查询车辆信息_车辆出厂信息_车辆登记信息 调用地址: http,https://vinvehicleinfo.api.bdymkt.com/vin_vehicle_info/get
请求方式: GET 支持格式: application/json;charset=UTF-8 调用工具: 去调试 请求参数(Headers) 请求参数(Query)
- vin
- string
- true
- SBL666666BM9D933
- VIN码
请求参数(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 = "http://gwgp-vknjqnvih7q.n.bdcloudapi.com/vin_vehicle_info/get";
ApiExplorerRequest request = new ApiExplorerRequest(HttpMethodName.GET, 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": "0",
"message": "成功",
"data": {
"result": "1",
"description": "查询成功,有数据",
"detail": {
"brandName": "东风日产",
"modelNo": "DF***BL1",
"engineNo": "112**H",
"engineType": "MR*0",
"displacement": "2000",
"ratedPower": "110",
"axleNumber": "2",
"wheelBase": "2706",
"frontWheelDistance": "1575",
"backWheelDistance": "1570",
"crossWeight": "1930",
"curbWeight": "1470",
"loadWeight": "0",
"passengers": "5",
"ppsDate": "2017-04-02",
"vehicleTypeDes": "紧凑型SUV",
"bodyColorDes": "珠光白",
"fuelTypeDes": "汽油",
"wlong": "4675",
"wide": "1820",
"high": "1722",
"effluentStandard": "",
"oilWear": "7.1",
"tyreNumber": "4",
"tyreSize": "225/65R17",
"axleWeight": "",
"vehicleType": "K32",
"fuelType": "A",
"vehicleModel": "奇骏(第三代,2014-)",
"vin": "LG***219",
"tractionMass": "0"
}
}
}
失败返回示例
{ "code": "20704", "message": "车架号不能为空", "data": {} }
错误码定义