Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

WeChat Channels In-Channel Video Search

API 文件
https://api.sandbase.ai/v1/api/wechat-channels/v2/search-channel-videos

Search one WeChat Channels creator's videos by keyword, within that channel only. Returns matching video IDs and titles.

價格
$0.01美元/次呼叫
方法
POST
回應
JSON
參數
2 個必填 · 1 個選填

Playground

輸入
Keyword to search within this channel (1-100 chars)
Creator finder username (`v2_…@finder` format). E.g. `v2_060000231003b20faec8c6e4811dc1d4c602ee30b0771bbcf220c67926bb76ab7702ac335a53@finder` (People's Daily).
Optional, default True. True=raw search response; False=simplified parsed structure.
輸出範例
回應outputs · 1.2 KB · 33 行
[
  {
    "data": {
      "continue_flag": 0,
      "count": 2,
      "debug_id": "a7b55b29",
      "debug_info": "gAAAAABqxNIfvK5cfJ9V3FEUhglxoIB779ni5g2XcrzJT5yaJ1A12VV6NVzJegtQnNpGIovLPRVurFkYyFyHLXN2GmvBz1GPsxjZoz7izDUwmsAGbV70vBOv2-gzycrJXGohOv0QNhJVxJSH8WlWYogEW-Ij22xMIBd_3CQkl7MYvQvIvEmgPLONVIB907kIEbRJQoXHJNPQXLHe5Dy_rWOsnE59q_XNq4IxjyKJTZZ024OteAzwo7XipcJr9sCoJWGGwrAq3mZRdrWNbcinLaxVhtSnjG2B4w==",
      "items": [
        {
          "desc": null,
          "doc_id": "finderobjv03bpeXe0scUqXKV+shlAmntbJbnpPujnGFatrZHCTR4U=",
          "nickname": null,
          "thumb_url": null,
          "title": "很多人小时候都读过百科全书。明《永乐大典》被誉为“有史以来规模最大的百科全书”。它命运多舛,散佚四方,如今正被我们一点点找回。守护典籍,吾辈有责,望文脉不绝,国运长盛!#了不起的文物 #国庆",
          "type": "video",
          "username": null
        },
        {
          "desc": null,
          "doc_id": "finderobjv0O5SIOinYNVjnkyfj1Cauap24KvwiAQUHWfE4Msh7+t8=",
          "nickname": null,
          "thumb_url": null,
          "title": "在运河上划桨板,City 不 City?来!跟上@人民日报 记者的脚步,开启一场不一样的“北京城市副中心奇旅”。",
          "type": "video",
          "username": null
        }
      ],
      "keyword": "永乐大典",
      "next_cursor": null,
      "username": "v2_060000231003b20faec8c6e4811dc1d4c602ee30b0771bbcf220c67926bb76ab7702ac335a53@finder"
    }
  }
]

範例

選擇一個範例,將其輸入與結果載入 playground。

API README

WeChat Channels In-Channel Video Search API

This API searches the videos of one WeChat Channels creator by keyword. It needs the creator's finder username (v2_…@finder) and a keyword. It returns the matching videos with their IDs and titles.

Use cases

  • Find a specific video in a channel that has hundreds of posts.
  • Check whether a media account has covered a topic, such as a historical artifact, before you plan new content.
  • Build a topic archive by collecting the titles and IDs of all of a creator's videos on one subject.
  • Collect video IDs for one topic, then pass them to a detail or comment API.

Request

curl -X POST "https://api.sandbase.ai/v1/api/wechat-channels/v2/search-channel-videos" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"username": "v2_060000231003b20faec8c6e4811dc1d4c602ee30b0771bbcf220c67926bb76ab7702ac335a53@finder", "keyword": "永乐大典", "raw": false}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
keywordstringYesKeyword to search within this channel (1-100 chars)
usernamestringYesCreator finder username (v2_…@finder format). E.g. v2_060000231003b20faec8c6e4811dc1d4c602ee30b0771bbcf220c67926bb76ab7702ac335a53@finder (People's Daily).
rawbooleanNoOptional, default True. True=raw search response; False=simplified parsed structure.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "continue_flag": 0,
  "count": 2,
  "debug_id": "02cd9d55",
  "debug_info": "gAAAAABq6ZEmEsuQBEctI0ZyuqCBcYaZ-dBcS1COMK33U2b9NCw0pykWQmxzzYcVY9z7VDsw_S4LDlOL…",
  "items": [
    {
      "desc": null,
      "doc_id": "finderobjv03bpeXe0scUqXKV+shlAmntbJbnpPujnGFatrZHCTR4U=",
      "nickname": null,
      "thumb_url": null,
      "title": "很多人小时候都读过百科全书。明《永乐大典》被誉为“有史以来规模最大的百科全书”。它命运多舛,散佚四方,如今正被我们一点点找回。守护典籍,吾辈有责,望文脉不绝,国…",
      "type": "video",
      "username": null
    }
  ],
  "keyword": "永乐大典",
  "next_cursor": null,
  "username": "v2_060000231003b20faec8c6e4811dc1d4c602ee30b0771bbcf220c67926bb76ab7702ac335a53@…"
}

Response fields

FieldMeaning
countNumber of videos in the items list for this response.
continue_flagPaging flag. The value 0 in this response, where next_cursor is null, shows that no further results are signaled.
next_cursorCursor for the next page of results. It is null when there is no next page.
items[].doc_idID of the matching video. It starts with finderobjv0. Use it to identify the video in follow-up calls.
items[].titleVideo title or caption text, including any hashtags and @mentions.
items[].typeKind of result. The value is video for each item here.
items[].desc / items[].nickname / items[].thumb_url / items[].usernameExtra item fields. They are null in this response with raw set to false.
keyword / usernameEcho of the search keyword and the creator's finder username from the request.

Notes

Pricing

$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

探索更多

相關 APIs

所有 APIs
API價格回應
WeChat Channels每次呼叫 $0.01JSON
WeChat Channels每次呼叫 $0.01JSON
WeChat Channels每次呼叫 $0.01JSON
WeChat Channels每次呼叫 $0.01JSON
WeChat Channels每次呼叫 $0.01JSON
WeChat Channels每次呼叫 $0.01JSON

指南:Best WeChat Channels API in 2026: Pricing Compared

問題

常見問題

我要如何使用 WeChat Channels In-Channel Video Search API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/wechat-channels/v2/search-channel-videos。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

WeChat Channels In-Channel Video Search API 的費用是多少?

每次 $0.01,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

WeChat Channels In-Channel Video Search API 接受哪些參數?

必要:keyword (string) 和 username (string)。 選填:raw (boolean)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

WeChat Channels In-Channel Video Search API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 WeChat Channels 開發者帳號或 API 金鑰嗎?

不需要。WeChat Channels In-Channel Video Search 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 WeChat Channels API 存取權。