API参数 获取车型详细信息根据品牌获取车系根据车系获取车型获取所有品牌 调用地址: http,https://jumkjiho.api.bdymkt.com/vehicle/query/model
请求方式: POST 支持格式: application/json;charset=UTF-8 调用工具: 去调试 请求参数(Headers) 请求参数(Query)
- seriesId
- string
- true
- null
- 车系API返回的车系列表中id
- sort
- string
- false
- null
- 排序。 year - 按年份,yearr - 按年份逆序, productionstate - 按生产状态, productionstater- 按生产状态逆序。默认:yearr
请求参数(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/query/model";
ApiExplorerRequest request = new ApiExplorerRequest(HttpMethodName.POST, path);
request.setCredentials("您的 access key", "您的 secret key");
request.addHeaderParameter("Content-Type", "application/json;charset=UTF-8");
request.addQueryParameter("seriesId", "");
request.addQueryParameter("sort", "");
ApiExplorerClient client = new ApiExplorerClient(new AppSigner());
try {
ApiExplorerResponse response = client.sendRequest(request);
System.out.println(response.getResult());
} catch (Exception e) {
e.printStackTrace();
}
}
}
点击复制代码
正常返回示例
{
"msg": "成功",
"code": 200,
"taskNo": "09522434433117405247",
"data": {
"depth": 3,
"initial": "A",
"name": "奥迪Q5L",
"logo": "http://pic1.jisuapi.cn/car/static/images/logo/300/44589.jpg",
"id": 44589,
"fullname": "奥迪Q5L",
"salestate": "在销"
"list": [
{
"name": "2020款 40 TFSI 荣享时尚型",
"id": 67580,
"groupid": "2838",
"groupname": "Q5L 2.0T SUV 双离合 适时四驱 FV6461LAQBG(2018.07-)",
"sizetype": "中型SUV",
"displacement2": "2.0",
"displacement": "2.0T",
"geartype": "双离合",
"geartype2": 1,
"logo": "http://pic1.jisuapi.cn/car/static/images/logo/300/67580.jpg",
"yeartype": "2020",
"listdate": "2019-11-26",
"price": "41.58万",
"productionstate": "在产",
"salestate": "在销"
},
{
"groupid": "2838",
"productionstate": "在产",
"groupname": "Q5L 2.0T SUV 双离合 适时四驱 FV6461LAQBG(2018.07-)",
"listdate": "2019-11-26",
"displacement2": "2.0",
"yeartype": "2020",
"sizetype": "中型SUV",
"price": "38.78万",
"geartype2": 1,
"name": "2020款 40 TFSI 荣享进取型",
"geartype": "双离合",
"logo": "http://pic1.jisuapi.cn/car/static/images/logo/300/67579.jpg",
"displacement": "2.0T",
"id": 67579,
"salestate": "在销"
},
...
]
}
}
失败返回示例
{
"msg": "未查询到数据",
"code": 701
}
错误码定义
- 999
- 其他,以实际返回为准
- 500
- 其他,以实际返回为准