POST
联系人

手机号搜索

POSThttps://api.xingyapi.com/api/contact/phoneNumberSearch

接口用途

用于手机号搜索。

请求说明

请求体使用 JSON 格式。设备相关接口通过 instance_guid 指定设备实例;其他字段说明见参数表。

返回说明

统一响应信封 {ok, code, message, request_id, data};code=0 表示成功,业务数据在 data 字段。

请求参数

字段类型说明
instance_guid必填string星云实例标识(inst_xxxx),标识本次操作的账号
phone必填string手机号码。

请求示例

{
  "instance_guid": "inst_xxxxxxxx",
  "phone": "138****8888"
}

响应字段

字段类型说明
(数组)array结果列表,元素结构如下
[].contactInfoobject联系人信息对象。
[].corpInfoobject企业相关信息对象。
[].searchStatusnumber搜索状态;具体枚举以服务端返回为准。
[].flagnumber状态或能力标识;具体枚举以协议为准。
[].relationnumber关系信息或关系类型;具体含义以服务端协议为准。
[].wxTicketstring微信侧业务票据或临时凭证;具体用途以对应接口为准。
[].contactInfoWxobject微信联系人信息对象。
[].openidstring用户 OpenID 标识。
[].resultTypenumber结果类型标识;具体枚举以服务端协议为准。

响应示例

{
  "ok": true,
  "code": 0,
  "message": "success",
  "request_id": "nb_xxxxxxxx",
  "data": [
    {
      "contactInfo": {
        "uin": 1688857970889847,
        "name": "星云API",
        "mobile": "",
        "gender": 1,
        "iconUrl": "https://example.com/...",
        "corpId": 1970324952577074,
        "attr": 134285632,
        "alias": "",
        "mainPartyId": 1688854675899380,
        "gid": 2251801625003765,
        "isNameVerified": true,
        "englishName": "示例名称",
        "customInfo": {},
        "nameVerifyStatus": 1,
        "realName": "示例名称",
        "attr2": 1046085764,
        "externalCustomInfo": {},
        "isSyncInnerPosition": true,
        "unionId": "oXXXXXXXXXXXXXXXXXXXXXXXX",
        "vCode": "vcXXXXXXXXXXXXXXXX",
        "schoolUserType": 1,
        "attr3": 0,
        "corpDescInfo": {}
      },
      "corpInfo": {
        "corpId": 1970324952577074,
        "vid": 1688857970889847,
        "corpName": "示例企业",
        "createTime": 1785116462,
        "ownerName": "星云API",
        "staffNum": 0,
        "trust": true,
        "corpLogo": "https://example.com/...",
        "corpDesc": "",
        "staffInfo": {
          "name": "星云API",
          "phone": "",
          "mail": "",
          "headImage": "https://example.com/...",
          "internationCode": "86",
          "alias": ""
        },
        "isAccepted": true,
        "corpStat": 2,
        "corpFullName": "星云API",
        "modUserInfo": {
          "vid": 0,
          "name": ""
        },
        "isInitModUser": false,
        "authTime": 0,
        "cmSubmitTime": 0,
        "createSourceInfo": "",
        "verifyMsg": "",
        "hasInfoCorp": false,
        "virtualCreateDomainName": "",
        "language": 1,
        "corpCardUrl": "https://example.com/...",
        "authedDomain": "",
        "bAuthedLicence": true,
        "joinNeedVerify": false,
        "pstnOfficePhoneState": 0,
        "corpType": 15,
        "authExpireTime": 1816654520,
        "authLicenceStatus": 3,
        "authCorpStatus": 1,
        "sCorpId": "wwxxxxxxxxxxxxxxxx",
        "corpAppWxaInfo": {
          "userName": "gh_303bdfa3334c@app",
          "instance_guid": "inst_xxxxxxxx",
          "enterPath": "/pages/index/index.html",
          "versionType": 0,
          "version": 0
        }
      },
      "searchStatus": 1,
      "flag": 0,
      "relation": 0,
      "wxTicket": "<省略>",
      "contactInfoWx": {
        "uin": 7881303246306300,
        "name": "星云API",
        "gender": 0,
        "iconUrl": "https://example.com/..."
      },
      "openid": "orFrbsgZntC8xzDrLShcnr1nx1pA",
      "resultType": 1
    }
  ]
}

返回接口目录 · 请求规范 · 错误码

在线调试

在控制台中在线测试 API 接口无需编码,快速验证接口效果。

基础信息

Base URL复制
https://api.xingyapi.com
API Key复制
X-Nebula-Key: <API Key>
Content-Type
application/json

联系客服

客服微信二维码
微信号:xingyunbot
扫码或搜索微信号,添加客服获取支持