欢迎来到 wabc.cc 官方网站!
易源数据_车辆违章查询(直连)

易源数据_车辆违章查询(直连)

API参数 wzQuerycondition 调用地址: http,https://carbreakrule.api.bdymkt.com/wzQuery 请求方式: POST 支持格式: application/json;charset=UTF-8 调用工具: 去调试 请求参数(Headers) 请求参数(Query) 名称 类型 是否必须 示例值 描述 carNumber

联系电话: 13983470003
产品详情
API参数 wzQuerycondition 调用地址: http,https://carbreakrule.api.bdymkt.com/wzQuery 请求方式: POST 支持格式: application/json;charset=UTF-8 调用工具: 去调试 请求参数(Headers) 请求参数(Query)
  • 名称
  • 类型
  • 是否必须
  • 示例值
  • 描述
  • carNumber
  • string
  • true
  • 贵AH171R
  • 车牌号
  • carCode
  • string
  • true
  • 037572
  • 车架号 一般为4/6位的车架号(尾数),具体位数请查看"查询规则"接口
  • carEngineCode
  • string
  • true
  • 366893
  • 发动机号 一般为4/6位的发动机号(尾数),具体位数请查看"查询规则"接口
  • carType
  • string
  • false
  • 02
  • 01:大型汽车 02:小型汽车 51:新能源大车 52:新能源小车
请求参数(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;

// 违章查询 Java示例代码
public class RequestDemo {
    public static void main(String[] args) {
        String path = "http://gwgp-umpmjeprp7z.n.traffic_violation_dirct.bdcloudapi.com/wzQuery";
        ApiExplorerRequest request = new ApiExplorerRequest(HttpMethodName.POST, path);
        request.setCredentials("您的 access key", "您的 secret key");

        request.addHeaderParameter("Content-Type", "application/json;charset=UTF-8");
        
        request.addQueryParameter("carNumber", "");
        request.addQueryParameter("carCode", "");
        request.addQueryParameter("carEngineCode", "");
        request.addQueryParameter("carType", "");
        
        

        ApiExplorerClient client = new ApiExplorerClient(new AppSigner());

        try {
          ApiExplorerResponse response = client.sendRequest(request);
          // 返回结果格式为Json字符串
          System.out.println(response.getResult());
        } catch (Exception e) {
          e.printStackTrace();
        }
    }
}
                                    

                                    点击复制代码
                                
正常返回示例
                                    {
  "showapi_res_code": 0,
  "showapi_res_error": "",
  "showapi_res_id":"ce135f6739294c63be0c021b76b6fbff",
    "showapi_res_body": {
    "count": 12,
    "carEngineCode": "",
    "carCode": "167451",
    "errorMsg": "查询成功!",
    "msg": "查询成功!",
    "carType": "02",
    "ret_code": 0,
    "flag": true,
    "carNumber": "川Y00805",
    "errorCode": 0,
    "createDate": 1495036531497,
    "records": [
      {
        "time": "2017-04-18 13:34:36",
        "degree": "0",
        "reason": "机动车违反警告标线指示的",
        "address": "石化大道新北城蔬菜批发市场",
        "department": "",
        "cityName": "四川省",
        "money": "100",
        "code": ""
      },
      {
        "time": "2017-04-15 10:10:00",
        "degree": "3",
        "reason": "驾驶中型以上载客载货汽车、危险物品运输车辆以外的其他机动车行驶超过规定时速10%未达20%的",
        "address": "连霍高速1154公里250米至连霍高速",
        "department": "",
        "cityName": "四川省",
        "money": "200",
        "code": ""
      },
      {
        "time": "2017-02-23 13:44:36",
        "degree": "3",
        "reason": "驾驶中型以上载客载货汽车、危险物品运输车辆以外的其他机动车行驶超过规定时速10%未达20%的",
        "address": "京昆高速598公里100米",
        "department": "",
        "cityName": "四川省",
        "money": "200",
        "code": ""
      },
      {
        "time": "2017-02-23 10:27:12",
        "degree": "3",
        "reason": "驾驶中型以上载客载货汽车、危险物品运输车辆以外的其他机动车行驶超过规定时速10%未达20%的",
        "address": "京昆高速803公里200米",
        "department": "",
        "cityName": "四川省",
        "money": "200",
        "code": ""
      },
      {
        "time": "2017-02-16 15:08:00",
        "degree": "3",
        "reason": "驾驶中型以上载客载货汽车、危险物品运输车辆以外的其他机动车行驶超过规定时速10%未达20%的〔在限速100公里/小时以上的道路上〕",
        "address": "成巴高速公路(川高速S2)0056公里400米",
        "department": "",
        "cityName": "四川省",
        "money": "200",
        "code": ""
      },
      {
        "time": "2017-02-11 17:24:00",
        "degree": "0",
        "reason": "机动车违反规定停放,驾驶人不在现场,妨碍其它车辆、行人通行的",
        "address": "江北大道中段",
        "department": "",
        "cityName": "四川省",
        "money": "150",
        "code": ""
      },
      {
        "time": "2017-01-16 14:27:00",
        "degree": "0",
        "reason": "机动车违反规定停放,驾驶人不在现场,妨碍其它车辆、行人通行的",
        "address": "高杆灯路口",
        "department": "",
        "cityName": "四川省",
        "money": "150",
        "code": ""
      },
      {
        "time": "2017-01-12 18:13:00",
        "degree": "0",
        "reason": "机动车违反规定停放,驾驶人不在现场,妨碍其它车辆、行人通行的",
        "address": "高杆灯路口",
        "department": "",
        "cityName": "四川省",
        "money": "150",
        "code": ""
      },
      {
        "time": "2016-12-28 19:25:00",
        "degree": "0",
        "reason": "机动车违反规定停放,驾驶人不在现场,妨碍其它车辆、行人通行的",
        "address": "烟草公司路段",
        "department": "",
        "cityName": "四川省",
        "money": "150",
        "code": ""
      },
      {
        "time": "2016-12-16 16:08:02",
        "degree": "2",
        "reason": "机动车通过有灯控路口时,不按所需行进方向驶入导向车道的",
        "address": "麻柳湾大桥老江北侧路口南向北",
        "department": "",
        "cityName": "四川省",
        "money": "100",
        "code": ""
      },
      {
        "time": "2016-11-23 10:56:00",
        "degree": "0",
        "reason": "机动车违反规定停放,驾驶人不在现场,妨碍其它车辆、行人通行的",
        "address": "太平洋保险公司路段",
        "department": "",
        "cityName": "四川省",
        "money": "150",
        "code": ""
      },
      {
        "time": "2016-09-05 16:34:00",
        "degree": "0",
        "reason": "机动车违反规定停放,驾驶人不在现场,妨碍其它车辆、行人通行的",
        "address": "新华街",
        "department": "",
        "cityName": "四川省",
        "money": "150",
        "code": ""
      }
    ],
    "createDateStr": "2017-05-17 23:55:31"
  }
}
                                
失败返回示例 错误码定义
标签: {}
在线客服
微信联系
客服
扫码加微信(手机同号)
电话咨询
返回顶部