Search a Weibo user's posts by keyword and dates
tikhub.x.weibo-web-v2-search-user-postsWeibo: search user posts (web_v2)
- Price
- $0.001/successAu prix du fournisseur
- Success rate
- 100 %Last 30 days · 8 calls
- Latency p50
- 826 msp95 1.2 s
- Last verified
- 28 juil. 2026Verified working
GEThttps://toolswitch.dev/v1/tools/tikhub.x.weibo-web-v2-search-user-posts?uid=7277477906&page=1&hasori=1&haspic=1&hasret=1&endtime=1772294400&hastext=1&hasmusic=1&hasvideo=1&starttime=1772294400Preview- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
q | chaîne | Facultatif | Search keyword | |
uid | chaîne | Obligatoire | User ID | 7277477906 |
page | entier | Facultatif | Page number | 1 |
hasori | entier | Facultatif | Include original posts, 1=include, 0=exclude | 1 |
haspic | entier | Facultatif | Include image posts, 1=include, 0=exclude | 1 |
hasret | entier | Facultatif | Include retweets, 1=include, 0=exclude | 1 |
endtime | other | Facultatif | End timestamp | 1772294400 |
hastext | entier | Facultatif | Include text posts, 1=include, 0=exclude | 1 |
hasmusic | entier | Facultatif | Include music posts, 1=include, 0=exclude | 1 |
hasvideo | entier | Facultatif | Include video posts, 1=include, 0=exclude | 1 |
starttime | other | Facultatif | Start timestamp | 1772294400 |
- Paramètres de requête
qchaîneFacultatifSearch keyword
uidchaîneObligatoireUser ID
Exemple :
7277477906pageentierFacultatifPage number
Exemple :
1hasorientierFacultatifInclude original posts, 1=include, 0=exclude
Exemple :
1haspicentierFacultatifInclude image posts, 1=include, 0=exclude
Exemple :
1hasretentierFacultatifInclude retweets, 1=include, 0=exclude
Exemple :
1endtimeotherFacultatifEnd timestamp
Exemple :
1772294400hastextentierFacultatifInclude text posts, 1=include, 0=exclude
Exemple :
1hasmusicentierFacultatifInclude music posts, 1=include, 0=exclude
Exemple :
1hasvideoentierFacultatifInclude video posts, 1=include, 0=exclude
Exemple :
1starttimeotherFacultatifStart timestamp
Exemple :
1772294400
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/tikhub.x.weibo-web-v2-search-user-posts?uid=7277477906&page=1&hasori=1&haspic=1&hasret=1&endtime=1772294400&hastext=1&hasmusic=1&hasvideo=1&starttime=1772294400' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/tikhub.x.weibo-web-v2-search-user-posts?uid=7277477906&page=1&hasori=1&haspic=1&hasret=1&endtime=1772294400&hastext=1&hasmusic=1&hasvideo=1&starttime=1772294400",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/tikhub.x.weibo-web-v2-search-user-posts?uid=7277477906&page=1&hasori=1&haspic=1&hasret=1&endtime=1772294400&hastext=1&hasmusic=1&hasvideo=1&starttime=1772294400", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.001/success, frais de service inclus.