POST
/
v1
/
channels
/
search
curl --request POST \
  --url https://api.reportify.cn/v1/channels/search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "page_num": 1,
  "page_size": 10,
  "query": "<string>"
}'
{
  "total_count": 0,
  "total_page": 0,
  "page_num": 1,
  "page_size": 10,
  "channels": [
    {
      "id": "<string>",
      "name": "<string>",
      "description": "<string>",
      "avatar_url": "<string>",
      "following": false
    }
  ]
}

搜索账号

URL: /v1/channels/search
方法: POST
描述: 根据条件搜索账号

请求参数

参数名类型描述
querystr搜索账号名关键词或者账号链接(现在支持公众号文章链接)
page_numint当前页码,默认值为 1
page_sizeint每页条目数,默认值为 10

响应参数

参数名类型描述
page_numint当前页码。
page_sizeint每页条目数。
total_pageint总页数。
total_countint总条目数。
channelsarray文档数组,每个文档包含以下字段:
  idstr账号唯一 ID。
  namestr账号名称。
  avatar_urlstr账号头像。
  descriptionstr账号描述。
  followingbool账号关注状态。

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.