qstringbắt buộc
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.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp 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.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
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
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
qstringbắt buộcSearch Keywords.
startDaystringbắt buộcStart Day (yyyy-MM-dd).
startHourintegerbắt buộcStart Hour (0-23).
endDaystringbắt buộcEnd Day (yyyy-MM-dd).
endHourintegerbắt buộcEnd Hour (0-23).
hotSortbooleanHot sort, true for hot sort, false for time sort. Default is false.
Mặc định: false
containsstringContains filter for the result set.
Mặc định: "ALL"
Giá trị có thể dùng: ALL, PICTURE, VIDEO, MUSIC, LINK
pageintegerPage number, starting with 1.
Mặc định: 1
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Weibo Keyword SearchAPI này Weibo | $0.014286 mỗi lần gọi | JSON |
Weibo | $0.001 mỗi lần gọi | JSON |
Weibo | $0.001 mỗi lần gọi | JSON |
Weibo | $0.001 mỗi lần gọi | JSON |
Weibo | $0.001 mỗi lần gọi | JSON |
Weibo | $0.001 mỗi lần gọi | JSON |
Hướng dẫn:Best Weibo API in 2026: Pricing Compared
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/weibo/search-all với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.014286 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: q (string), startDay (string), startHour (integer), endDay (string) và endHour (integer). Tùy chọn: hotSort (boolean), contains (một trong số ALL, PICTURE, VIDEO, MUSIC, LINK) và page (integer). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. Weibo Keyword Search chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Weibo.