API参数 云鉴_全国车辆交通违章记录_全国实时违章查询_违章详情_交通违章_新能源车大型货车违章 调用地址: http,https://weizhang.api.bdymkt.com/weizhang
请求方式: POST 支持格式: application/x-www-form-urlencoded 调用工具: 去调试 请求参数(Headers) 请求参数(Query) 请求参数(Body)
- platenumber
- string
- true
- 苏A98888
- 车牌号
- vin
- string
- true
- 1234567890
- 车架号
- enginenumber
- string
- true
- 1234567890
- 发动机号
- platetype
- string
- true
- 车牌类型 01:大型汽车, 02:小型汽车, 03:使馆汽车, 04:领馆汽车, 05:境外汽车, 06:外籍汽车, 07:普通摩托车, 08:轻便摩托车, 09:使馆摩托车, 10:领馆摩托车, 11:境外摩托车, 12:外籍摩托车, 13:低速车, 14:拖拉机, 15:挂车, 16:教练汽车, 17:教练摩托车, 20:临时入境汽车, 21:临时入境摩托车, 22:临时行驶车, 23:警用汽车, 24:警用摩托, 51:新能源大型车, 52:新能源小型车
- 车牌类型
请求参数(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-gappqbrgacz.n.bdcloudapi.com/weizhang";
ApiExplorerRequest request = new ApiExplorerRequest(HttpMethodName.POST, path);
request.setCredentials("您的 access key", "您的 secret key");
request.addHeaderParameter("Content-Type", "application/x-www-form-urlencoded");
ApiExplorerClient client = new ApiExplorerClient(new AppSigner());
try {
ApiExplorerResponse response = client.sendRequest(request);
System.out.println(response.getResult());
} catch (Exception e) {
e.printStackTrace();
}
}
}
点击复制代码
正常返回示例
{
"jobid": "ZT20201231115526698741605",
"responsetime": "20201231115527073",
"errcode": "C0000",
"errmsg": "查询成功",
"result": {
"resultdata": [{
"date": "2020-05-01 09:38:00",
"clbh": "5606ceafae4a5f98b89fd40d00******",
"address": "西南路",
"code": "1039",
"city": "2102",
"csmc": "辽宁大连",
"platenumber": "辽BR****",
"score": "0",
"money": "100",
"jkbh": "",
"action": "不按规定停车",
"jdsbh": "",
"department": "大连市公安局交通警察支队甘井子大队",
"zxcl": "1"
}]
},
"encresult": ""
}
C0000:查询成功(收费)
C0025:查询成功无结果
C0026:查询成功无结果(收费)
00030:车辆信息错误(收费)
C0031:地区暂未开通或维护
C0096:查询失败
00061:查询次数超限
00029:请求参数不标准
21005:该产品暂时无法使用
910RE:系统交易超时
91096:系统其他错误
失败返回示例
{
"jobid": "ZT20201230201630220401686",
"bizno": "000100150000598",
"requestsn": "1609330589453",
"responsetime": "20201230201630409",
"consumestate": "false",
"errcode": "C0031",
"errmsg": "地区暂未开通或维护",
"result": {},
"encresult": ""
}
错误码定义