qstringbắt buộc
Search keyword (required)
https://api.sandbase.ai/v1/api/weibo/web-v2/advanced-searchSearch Weibo posts by keyword with filters for time range, post type (hot, original, verified, media) and content type (images, video, links). Returns post text, author, time and engagement.
[
{
"data": {
"parsed_data": {
"pagination": {},
"parse_success": true,
"result_count": 10,
"results": [
{
"content": "【#华为高通#,#通信巨头高通向华为付专利费#】10月5日,华为与高通宣布达成一项长期、广泛的专利许可协议,该协议包含双方在 5G、计算、人工智能、网络等多个技术领域的专利组合交叉许可,同时高通将收购华为在计算、人工智能、网络及其他技术领域的部分美国专利。 (财联社) 展开c",
"interaction": {
"comment_count": 0,
"like_count": 0,
"repost_count": 0
},
"media": {
"has_image": true,
"has_video": false,
"images": [
"https://wx3.sinaimg.cn/large/006yllNVgy1ihrgzmuln8j30yc0nuh1c.jpg"
],
"videos": []
},
"post_url": "//weibo.com/6004281123/Rlg8bD95R?refer_flag=1001030103_",
"publish_time": "10月05日 14:39",
"source": "微博网页版",
"user_avatar": "https://tvax4.sinaimg.cn/crop.0.0.600.600.180/006yllNVly8h8wegdfz5fj30go0gojru.jpg?KID=imgbed,tva&Expires=1791345859&ssig=zMKwC0hr53",
"user_name": "梨视频",
"user_nick": "梨视频",
"user_url": "//weibo.com/6004281123?refer_flag=1001030103_",
"weibo_id": "5350668999329751",
"weibo_type": "original"
},
{
"content": "新闻一:深视新闻记者向华为证实,此次对高通的专利授权涵盖逻辑折叠芯片技术。新闻二:高通回应华为专利协议:授权逻辑折叠芯片技术的说法不属实。 ",
"interaction": {
"comment_count": 0,
"like_count": 0,
"repost_count": 0
},
"media": {
"has_image": true,
"has_video": false,
"images": [
"https://wx4.sinaimg.cn/large/009TFq41ly1ihss1ppnm9j30xc1juk0h.jpg",
"https://wx1.sinaimg.cn/large/009TFq41ly1ihss2z5uygj30xc11ednj.jpg"
],
"videos": []
},
"post_url": "//weibo.com/9067765609/RlqOv3EdV?refer_flag=1001030103_",
"publish_time": "10月06日 17:51",
"source": "REDMI K100 Pro Max",
"user_avatar": "https://tvax2.sinaimg.cn/crop.0.0.1080.1080.180/009TFq41ly8ihcvyl1vrvj30u00u0gnr.jpg?KID=imgbed,tva&Expires=1791345859&ssig=3G0vT%2FO%2FyB",
"user_name": "陆诞同学",
"user_nick": "陆诞同学",
"user_url": "//weibo.com/9067765609?refer_flag=1001030103_",
"weibo_id": "5351079630869607",
"weibo_type": "original"
},
{
"content": "#华为高通 芯片#2北京",
"interaction": {
"comment_count": 0,
"like_count": 0,
"repost_count": 0
},
"media": {
"has_image": true,
"has_video": false,
"images": [
"https://wx2.sinaimg.cn/large/001UrXrhly1ihrrm0yjt9j60u01emqc802.jpg"
],
"videos": []
},
"post_url": "//weibo.com/1750270991/RlixNhUka?refer_flag=1001030103_",
"publish_time": "10月05日 20:47",
"source": "Android",
"user_avatar": "https://tvax2.sinaimg.cn/crop.0.0.1002.1002.180/6853040fly8gdim7s3zdjj20ru0rumys.jpg?KID=imgbed,tva&Expires=1791345859&ssig=9%2FBPC%2BkH40",
"user_name": "陈震同学",
"user_nick": "陈震同学",
"user_url": "//weibo.com/1750270991?refer_flag=1001030103_",
"weibo_id": "5350761754268090",
"weibo_type": "original"
},
"… 7 more items in the full response"
],
"search_stats": {
"filter_type": "热门",
"search_stats": "热门2026-09-30 00时~2026-10-07 09时"
}
}
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
Returns Weibo posts that match a keyword. Each result has the post text, author, publish time, post link, media and interaction counts. The only required input is the search keyword q. You can narrow results with time range, post type and content type filters.
curl -X POST "https://api.sandbase.ai/v1/api/weibo/web-v2/advanced-search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"q": "OpenAI"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
q | string | Yes | Search keyword (required) |
include_type | string | No | Include type (all/pic/video/music/link) |
page | integer | No | Page number (default 1) |
search_type | string | No | Search type (all/hot/original/verified/media/viewpoint) |
timescope | string | No | Time scope (format: custom:start_date:end_date, e.g. custom:2025-09-01-0:2025-09-08-23) |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"parsed_data": {
"pagination": {},
"parse_success": true,
"result_count": 21,
"results": [
{
"content": "nice,dsh可以接openai ",
"interaction": {
"comment_count": 0,
"like_count": 0,
"repost_count": 0
},
"media": {
"has_image": true,
"has_video": false,
"images": [
"https://wx4.sinaimg.cn/large/005BSIfegy1iiox5o7o5dj313g0g478w.jpg"
],
"videos": []
},
"post_url": "//weibo.com/5140428384/RpERF7Wch?refer_flag=1001030103_",
"publish_time": "今天12:58",
"source": "微博网页版",
"user_avatar": "https://tvax1.sinaimg.cn/crop.0.0.828.828.180/005BSIfely8gsohng3cyuj30n00n0wfd.j…",
"user_name": "北漂民工的日常",
"user_nick": "北漂民工的日常",
"user_url": "//weibo.com/5140428384?refer_flag=1001030103_",
"weibo_id": "5361152871892009",
"weibo_type": "original"
}
],
"search_stats": {}
}
}
| Field | Meaning |
|---|---|
parsed_data.results[].content | Text of the post. |
parsed_data.results[].weibo_id | ID of the post. Use it to look up the post in other Weibo APIs. |
parsed_data.results[].publish_time | Publish time as shown on Weibo, such as 今天12:58 or 10月31日 16:45. It is a display string, not a full timestamp. |
parsed_data.results[].user_name / user_nick | Display name of the author. |
parsed_data.results[].user_url / post_url | Links to the author profile and to the post. Both start with //weibo.com/. |
parsed_data.results[].interaction.comment_count / like_count / repost_count | Number of comments, likes and reposts on the post. |
parsed_data.results[].media.has_image / has_video | Flags that show whether the post carries images or videos. |
parsed_data.results[].media.images[] / media.videos[].src | Image URLs and video file URLs. Each video also lists alternate quality links in streams. |
parsed_data.results[].weibo_type | Type label of the post, such as original. |
parsed_data.result_count | Number of posts in this response. |
page to get further result pages. The default is 1.timescope as custom:YYYY-MM-DD-H:YYYY-MM-DD-H, for example custom:2025-09-01-0:2025-09-08-23.search_type accepts all, hot, original, verified, media or viewpoint. include_type accepts all, pic, video, music or link.weibo_id to Weibo Post Detail for the full post data.$0.001 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/web-v2/advanced-search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"q": "华为 高通 专利许可协议",
"page": 1,
"search_type": "hot",
"timescope": "custom:2026-09-30-0:2026-10-07-9"
}'Đặ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 keyword (required)
include_typeanyInclude type (all/pic/video/music/link)
pageintegerPage number (default 1)
Mặc định: 1
search_typeanySearch type (all/hot/original/verified/media/viewpoint)
timescopeanyTime scope (format: custom:start_date:end_date, e.g. custom:2025-09-01-0:2025-09-08-23)
Đâ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.
[
{
"data": {
"parsed_data": {
"pagination": {},
"parse_success": true,
"result_count": 10,
"results": [
{
"content": "【#华为高通#,#通信巨头高通向华为付专利费#】10月5日,华为与高通宣布达成一项长期、广泛的专利许可协议,该协议包含双方在 5G、计算、人工智能、网络等多个技术领域的专利组合交叉许可,同时高通将收购华为在计算、人工智能、网络及其他技术领域的部分美国专利。 (财联社) 展开c",
"interaction": {
"comment_count": 0,
"like_count": 0,
"repost_count": 0
},
"media": {
"has_image": true,
"has_video": false,
"images": [
"https://wx3.sinaimg.cn/large/006yllNVgy1ihrgzmuln8j30yc0nuh1c.jpg"
],
"videos": []
},
"post_url": "//weibo.com/6004281123/Rlg8bD95R?refer_flag=1001030103_",
"publish_time": "10月05日 14:39",
"source": "微博网页版",
"user_avatar": "https://tvax4.sinaimg.cn/crop.0.0.600.600.180/006yllNVly8h8wegdfz5fj30go0gojru.jpg?KID=imgbed,tva&Expires=1791345859&ssig=zMKwC0hr53",
"user_name": "梨视频",
"user_nick": "梨视频",
"user_url": "//weibo.com/6004281123?refer_flag=1001030103_",
"weibo_id": "5350668999329751",
"weibo_type": "original"
},
{
"content": "新闻一:深视新闻记者向华为证实,此次对高通的专利授权涵盖逻辑折叠芯片技术。新闻二:高通回应华为专利协议:授权逻辑折叠芯片技术的说法不属实。 ",
"interaction": {
"comment_count": 0,
"like_count": 0,
"repost_count": 0
},
"media": {
"has_image": true,
"has_video": false,
"images": [
"https://wx4.sinaimg.cn/large/009TFq41ly1ihss1ppnm9j30xc1juk0h.jpg",
"https://wx1.sinaimg.cn/large/009TFq41ly1ihss2z5uygj30xc11ednj.jpg"
],
"videos": []
},
"post_url": "//weibo.com/9067765609/RlqOv3EdV?refer_flag=1001030103_",
"publish_time": "10月06日 17:51",
"source": "REDMI K100 Pro Max",
"user_avatar": "https://tvax2.sinaimg.cn/crop.0.0.1080.1080.180/009TFq41ly8ihcvyl1vrvj30u00u0gnr.jpg?KID=imgbed,tva&Expires=1791345859&ssig=3G0vT%2FO%2FyB",
"user_name": "陆诞同学",
"user_nick": "陆诞同学",
"user_url": "//weibo.com/9067765609?refer_flag=1001030103_",
"weibo_id": "5351079630869607",
"weibo_type": "original"
},
{
"content": "#华为高通 芯片#2北京",
"interaction": {
"comment_count": 0,
"like_count": 0,
"repost_count": 0
},
"media": {
"has_image": true,
"has_video": false,
"images": [
"https://wx2.sinaimg.cn/large/001UrXrhly1ihrrm0yjt9j60u01emqc802.jpg"
],
"videos": []
},
"post_url": "//weibo.com/1750270991/RlixNhUka?refer_flag=1001030103_",
"publish_time": "10月05日 20:47",
"source": "Android",
"user_avatar": "https://tvax2.sinaimg.cn/crop.0.0.1002.1002.180/6853040fly8gdim7s3zdjj20ru0rumys.jpg?KID=imgbed,tva&Expires=1791345859&ssig=9%2FBPC%2BkH40",
"user_name": "陈震同学",
"user_nick": "陈震同学",
"user_url": "//weibo.com/1750270991?refer_flag=1001030103_",
"weibo_id": "5350761754268090",
"weibo_type": "original"
},
"… 7 more items in the full response"
],
"search_stats": {
"filter_type": "热门",
"search_stats": "热门2026-09-30 00时~2026-10-07 09时"
}
}
}
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Weibo Advanced SearchAPI này 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 |
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/web-v2/advanced-search 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.001 mỗi lần gọi. Mỗi tổ chức được 100 lần gọi miễn phí mỗi ngày UTC, dùng chung cho các API SandBase đủ điều kiện, bao gồm API này; sau đó mỗi lần gọi sẽ được tính theo mức giá này từ số dư SandBase của bạn. Không có gói đăng ký.
Bắt buộc: q (string). Tùy chọn: include_type (any), page (integer), search_type (any) và timescope (any). 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 Advanced 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.