Search WeChat videos
tikhub.x.wechat-search-v2-fetch-search-videosWechat search: fetch search videos (v2)
- Price
- $0.01/successプロバイダー原価
- Success rate
- 100%Last 30 days · 765 calls
- Latency p50
- 2.2 sp95 2.7 s
- Last verified
- 2026/07/28Verified working
POSThttps://toolswitch.dev/v1/tools/tikhub.x.wechat-search-v2-fetch-search-videosPreview- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| リクエストボディ(JSON) | ||||
raw | 真偽値 | 任意 | True=raw search response; False=simplified parsed structure | true |
sort | 文字列 | 任意 | Sort: default/0 (relevance) / latest/1 (newest) / hot/2 (most liked); string key or integer | default |
cursor | 文字列 | 任意 | Pagination cursor, same as universal search: leave empty for the first page; pass back the cursor from the previous response | |
offset | 整数 | 任意 | Pass 0 for the first page; use cursor to paginate (offset alone does not work) | 0 |
keyword | 文字列 | 必須 | Search keyword (1-100 chars) | 美食 |
duration | 文字列 | 任意 | Duration tier (Channels video only): all/0 / short/1 (<5min) / medium/2 (5-10min) / long/3 (20min+); string key or integer | all |
publish_time | 文字列 | 任意 | Publish time: all/0 / day/1 / week/2 / half_year/3; string key or integer | all |
- リクエストボディ(JSON)
raw真偽値任意True=raw search response; False=simplified parsed structure
例:
truesort文字列任意Sort: default/0 (relevance) / latest/1 (newest) / hot/2 (most liked); string key or integer
例:
defaultcursor文字列任意Pagination cursor, same as universal search: leave empty for the first page; pass back the cursor from the previous response
offset整数任意Pass 0 for the first page; use cursor to paginate (offset alone does not work)
例:
0keyword文字列必須Search keyword (1-100 chars)
例:
美食duration文字列任意Duration tier (Channels video only): all/0 / short/1 (<5min) / medium/2 (5-10min) / long/3 (20min+); string key or integer
例:
allpublish_time文字列任意Publish time: all/0 / day/1 / week/2 / half_year/3; string key or integer
例:
all
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
curl -X POST 'https://toolswitch.dev/v1/tools/tikhub.x.wechat-search-v2-fetch-search-videos' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"raw":true,"sort":"default","offset":0,"keyword":"美食","duration":"all","publish_time":"all"}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/tikhub.x.wechat-search-v2-fetch-search-videos",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"raw\":true,\"sort\":\"default\",\"offset\":0,\"keyword\":\"美食\",\"duration\":\"all\",\"publish_time\":\"all\"}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/tikhub.x.wechat-search-v2-fetch-search-videos", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{\"raw\":true,\"sort\":\"default\",\"offset\":0,\"keyword\":\"美食\",\"duration\":\"all\",\"publish_time\":\"all\"}")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.01/success です。サービス料を含みます。