API参数 全国车辆违章查询 调用地址: http,https://jumrtyi.api.bdymkt.com/vehicle/violation
请求方式: POST 支持格式: application/json;charset=UTF-8 调用工具: 去调试 请求参数(Headers) 请求参数(Query)
- cartype
- string
- true
- null
- 车辆类型
- carno
- string
- true
- null
- 车牌号
- frameno
- string
- true
- null
- 车架号,支持后6位查询或全位查询
- engineno
- string
- true
- null
- 发动机号,支持后6位查询,或全位查询
请求参数(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/violation";
ApiExplorerRequest request = new ApiExplorerRequest(HttpMethodName.POST, path);
request.setCredentials("您的 access key", "您的 secret key");
request.addHeaderParameter("Content-Type", "application/json;charset=UTF-8");
request.addQueryParameter("cartype", "");
request.addQueryParameter("carno", "");
request.addQueryParameter("frameno", "");
request.addQueryParameter("engineno", "");
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": "69564903663951243279",
"data": {
"car_no": "浙A12324",
"vio_total": "1",
"find_total": "200",
"score_total": "3",
"details": [
{
"vio_time": "2021-01-03 10:30:31",
"vio_address": "古墩路石祥西路口",
"vio_action": "机动车违反禁止停车标志、禁止停车标线",
"vio_fine": "200",
"vio_score": "0",
"vio_city_name": "杭州",
"vio_city": "3301",
"vio_code": "10393",
"col_organ": "杭州市公安局西湖区交通大队",
"decision_num": null,
"monitor_num": null,
"handle_sign": null,
"handle_num": "51fd5edbb00e6a8c7f5f4abae1d764d2",
"online_handle": "1"
}
]
}
}
失败返回示例
{
"msg": "城市未开通",
"code": 713
}
错误码定义
- 500
- 服务商维护,请稍候
- 500
- 服务商维护,请稍候
- 501
- 数据源维护,请稍候
- 500
- 数据源维护,请稍候