直达内容

搜索

GET /search/:q

通过关键词搜索用户。关健词包括:

  1. 用户的 Mixin Id
  2. 手机号

API 端点 URL

 https://api.mixin.one/search/:q

授权和其他选项

授权
PROFILE:READ
限制为了避免恶意的抓取行为,该 API 会有访问限制,如果返回了 429 错误,需要过 12 小时,再次访问。

参数

q
*必须
用户的 Mixin ID 或者手机号

请求示例

curl -i -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" https://api.mixin.one/search/$KEYWORD
Response
{
"data": {
"type": "user",
"user_id": "773e5e77-4107-45c2-b648-8fc722ed77f5",
"identity_number": "7000",
"phone": "+8613801380138",
"full_name": "Team Mixin",
"biography": "",
"avatar_url": "https://images.mixin.one/E2y0BnTopFK9qey0YI-8xV3M82kudNnTaGw0U5SU065864SsewNUo6fe9kDF1HIzVYhXqzws4lBZnLj1lPsjk-0=s256",
"relationship": "STRANGER",
"mute_until": "0001-01-01T00:00:00Z",
"created_at": "2017-12-23T18:23:26.996149Z",
"is_verified": true
}
}