描述:输入姓名和身份证号,通过权威数据源核查,实时校验此二要素是否一致,同时返回生日、性别、籍贯等信息
接口地址: https://openapi.chinaz.net/v1/1035/idcardcheck
返回格式:JSON
请求方式:GET
请求示例:https://openapi.chinaz.net/v1/1035/idcardcheck?idcard=身份证号码&name=姓名
&APIKey=申请接口时获取的APIKey值&ChinazVer=接口版本号
请求参数:
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| idcard | string | 是 | 身份证号码 |
| name | string | 是 | 姓名 |
| APIKey | string | 是 | 申请接口时获取的APIKey值 |
| ChinazVer | string | 是 | 接口版本号,取值1.0 |
返回参数说明:
| 名称 | 类型 | 说明 |
|---|---|---|
| msg | string | code对应的说明描述 |
| success | string | 接口请求成功标识,true为成功,false为失败,失败情况下,会有对应描述和状态码 |
| code | string | 成功为200,其它为失败状态码 |
| data | string | 验证结果详细信息 |
| result | string | 0 一致(收费),1 不一致(收费),2未认证,3 已注销 |
| order_no | string | 订单号 |
| desc | string | 验证结果描述信息 |
| sex | string | 性别 |
| birthday | string | 生日 |
| address | string | 籍贯 |
JSON返回示例:
{
"msg": "成功",
"success": true,
"code": 200,
"data": {
"result": 1,
"order_no": "626072002058391552",
"desc": "不一致",
"sex": "男",
"birthday": "19940320",
"address": "江西省南昌市东湖区"
}
}
| 错误代码 | 说明 |
|---|---|
| 200 | 成功 |
| 400 | 参数错误 |
| 431 | http响应状态码:APIKey缺失,请附带APIKey参数 |
| 432 | http响应状态码:错误的APIkey长度 |
| 433 | http响应状态码:错误的请求key(或者返回状态码10001) |
| 434 | http响应状态码:错误的APIkey类型 |
| 436 | http响应状态码:额度不足,或者APIKey不存在 |
| 437 | http响应状态码:该IP未在白名单内 |
| 531 | http响应状态码:请求过于频繁 |
| 532 | http响应状态码:未知错误,请联系管理员(或者返回533) |
| 内容 | 说明 |
|---|---|
| 客服微信 | ![]() |
描述:查询IP高精准...
描述:查询IP高精准...
描述:查询IP区县级...
描述:查询IP城市级...
描述:分析公共通信和...