首页 交通出行 驾驶证信息查询
驾驶证信息查询

驾驶证信息查询

企业专用
  • 312
  • 241
通过驾驶证号查询档案编号、准驾车型、初次领证日期、累积计分等。
3.00/1次
接口已下架
https://api.jisuapi.com/driverlicense2/query
JSON
GET POST
https://api.jisuapi.com/driverlicense2/query?licensenumber=412336222222222222&appkey=yourappkey

请求参数:

API在线测试
参数名称类型必填说明
licensenumber string 驾驶证号

返回参数:

参数名称类型说明
licensenumber string 驾驶证号
licenseid string 档案编号
type string 准驾车型
score string 累计计分
startdate string 初次领证日期
enddate string 有效期至
licensestatus string 驾驶证状态

请求代码:

查看代码
<?php

require_once 'curl.func.php';

$appkey = 'your_appkey_here';//你的appkey
$licensenumber = '412336222222222222';
$url = "https://api.jisuapi.com/driverlicense2/query?licensenumber=$licensenumber&appkey=$appkey";
$result = curlOpen($url, ['ssl'=>true]);
$jsonarr = json_decode($result, true);
//exit(var_dump($jsonarr));
if($jsonarr['status'] != 0)
{
    echo $jsonarr['msg'];
    exit();
}

foreach($jsonarr['result'] as $val)
{
    echo $val['licensenumber'].' '.$val['licenseid'].' '.$val['type'].' '.$val['score'].' '.$val['startdate'].' '.$val['enddate'].' '.$val['licensestatus'];
}
                    

JSON返回示例 :

{
    "status": 0,
    "msg": "ok",
    "result": {
        "licensenumber": "412336222222222222",
        "licenseid": "332222222222",
		"type": "C1",
        "score": "5",
		"startdate": "2015-09-15",
		"enddate": "2021-09-15",
		"licensestatus": "违法未处理"
    }
}

                    

API错误码:

代号说明
201 驾驶证号为空
202 驾驶证号不正确
203 驾驶证信息不存在
210 未知错误

系统错误码:

代号说明
101 APPKEY为空或不存在
102 APPKEY已过期
103 APPKEY无请求此数据权限
104 请求超过次数限制
105 IP被禁止
106 IP请求超过限制
107 接口维护中
108 接口已停用
计次套餐套餐规格价格
试用套餐 1次 3 元  ≈3元/次
Level1 100次 350 元  ≈3.5元/次
Level2 1000次 3500 元  ≈3.5元/次
Level3 5000次 16000 元  ≈3.2元/次
Level4 10000次 30000 元  ≈3元/次

活动推荐ACTIVITY 更多

  • orc活动

其它推荐RECOMMENDED DATA 更多