Search Weibo posts by keyword and time range
justoneapi.x.weibo-search-all-v2Searches Weibo posts by keyword within a required day-and-hour time range, with page-based pagination, hot or time sorting, and filters for pictures, video, music, or links.
- Price
- $0.01476/successAu prix du fournisseur
- Success rate
- —Aucune donnée de taux de réussite pour le momentLast 30 days · 2 calls
- Latency p50
- ——
- Last verified
- 28 juil. 2026Verified working
GEThttps://toolswitch.dev/v1/tools/justoneapi.x.weibo-search-all-v2?q=%E7%A7%91%E6%8A%80&page=1&endDay=2026-07-27&endHour=23&hotSort=False&contains=ALL&startDay=2026-07-27&startHour=0Preview- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
q | chaîne | Obligatoire | Search Keywords. | 科技 |
page | entier | Facultatif | Page number, starting with 1. | 1 |
endDay | chaîne | Obligatoire | End Day (yyyy-MM-dd). | 2026-07-27 |
endHour | entier | Obligatoire | End Hour (0-23). | 23 |
hotSort | booléen | Facultatif | Hot sort, true for hot sort, false for time sort. Default is false. | false |
contains | chaîne | Facultatif | Contains filter for the result set. Available Values: - `ALL`: All - `PICTURE`: Has Picture - `VIDEO`: Has Video - `MUSIC`: Has Music - `LINK`: Has Link One of: ALL, PICTURE, VIDEO, MUSIC, LINK. | ALL |
startDay | chaîne | Obligatoire | Start Day (yyyy-MM-dd). | 2026-07-27 |
startHour | entier | Obligatoire | Start Hour (0-23). | 0 |
- Paramètres de requête
qchaîneObligatoireSearch Keywords.
Exemple :
科技pageentierFacultatifPage number, starting with 1.
Exemple :
1endDaychaîneObligatoireEnd Day (yyyy-MM-dd).
Exemple :
2026-07-27endHourentierObligatoireEnd Hour (0-23).
Exemple :
23hotSortbooléenFacultatifHot sort, true for hot sort, false for time sort. Default is false.
Exemple :
falsecontainschaîneFacultatifContains filter for the result set. Available Values: - `ALL`: All - `PICTURE`: Has Picture - `VIDEO`: Has Video - `MUSIC`: Has Music - `LINK`: Has Link One of: ALL, PICTURE, VIDEO, MUSIC, LINK.
Exemple :
ALLstartDaychaîneObligatoireStart Day (yyyy-MM-dd).
Exemple :
2026-07-27startHourentierObligatoireStart Hour (0-23).
Exemple :
0
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
curl -X GET 'https://toolswitch.dev/v1/tools/justoneapi.x.weibo-search-all-v2?q=%E7%A7%91%E6%8A%80&page=1&endDay=2026-07-27&endHour=23&hotSort=False&contains=ALL&startDay=2026-07-27&startHour=0' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/justoneapi.x.weibo-search-all-v2?q=%E7%A7%91%E6%8A%80&page=1&endDay=2026-07-27&endHour=23&hotSort=False&contains=ALL&startDay=2026-07-27&startHour=0",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/justoneapi.x.weibo-search-all-v2?q=%E7%A7%91%E6%8A%80&page=1&endDay=2026-07-27&endHour=23&hotSort=False&contains=ALL&startDay=2026-07-27&startHour=0", {
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.01476/success, frais de service inclus.