Search WeChat content
tikhub.x.wechat-search-v2-fetch-searchWechat search: fetch search (v2)
- Price
- $0.01/successZum Anbieterpreis
- Success rate
- 100 %Last 30 days · 44 calls
- Latency p50
- 2.3 sp95 3.1 s
- Last verified
- 28.07.2026Verified working
POSThttps://toolswitch.dev/v1/tools/tikhub.x.wechat-search-v2-fetch-searchPreview- Uses platform quota
- Synchronous response
- Reads public data
Parameter
| Parameter | Typ | Erforderlich | Beschreibung | Beispiel |
|---|---|---|---|---|
| Anfragetext (JSON) | ||||
raw | Boolean | Optional | True=raw search response; False=simplified parsed structure | true |
sort | Zeichenkette | 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 | Zeichenkette | Optional | Pagination cursor: leave empty for the first page; for the next page pass back the cursor returned in the previous response | |
offset | Ganzzahl | 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 | Zeichenkette | Erforderlich | Search keyword (1-100 chars) | 人民日报 |
publish_time | Zeichenkette | Optional | Publish time (result page 'time' dropdown, common): all/0 / day/1 / week/2 / half_year/3; string key or integer | all |
business_type | Zeichenkette | Optional | Vertical key: all / account / article / video / live_stream / moments / news / book / listen / image / encyclopedia / weixin_index, other values are rejected | all |
- Anfragetext (JSON)
rawBooleanOptionalTrue=raw search response; False=simplified parsed structure
Beispiel:
truesortZeichenketteOptionalSort (result page 'sort' dropdown, common to all verticals): default/0 (relevance) / latest/1 (newest) / hot/2 (most liked); string key or integer
Beispiel:
defaultcursorZeichenketteOptionalPagination cursor: leave empty for the first page; for the next page pass back the cursor returned in the previous response
offsetGanzzahlOptionalPass 0 for the first page; use cursor to paginate (offset alone does not work — it returns the first page every time)
Beispiel:
0keywordZeichenketteErforderlichSearch keyword (1-100 chars)
Beispiel:
人民日报publish_timeZeichenketteOptionalPublish time (result page 'time' dropdown, common): all/0 / day/1 / week/2 / half_year/3; string key or integer
Beispiel:
allbusiness_typeZeichenketteOptionalVertical key: all / account / article / video / live_stream / moments / news / book / listen / image / encyclopedia / weixin_index, other values are rejected
Beispiel:
all
Codebeispiele
Ersetze $TOOLSWITCH_KEY durch den in der Konsole erstellten Schlüssel.
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());Diese Gateway-API ist eine Vorschauversion; URL und Authentifizierung können sich ändern. Die Beispielparameter sind Musterdaten. Aufrufe werden mit $0.01/success einschließlich Servicegebühr abgerechnet.