Search WeChat content
tikhub.x.wechat-search-v2-fetch-searchWechat search: fetch search (v2)
- Price
- $0.01/successAt provider cost
- Success rate
- 100%Last 30 days · 44 calls
- Latency p50
- 2.3 sp95 3.1 s
- Last verified
- Jul 28, 2026Verified working
POSThttps://toolswitch.dev/v1/tools/tikhub.x.wechat-search-v2-fetch-searchPreview- 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 (result page 'sort' dropdown, common to all verticals): default/0 (relevance) / latest/1 (newest) / hot/2 (most liked); string key or integer | default |
cursor | string | Optional | Pagination cursor: leave empty for the first page; for the next page pass back the cursor returned in the previous response | |
offset | integer | Optional | Pass 0 for the first page; use cursor to paginate (offset alone does not work — it returns the first page every time) | 0 |
keyword | string | Required | Search keyword (1-100 chars) | 人民日报 |
publish_time | string | Optional | Publish time (result page 'time' dropdown, common): all/0 / day/1 / week/2 / half_year/3; string key or integer | all |
business_type | string | Optional | Vertical key: all / account / article / video / live_stream / moments / news / book / listen / image / encyclopedia / weixin_index, other values are rejected | all |
- Request body (JSON)
rawbooleanOptionalTrue=raw search response; False=simplified parsed structure
Example:
truesortstringOptionalSort (result page 'sort' dropdown, common to all verticals): default/0 (relevance) / latest/1 (newest) / hot/2 (most liked); string key or integer
Example:
defaultcursorstringOptionalPagination cursor: leave empty for the first page; for the next page pass back the cursor returned in the previous response
offsetintegerOptionalPass 0 for the first page; use cursor to paginate (offset alone does not work — it returns the first page every time)
Example:
0keywordstringRequiredSearch keyword (1-100 chars)
Example:
人民日报publish_timestringOptionalPublish time (result page 'time' dropdown, common): all/0 / day/1 / week/2 / half_year/3; string key or integer
Example:
allbusiness_typestringOptionalVertical key: all / account / article / video / live_stream / moments / news / book / listen / image / encyclopedia / weixin_index, other values are rejected
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' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"raw":true,"sort":"default","offset":0,"keyword":"人民日报","publish_time":"all","business_type":"all"}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/tikhub.x.wechat-search-v2-fetch-search",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"raw\":true,\"sort\":\"default\",\"offset\":0,\"keyword\":\"人民日报\",\"publish_time\":\"all\",\"business_type\":\"all\"}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/tikhub.x.wechat-search-v2-fetch-search", {
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\":\"人民日报\",\"publish_time\":\"all\",\"business_type\":\"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.