Search WeChat videos
tikhub.x.wechat-search-v2-fetch-search-videosWechat search: fetch search videos (v2)
- Price
- $0.01/successAt provider cost
- Success rate
- 100%Last 30 days · 765 calls
- Latency p50
- 2.2 sp95 2.7 s
- Last verified
- Jul 28, 2026Verified working
POSThttps://toolswitch.dev/v1/tools/tikhub.x.wechat-search-v2-fetch-search-videosPreview- Uses platform quota
- Synchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Request body (JSON) | ||||
raw | boolean | Optional | True=raw search response; False=simplified parsed structure | true |
sort | string | Optional | Sort: default/0 (relevance) / latest/1 (newest) / hot/2 (most liked); string key or integer | default |
cursor | string | Optional | Pagination cursor, same as universal search: leave empty for the first page; pass back the cursor from the previous response | |
offset | integer | Optional | Pass 0 for the first page; use cursor to paginate (offset alone does not work) | 0 |
keyword | string | Required | Search keyword (1-100 chars) | 美食 |
duration | string | Optional | Duration tier (Channels video only): all/0 / short/1 (<5min) / medium/2 (5-10min) / long/3 (20min+); string key or integer | all |
publish_time | string | Optional | Publish time: all/0 / day/1 / week/2 / half_year/3; string key or integer | all |
- Request body (JSON)
rawbooleanOptionalTrue=raw search response; False=simplified parsed structure
Example:
truesortstringOptionalSort: default/0 (relevance) / latest/1 (newest) / hot/2 (most liked); string key or integer
Example:
defaultcursorstringOptionalPagination cursor, same as universal search: leave empty for the first page; pass back the cursor from the previous response
offsetintegerOptionalPass 0 for the first page; use cursor to paginate (offset alone does not work)
Example:
0keywordstringRequiredSearch keyword (1-100 chars)
Example:
美食durationstringOptionalDuration tier (Channels video only): all/0 / short/1 (<5min) / medium/2 (5-10min) / long/3 (20min+); string key or integer
Example:
allpublish_timestringOptionalPublish time: all/0 / day/1 / week/2 / half_year/3; string key or integer
Example:
all
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
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());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.01/success, including the service fee.