微博 用户发布帖子
检索由UID标识的微博用户发布的帖子,使用页码和第一页后必需的sinceId游标。用于浏览账号的发布历史或继续翻阅帖子feed。
/v1/weibo/get_user_post_v1
$0.02
- 价格
- $0.02 / 次成功调用,失败不收费
- 接口 ID
weibo.get_user_post_v1
参数
-
uidstring 必填微博用户ID (UID)。
示例
2803301701 -
pageinteger 可选页码,从1开始。
示例
1 -
since_idstring 可选分页游标(since_id)。当 page > 1 时必须提供。
代码示例
curl -G "https://api.mofa-ai.com/v1/weibo/get_user_post_v1" \
-H "Authorization: Bearer $MOFA_API_KEY" \
--data-urlencode 'uid=2803301701' \
--data-urlencode 'page=1'
import os
import requests
resp = requests.get(
"https://api.mofa-ai.com/v1/weibo/get_user_post_v1",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
params={
"uid": "2803301701",
"page": "1",
},
timeout=60,
)
body = resp.json()
if body["success"]:
print(body["cost_usd"], body["data"])
else:
print(body["error"], body["message"])
const url = new URL("https://api.mofa-ai.com/v1/weibo/get_user_post_v1");
url.search = new URLSearchParams({
uid: "2803301701",
page: "1",
});
const resp = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.MOFA_API_KEY}` },
});
const body = await resp.json();
if (body.success) console.log(body.cost_usd, body.data);
else console.error(body.error, body.message);
响应示例
请求参数 {"uid": "2803301701", "page": "1"}
{
"success": true,
"code": 0,
"message": "success",
"request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
"endpoint": "weibo.get_user_post_v1",
"cost_usd": 0.02,
"data": {
"code": 0,
"data": {
"ok": 1,
"data": {
"list": [
{
"id": 5362885832478378,
"mid": "5362885832478378",
"rid": "0_0_50_5044554228642775018_0_0_0",
"…": "+9",
"user": {
"id": 2803301701,
"idstr": "2803301701",
"domain": "rmrb",
"mbrank": 4,
"mbtype": 12,
"pc_new": 7,
"v_plus": 0,
"weihao": "",
"verified": true,
"avatar_hd": "https://tvax4.sinaimg.cn/crop.0.0.1018.1018.1024/0033ImPzly8h8vgemh8kxj60sa0sadgw02.jpg?KID=imgbed,tva&Expires=179410668…",
"follow_me": false,
"following": false,
"icon_list": [
{
"data": {
"svip": 1,
"vvip": 1,
"mbrank": 4,
"mbtype": 12
},
"type": "vip"
}
],
"profile_url": "/u/2803301701",
"screen_name": "人民日报",
"avatar_large": "https://tvax4.sinaimg.cn/crop.0.0.1018.1018.180/0033ImPzly8h8vgemh8kxj60sa0sadgw02.jpg?KID=imgbed,tva&Expires=1794106681…",
"planet_video": false,
"user_ability": -2135620852,
"verified_type": 3,
"profile_image_url": "https://tvax4.sinaimg.cn/crop.0.0.1018.1018.50/0033ImPzly8h8vgemh8kxj60sa0sadgw02.jpg?KID=imgbed,tva&Expires=1794106681&…",
"verified_type_ext": 53,
"status_total_counter": {
"like_cnt": "2,533,304,102",
"total_cnt": "4,006,696,389",
"repost_cnt": "1,196,060,584",
"comment_cnt": "277,331,703",
"total_cnt_format": "40.07亿"
}
},
"idstr": "5362885832478378",
"cardid": "star_1624",
"mlevel": 0,
"rcList": [],
"source": "微博视频号",
"is_paid": false,
"mblogid": "RqnWLaoJQ",
"pic_ids": [],
"pic_num": 0,
"visible": {
"type": 0,
"list_id": 0
},
"can_edit": false,
"favorited": false,
"mblogtype": 0,
"created_at": "Sun Nov 08 07:44:43 +0800 2026",
"isLongText": false,
"pic_bg_new": "http://vip.storage.weibo.com/feed_cover/star_1624_mobile_new.png?version=2026090701",
"textLength": 120,
"url_struct": [
{
"ttl": 3600,
"hide": 0,
"result": false,
"ori_url": "sinaweibo://video/vvs?mid=5362885832478378&object_id=1034:5362885661229089&url_type=39&object_type=video&pos=1",
"page_id": "2304445362885661229089",
"long_url": "https://video.weibo.com/show?fid=1034:5362885661229089",
"url_type": 39,
"actionlog": {
"ext": "mid:5362885832478378|rid:0_0_50_5044554228642775018_0_0_0|short_url:http://t.cn/AXYxpTeu|long_url:https://video.weibo.co…",
"fid": "1076032803301701_-_WEIBO_SECOND_PROFILE_WEIBO",
"oid": "1034:5362885661229089",
"lfid": "",
"uuid": 5362885676237488,
"cardid": "",
"uicode": "",
"lcardid": "",
"luicode": "",
"act_code": 300,
"act_type": 1
},
"short_url": "http://t.cn/AXYxpTeu",
"url_title": "人民日报的微博视频",
"object_type": "",
"storage_type": "oss",
"url_type_pic": "https://h5.sinaimg.cn/upload/2015/09/25/3/timeline_card_small_video.png",
"h5_target_url": "https://video.weibo.com/show?fid=1034:5362885661229089&from=1FFFF96039&weiboauthoruid=2803301701",
"need_save_obj": 0
}
],
"annotations": [
[],
"… +2"
],
"content_auth": 0,
"readtimetype": "mblog",
"topic_struct": [
{
"title": "",
"actionlog": {
"ext": "mid:5362885832478378|rid:0_0_50_5044554228642775018_0_0_0|short_url:|long_url:|comment_id:|miduid:2803301701|rootmid:536…",
"fid": "1076032803301701_-_WEIBO_SECOND_PROFILE_WEIBO",
"oid": "1022:231522eab19b441be06c01f9ecb69c85fa5d1b",
"lfid": "",
"uuid": 4213269857324520,
"cardid": "",
"uicode": "",
"lcardid": "",
"luicode": "",
"act_code": 300,
"act_type": 1
},
"topic_url": "sinaweibo://searchall?containerid=231522&q=%23%E6%97%A9%E5%AE%89%E6%88%91%E7%9A%84%E4%B8%AD%E5%9B%BD%23",
"topic_title": "早安我的中国"
}
],
"reposts_count": 44,
"analysis_extra": "follow:0",
"comments_count": 150,
"mblog_vip_type": 0,
"showFeedRepost": false,
"attitudes_count": 170,
"showFeedComment": false,
"attitudes_status": 0,
"is_show_bulletin": 2,
"pictureViewerSign": false,
"share_repost_type": 0,
"showPictureViewer": false,
"comment_manage_info": {
"comment_anon_type": 0,
"comment_sort_type": 0,
"approval_comment_type": 0,
"comment_permission_type": -1
},
"number_display_strategy": {
"display_text": "100万+",
"apply_scenario_flag": 51,
"display_text_min_number": 1000000
}
},
"… +19"
],
"total": 155076,
"since_id": "5362641356457049kp2",
"topicList": [],
"status_visible": 0,
"bottom_tips_text": "",
"bottom_tips_visible": false
}
},
"message": null,
"requestId": "dce31516decb412c9eb98be3222976dc",
"recordTime": "2026-11-08T07:58:01.701047455",
"requestParams": {
"body": null,
"query": {
"uid": "2803301701",
"page": "1"
}
}
}
}
在线试用
登录后可以在这里直接调用此接口,按价格从余额扣费,失败不收费。新账户赠送 $0.50 试用额度。
微博的其他接口
-
关键词搜索
$0.02通过关键词在所需的小时日时间范围内搜索微博帖子,支持基于页码的分页、热门或时间排序,以及图片、视频、音乐或链接的筛选。用于查找有时间限制的帖子,以进行话题研究或监控。
/v1/weibo/search_all_v2
-
帖子详情
$0.02检索通过帖子ID标识的微博帖子详情。用于查找已知帖子,以进行内容审查、存档或相关互动分析。
/v1/weibo/get_weibo_detail_v1
-
用户资料
$0.02检索通过UID标识的微博用户资料。用于查找已知账号,以进行创作者研究、资料审查或后续检索该用户的帖子和视频。
/v1/weibo/get_user_detail_v3
-
用户粉丝
$0.02检索由UID标识的微博用户的粉丝账号页面。用于浏览该账号的粉丝受众或继续翻阅粉丝列表。
/v1/weibo/get_fans_v1
-
用户关注者
$0.02检索由UID标识的微博用户关注的账号页面。用于检查该账号的关注网络或继续翻阅关注列表。
/v1/weibo/get_followers_v1
-
用户视频列表
$0.02检索由UID标识的微博用户的视频瀑布流,可使用先前响应中的可选游标。用于浏览已知账号发布的视频或继续翻阅视频feed。
/v1/weibo/get_user_video_list_v1
-
电视视频详情
$0.02检索由冒号分隔的对象ID (OID) 标识的微博TV视频详情。用于查找已知的TV视频以进行内容审核、编目或后续处理。
/v1/weibo/tv_component_v1
-
热搜
$0.02检索当前的微博热搜排名。用于识别热门话题以进行新闻监测、内容规划或及时话题发现。
/v1/weibo/hot_search_v1
-
帖子评论
$0.02检索由MID标识的微博帖子的评论,支持可选的maxId游标分页以及时间或热度排序。用于查看受众讨论、继续翻阅评论区或支持审核和反馈分析。
/v1/weibo/get_post_comments_v1
-
搜索用户发布帖子
$0.02搜索特定微博用户发布的帖子,使用关键词、可选的日期范围和基于页面的分页。用于从已知账号查找历史帖子以进行话题研究或活动回顾。
/v1/weibo/search_profile_v1