Explore our Marketplace to buy and sell APIs, services, and social media solutions. Connect with a vibrant community of developers, businesses, and creators!
基于微博搜索实时流(s.weibo.com)抓取“实时”结果页面,解析为结构化数据,仅需传入搜索词与页码。
内置按页面惯例自动补全的固定参数:rd=realtime、tw=realtime、Refer=weibo_realtime。
# 第1页
await fetch_realtime_search(query="苹果发布会", page=1)
# 第2页
await fetch_realtime_search(query="苹果发布会", page=2)
{
"code": 200,
"data": {
"parsed_data": {
"results": [
{
"weibo_id": "5092682368025584",
"user_name": "用户名",
"user_nick": "昵称",
"user_url": "https://weibo.com/xxxx",
"user_avatar": "https://…jpg",
"publish_time": "5分钟前",
"post_url": "https://weibo.com/…",
"source": "iPhone客户端",
"weibo_type": "original|repost",
"content": "正文文本 …",
"media": {
"has_image": true,
"has_video": true,
"images": ["https://…/large/xxx.jpg"],
"videos": [
{
"type": "video",
"poster": "https://…jpg",
"src": "https://video.weibocdn.com/…mp4",
"streams": ["https://video.weibocdn.com/…mp4", "…"],
"duration": "00:12",
"page_url": "https://weibo.com/tv/show/…",
"fid": "1034:xxxxx"
}
]
},
"interaction": {
"repost_count": 12,
"comment_count": 34,
"like_count": 256
}
}
],
"result_count": 20,
"pagination": {
"current_page": 1,
"total_pages": 50,
"has_next_page": true,
"next_page_url": "/weibo?q=…&page=2"
},
"search_stats": {
"search_stats": "共找到约xxx条结果",
"filter_type": "综合|实时|热门…"
},
"parse_success": true
}
}
}
Authorization: Bearer ********************curl --location --request GET 'https://api.tikhub.io/api/v1/weibo/web_v2/fetch_realtime_search?query=yu7&page=1' \
--header 'Authorization: Bearer <token>'{
"code": 200,
"request_id": "string",
"message": "Request successful. This request will incur a charge.",
"message_zh": "请求成功,本次请求将被计费。",
"support": "Discord: https://discord.gg/aMEAS8Xsvz",
"time": "string",
"time_stamp": 0,
"time_zone": "America/Los_Angeles",
"docs": "string",
"cache_message": "string",
"cache_message_zh": "string",
"cache_url": "string",
"router": "",
"params": {},
"data": null
}