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/successAt provider cost
- Success rate
- —No success-rate data yetLast 30 days · 2 calls
- Latency p50
- ——
- Last verified
- Jul 28, 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
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
q | string | Required | Search Keywords. | 科技 |
page | integer | Optional | Page number, starting with 1. | 1 |
endDay | string | Required | End Day (yyyy-MM-dd). | 2026-07-27 |
endHour | integer | Required | End Hour (0-23). | 23 |
hotSort | boolean | Optional | Hot sort, true for hot sort, false for time sort. Default is false. | false |
contains | string | Optional | 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 | string | Required | Start Day (yyyy-MM-dd). | 2026-07-27 |
startHour | integer | Required | Start Hour (0-23). | 0 |
- Query parameters
qstringRequiredSearch Keywords.
Example:
科技pageintegerOptionalPage number, starting with 1.
Example:
1endDaystringRequiredEnd Day (yyyy-MM-dd).
Example:
2026-07-27endHourintegerRequiredEnd Hour (0-23).
Example:
23hotSortbooleanOptionalHot sort, true for hot sort, false for time sort. Default is false.
Example:
falsecontainsstringOptionalContains 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.
Example:
ALLstartDaystringRequiredStart Day (yyyy-MM-dd).
Example:
2026-07-27startHourintegerRequiredStart Hour (0-23).
Example:
0
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the 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());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.01476/success, including the service fee.