querystringbắt buộc
Search keyword (required)
https://api.sandbase.ai/v1/api/weibo/web-v2/video-searchSearches Weibo video posts by keyword with sorting options for popular or all results, returning matching posts, user details, and engagement counts.
[
{
"data": {
"parsed_data": {
"pagination": {},
"parse_success": true,
"result_count": 5,
"results": [
{
"content": "徐振轩超话对了那天说的臭豆腐火锅还可,油呛牛肉好吃!!#振在输入中…##十一休time#",
"interaction": {
"comment_count": 0,
"like_count": 0,
"repost_count": 0
},
"media": {
"has_image": true,
"has_video": false,
"images": [
"https://wx3.sinaimg.cn/large/006c8lxLly1ihsubt2knej33b04eohdv.jpg",
"https://wx3.sinaimg.cn/large/006c8lxLly1ihsubntba1j32c03401ky.jpg",
"https://wx2.sinaimg.cn/large/006c8lxLly1ihsubvenx0j31r0340hdt.jpg",
"… 6 more items in the full response"
],
"videos": []
},
"post_url": "//weibo.com/5676102465/RlrmVtkxi?refer_flag=1001030103_",
"publish_time": "今天19:15",
"source": "徐振轩超话",
"user_avatar": "https://tvax2.sinaimg.cn/crop.0.0.512.512.180/006c8lxLly8gk30quawsqj30e80e80tf.jpg?KID=imgbed,tva&Expires=1791300796&ssig=1p0%2FuT71Lg",
"user_name": "徐振轩xzx-999",
"user_nick": "徐振轩xzx-999",
"user_url": "//weibo.com/5676102465?refer_flag=1001030103_",
"weibo_id": "5351100976990456",
"weibo_type": "original"
},
{
"content": "#看到烟火的人都会走运##我说的##好久不见#",
"interaction": {
"comment_count": 0,
"like_count": 0,
"repost_count": 0
},
"media": {
"has_image": true,
"has_video": false,
"images": [
"https://wx3.sinaimg.cn/large/6853f76fly1ihrq6ahw7vj237k4tcqv9.jpg",
"https://wx2.sinaimg.cn/large/6853f76fly1ihsusenuqsj237k4tcb2g.jpg",
"https://wx1.sinaimg.cn/large/6853f76fly1ihsusjiawfj237k4tcqvb.jpg",
"… 1 more items in the full response"
],
"videos": []
},
"post_url": "//weibo.com/1750333295/Rlrq6f57r?refer_flag=1001030103_",
"publish_time": "今天19:23",
"source": "刘恋超话",
"user_avatar": "https://tvax3.sinaimg.cn/crop.0.0.512.512.180/6853f76fly8i3zkoah49sj20e80e874v.jpg?KID=imgbed,tva&Expires=1791300796&ssig=9De58d7jxQ",
"user_name": "刘恋MrMiss",
"user_nick": "刘恋MrMiss",
"user_url": "//weibo.com/1750333295?refer_flag=1001030103_",
"weibo_id": "5351102943594601",
"weibo_type": "original"
},
{
"content": "巴黎最后一天,厨艺大挑战从天亮做到深夜我做了两道,猜对没奖😆 ",
"interaction": {
"comment_count": 0,
"like_count": 0,
"repost_count": 0
},
"media": {
"has_image": true,
"has_video": false,
"images": [
"https://wx1.sinaimg.cn/large/68c50bc1gy1ihsv57ok35j21hc0u0tlm.jpg",
"https://wx3.sinaimg.cn/large/68c50bc1gy1ihsv5606h3j21401hc7g8.jpg",
"https://wx2.sinaimg.cn/large/68c50bc1gy1ihsv59e68rj21hc0u0anc.jpg",
"… 3 more items in the full response"
],
"videos": []
},
"post_url": "//weibo.com/1757744065/RlrxtFiTp?refer_flag=1001030103_",
"publish_time": "57分钟前",
"user_avatar": "https://tvax1.sinaimg.cn/crop.0.0.512.512.180/68c50bc1ly8g85kndxajfj20e80e8dgn.jpg?KID=imgbed,tva&Expires=1791300796&ssig=c6%2BTB7j6hf",
"user_name": "蓝盈莹Lyric",
"user_nick": "蓝盈莹Lyric",
"user_url": "//weibo.com/1757744065?refer_flag=1001030103_",
"weibo_id": "5351107519844075",
"weibo_type": "original"
},
"… 2 more items in the full response"
],
"search_stats": {}
}
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
Searches Weibo video posts by keyword and returns matching posts with the post text, author details, video stream URLs, and like, comment and repost counts. It needs one input: query. You can also set mode and page.
OpenAI.mode.curl -X POST "https://api.sandbase.ai/v1/api/weibo/web-v2/video-search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "OpenAI"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search keyword (required) |
mode | string | No | Search mode hot=popular / all=all (default hot) |
page | integer | No | Page number (default 1) |
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": 10,
"results": [
{
"content": "#OpenAI接连发生AI失控事件#【接连发生失控事件,OpenAI再次暂停其最先进模型训练】#OpenAI暂停新模型训练#当地时间9月26日获悉,美国开放人工…",
"interaction": {
"comment_count": 0,
"like_count": 0,
"repost_count": 0
},
"media": {
"has_image": false,
"has_video": true,
"images": [],
"videos": [
{
"fid": "1034:5347747881222210",
"page_url": "sinaweibo://gotovideo?selected_containerid=231557_2024_1&is_url_decode=1&source=…",
"src": "https://f.video.weibocdn.com/o0/kRf4Oa4Ilx08B7KhD6LC010412006GwY0E010.mp4?label=…",
"streams": [
"https://f.video.weibocdn.com/o0/kRf4Oa4Ilx08B7KhD6LC010412006GwY0E010.mp4?label=…"
],
"type": "video"
}
]
},
"post_url": "//weibo.com/2318910945/Rk1oY1UG2?refer_flag=1001030103_",
"publish_time": "09月27日 11:19",
"source": "微博视频号",
"user_avatar": "https://tvax3.sinaimg.cn/crop.0.0.450.450.180/002wVUFrly8h8vgt7mcs2j60ci0ci0t002…",
"user_name": "新浪热点",
"user_nick": "新浪热点",
"user_url": "//weibo.com/2318910945?refer_flag=1001030103_",
"weibo_id": "5347719520456198",
"weibo_type": "original"
}
],
"search_stats": {}
}
}
| Field | Meaning |
|---|---|
parsed_data.results[].content | Post text. Long posts are cut and may end with an ellipsis or a expand marker. |
parsed_data.results[].weibo_id | ID of the post as a numeric string. |
parsed_data.results[].post_url | Link to the post on weibo.com. It starts with // and has no scheme. |
parsed_data.results[].publish_time | Publish time as display text, for example 10月09日 19:27. It has no year. |
parsed_data.results[].user_name / user_nick | Display name of the author. |
parsed_data.results[].user_url / user_avatar | Link to the author's Weibo profile and to the author's avatar image. |
parsed_data.results[].interaction.like_count / comment_count / repost_count | Engagement counts for the post. |
parsed_data.results[].media.videos[].src | URL of the main video file for the post. |
parsed_data.results[].media.videos[].streams | List of video file URLs at different quality levels. The label in each URL names the quality, such as mp4_720p or mp4_hd. |
parsed_data.results[].weibo_type | Type of post. The sample results show original. |
Expires value in the query string, so download them soon after the call.mode accepts hot for popular results or all for all results. The default is hot.page to move through results. In the sample response parsed_data.pagination is empty, so step the page number yourself.weibo_id to Weibo Post Detail.$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/video-search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"mode": "hot",
"page": 1,
"query": "OpenAI"
}'Đặ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.
querystringbắt buộcSearch keyword (required)
modestringSearch mode hot=popular / all=all (default hot)
Mặc định: "hot"
pageintegerPage number (default 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.
[
{
"data": {
"parsed_data": {
"pagination": {},
"parse_success": true,
"result_count": 5,
"results": [
{
"content": "徐振轩超话对了那天说的臭豆腐火锅还可,油呛牛肉好吃!!#振在输入中…##十一休time#",
"interaction": {
"comment_count": 0,
"like_count": 0,
"repost_count": 0
},
"media": {
"has_image": true,
"has_video": false,
"images": [
"https://wx3.sinaimg.cn/large/006c8lxLly1ihsubt2knej33b04eohdv.jpg",
"https://wx3.sinaimg.cn/large/006c8lxLly1ihsubntba1j32c03401ky.jpg",
"https://wx2.sinaimg.cn/large/006c8lxLly1ihsubvenx0j31r0340hdt.jpg",
"… 6 more items in the full response"
],
"videos": []
},
"post_url": "//weibo.com/5676102465/RlrmVtkxi?refer_flag=1001030103_",
"publish_time": "今天19:15",
"source": "徐振轩超话",
"user_avatar": "https://tvax2.sinaimg.cn/crop.0.0.512.512.180/006c8lxLly8gk30quawsqj30e80e80tf.jpg?KID=imgbed,tva&Expires=1791300796&ssig=1p0%2FuT71Lg",
"user_name": "徐振轩xzx-999",
"user_nick": "徐振轩xzx-999",
"user_url": "//weibo.com/5676102465?refer_flag=1001030103_",
"weibo_id": "5351100976990456",
"weibo_type": "original"
},
{
"content": "#看到烟火的人都会走运##我说的##好久不见#",
"interaction": {
"comment_count": 0,
"like_count": 0,
"repost_count": 0
},
"media": {
"has_image": true,
"has_video": false,
"images": [
"https://wx3.sinaimg.cn/large/6853f76fly1ihrq6ahw7vj237k4tcqv9.jpg",
"https://wx2.sinaimg.cn/large/6853f76fly1ihsusenuqsj237k4tcb2g.jpg",
"https://wx1.sinaimg.cn/large/6853f76fly1ihsusjiawfj237k4tcqvb.jpg",
"… 1 more items in the full response"
],
"videos": []
},
"post_url": "//weibo.com/1750333295/Rlrq6f57r?refer_flag=1001030103_",
"publish_time": "今天19:23",
"source": "刘恋超话",
"user_avatar": "https://tvax3.sinaimg.cn/crop.0.0.512.512.180/6853f76fly8i3zkoah49sj20e80e874v.jpg?KID=imgbed,tva&Expires=1791300796&ssig=9De58d7jxQ",
"user_name": "刘恋MrMiss",
"user_nick": "刘恋MrMiss",
"user_url": "//weibo.com/1750333295?refer_flag=1001030103_",
"weibo_id": "5351102943594601",
"weibo_type": "original"
},
{
"content": "巴黎最后一天,厨艺大挑战从天亮做到深夜我做了两道,猜对没奖😆 ",
"interaction": {
"comment_count": 0,
"like_count": 0,
"repost_count": 0
},
"media": {
"has_image": true,
"has_video": false,
"images": [
"https://wx1.sinaimg.cn/large/68c50bc1gy1ihsv57ok35j21hc0u0tlm.jpg",
"https://wx3.sinaimg.cn/large/68c50bc1gy1ihsv5606h3j21401hc7g8.jpg",
"https://wx2.sinaimg.cn/large/68c50bc1gy1ihsv59e68rj21hc0u0anc.jpg",
"… 3 more items in the full response"
],
"videos": []
},
"post_url": "//weibo.com/1757744065/RlrxtFiTp?refer_flag=1001030103_",
"publish_time": "57分钟前",
"user_avatar": "https://tvax1.sinaimg.cn/crop.0.0.512.512.180/68c50bc1ly8g85kndxajfj20e80e8dgn.jpg?KID=imgbed,tva&Expires=1791300796&ssig=c6%2BTB7j6hf",
"user_name": "蓝盈莹Lyric",
"user_nick": "蓝盈莹Lyric",
"user_url": "//weibo.com/1757744065?refer_flag=1001030103_",
"weibo_id": "5351107519844075",
"weibo_type": "original"
},
"… 2 more items in the full response"
],
"search_stats": {}
}
}
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Weibo Video 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/video-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, đượ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: query (string). Tùy chọn: mode (string) 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 Video 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.