识别身份证

  • 接口地址:https://api.itink.com.cn/api/cdp-rest/recognizeIdCardOCR.json
  • 返回格式:json
  • 请求方式:POST
  • 请求示例:https://api.itink.com.cn/api/cdp-rest/recognizeIdCardOCR.json?key=key值&photo=照片&imageId=图片ID
  • 接口描述:识别身份证

  • 请求参数说明

名称 是否必填 数据类型 说明
token 是 string 访问凭据;由数据开放平台提供
file 是 string 身份证图片(支持jpg, jpeg, png,"gif, bmp格式)
  • 返回参数说明
名称 数据类型 说明
code string 返回值:1: 成功,-1:失败
msg string 接口请求后的返回的中文描述
data Map
└ name string 姓名
└ idcard string 身份证号
└ sex string 性别
└ nation string 民族
└ birthday string 生日
└ address string 地址
└ authority string 签发机关
└ timelimit string 有效期限
  • 返回内容示例
    正常返回示例:
    {
      "data" : {
        "birthday":"19**年12月16日",
        "address":"福建省**市**镇***路东**号",
        "nation":"汉",
        "sex":"男",
        "idcard":"350*************59",
        "name":"林**"
      },
      "code" : 1,
      "msg" : "查询成功",
      "source" : "FOTON"
    }