qstringआवश्यक
Search Keywords.
https://api.sandbase.ai/v1/api/weibo/search-allSearch 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.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Returns Weibo posts that match a keyword within a required start and end day-and-hour range. Each post includes its text, author, engagement counts, topics, and any video link. You pass the keyword in q and the time range in startDay, startHour, endDay and endHour.
contains to VIDEO and read the video_url values.topics field across results.curl -X POST "https://api.sandbase.ai/v1/api/weibo/search-all" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"q": "新闻", "startDay": "2026-10-22", "startHour": 0, "endDay": "2026-10-29", "endHour": 23}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
endDay | string | Yes | End Day (yyyy-MM-dd). |
endHour | integer | Yes | End Hour (0-23). |
q | string | Yes | Search Keywords. |
startDay | string | Yes | Start Day (yyyy-MM-dd). |
startHour | integer | Yes | Start Hour (0-23). |
contains | string | No | Contains filter for the result set. |
hotSort | boolean | No | Hot sort, true for hot sort, false for time sort. Default is false. |
page | integer | No | Page number, starting with 1. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"has_next_page": true,
"weibo_list": [
{
"article_url": "",
"at_users": "",
"attitudes_count": "357",
"bid": "RoXFjgJp5",
"comments_count": "1",
"created_at": "2026-10-29 23:00",
"forwarded": "false",
"id": "5359492293987783",
"location": "",
"pics": "",
"reposts_count": "2",
"retweet_id": ""
}
]
}
| Field | Meaning |
|---|---|
has_next_page | Shows whether more results exist. When it is true, request the next page. |
weibo_list[] | The list of matching posts for the current page. |
weibo_list[].id / weibo_list[].bid | Identifiers of the post. id is a numeric string and bid is a short code. |
weibo_list[].text | The post text. It can include leading spaces, hashtags marked with #, and a cut-off ending. |
weibo_list[].created_at | Time the post was created, in yyyy-MM-dd HH:mm format. |
weibo_list[].screen_name / weibo_list[].user_id | Display name and numeric ID of the author. |
weibo_list[].attitudes_count / weibo_list[].comments_count / weibo_list[].reposts_count | Counts of likes, comments and reposts for the post. Values are strings. |
weibo_list[].topics | Hashtag topics in the post, joined by commas without the # signs. |
weibo_list[].video_url | Link to the post video. It is an empty string when the post has no video. |
weibo_list[].source | The client or channel the post was published from, such as 微博网页版. |
q, startDay, startHour, endDay and endHour are required. Dates use yyyy-MM-dd and hours run from 0 to 23.page, starting at 1. Keep going while has_next_page is true.hotSort to true to sort by hot instead of time. Set contains to PICTURE, VIDEO, MUSIC or LINK to filter the result set.pics, location and retweet_id come back as empty strings, and numeric values come back as strings.$0.014286 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/weibo/search-all" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"q": "新闻",
"page": 1,
"endDay": "2026-10-29",
"endHour": 23,
"hotSort": false,
"contains": "ALL",
"startDay": "2026-10-22",
"startHour": 0
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
qstringआवश्यकSearch Keywords.
startDaystringआवश्यकStart Day (yyyy-MM-dd).
startHourintegerआवश्यकStart Hour (0-23).
endDaystringआवश्यकEnd Day (yyyy-MM-dd).
endHourintegerआवश्यकEnd Hour (0-23).
hotSortbooleanHot sort, true for hot sort, false for time sort. Default is false.
डिफ़ॉल्ट: false
containsstringContains filter for the result set.
डिफ़ॉल्ट: "ALL"
संभावित मान: ALL, PICTURE, VIDEO, MUSIC, LINK
pageintegerPage number, starting with 1.
डिफ़ॉल्ट: 1
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Weibo Keyword Searchयह API Weibo | $0.014286 प्रति कॉल | JSON |
Weibo | $0.001 प्रति कॉल | JSON |
Weibo | $0.001 प्रति कॉल | JSON |
Weibo | $0.001 प्रति कॉल | JSON |
Weibo | $0.001 प्रति कॉल | JSON |
Weibo | $0.001 प्रति कॉल | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/weibo/search-all पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.014286 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: q (string), startDay (string), startHour (integer), endDay (string) और endHour (integer)। वैकल्पिक: hotSort (boolean), contains (ALL, PICTURE, VIDEO, MUSIC, LINK में से एक) और page (integer)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Weibo Keyword Search SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Weibo API access के लिए आवेदन करने की आवश्यकता नहीं है।