# Generated by ShowAPI OpenAPI generator # source: market/6 # generated-at: 2026-08-13T07:20:15.965Z 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: /6-1: x-pointCode: 1 x-mode: mapping x-read-timeout: 10 x-connect-timeout: 10 post: summary: 手机归属地查询 description: 提供手机号码归属地查询服务,可获取对应省份、城市、邮政编码及区号等参考信息。 responses: "200": description: 成功响应 content: application/json: schema: allOf: - $ref: "#/components/schemas/ShowapiResEnvelope" - type: object properties: showapi_res_body: type: object properties: prov: type: string description: 省 city: type: string description: 市 name: type: string description: 运营商 num: type: number description: 号段 provCode: type: number description: 省别编码,本省身份证的前几位编码。 type: type: number description: 1为移动 2为电信 3为联通 4为广电 -1为未知 cityCode: type: string description: 城市编码编码,本城市身份证的前几位编码。 ret_code: type: string description: |- 0为成功,其他失败。失败时不扣点数。(-2表示手机号输入的不是11位 -3表示手机号中有非数字字符 -4表示手机号格式错误 -5和-6表示找不到归属地) areaCode: type: string description: 城市区号,座机号码前几位 description: 业务返回体 operationId: 6_1_POST parameters: - name: num in: query description: 要查询的手机号码 required: true schema: type: string 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/6?tab=book x-apiCode: "6" x-is-own: false x-is-op: false