# Generated by ShowAPI OpenAPI generator
# source: market/25
# generated-at: 2026-06-25T21:54:47.538Z
openapi: 3.0.3
info:
  title: 身份证归属地查询
  description: 本接口是一款基于身份证号码提供的信息查询工具，旨在帮助用户准确、快速地获取身份证持有者的签发地、出生日期及性别等关键信息。通过接入我们强大的数据处理和查询能力，用户可以轻松验证身份证号码的真实性和有效性，确保个人信息处理的准确性和合规性。
  termsOfService: https://www.showapi.com/helpcenter/view#/4019/2
  version: 1.0.0
servers:
  - url: https://route.showapi.com
paths:
  /25-3:
    x-pointCode: 3
    x-mode: mapping
    x-read-timeout: 30
    x-connect-timeout: 30
    post:
      summary: 身份证归属地查询
      description: 根据身份证号，返回其签发地、生日、性别数据。可用于鉴别随机生成的身份证号码以及身份证作假等场景。
      responses:
        "200":
          description: 成功响应
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/ShowapiResEnvelope"
                  - type: object
                    properties:
                      showapi_res_body:
                        type: object
                        properties:
                          retData:
                            type: array
                            items:
                              type: object
                              properties:
                                address:
                                  type: string
                                  description: 籍贯
                                birthday:
                                  type: string
                                  description: 生日
                                sex:
                                  type: string
                                  description: 性别，M为男性，F为女性
                            description: 身份证数据结构
                          retMsg:
                            type: string
                            description: 消息提示
                        description: 业务返回体
      operationId: 25_3_POST
      parameters: []
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                id:
                  type: string
                  description: 身份证号
              required:
                - id
components:
  securitySchemes:
    AppKeyAuth:
      type: apiKey
      in: query
      name: appKey
      description: 从 ShowAPI 控制台获取的 appKey，管理地址：https://www.showapi.com/console#/myApp
  schemas:
    ShowapiResEnvelope:
      type: object
      description: ShowAPI 统一返回包裹（业务数据位于 showapi_res_body）
      properties:
        showapi_res_code:
          type: integer
          description: API 返回的状态码
        showapi_res_error:
          type: string
          description: API 返回的错误信息
        showapi_res_id:
          type: string
          description: API 请求的唯一标识
        showapi_fee_num:
          type: integer
          description: API 调用计费次数
security:
  - AppKeyAuth: []
externalDocs:
  url: https://www.showapi.com/apiGateway/view/25?tab=book
x-apiCode: "25"
x-is-own: false
x-is-op: true
