微博 能力清单
| action | 必填参数 | 可选参数 | 单次条数 | 模式 | 单价 / 次 | 返回字段 |
|---|---|---|---|---|---|---|
| search | keyword | — | 默认 20 · 最多 50 | 同步 | ¥0.004 | id · url · text · posted_at · device · repost_count · comment_count · like_count · is_repost · author_id · author_name · author_bio · author_follower_count · author_following_count · author_verified · author_verified_reason · author_avatar_url · image_urls · video_url · platform |
| profile | user_id | — | — | 同步 | ¥0.004 | user_id · display_name · url · bio · gender · follower_count · following_count · post_count · is_verified · verified_reason · avatar_url · cover_image_url · company · created_at · platform |
| comments | url | — | 默认 20 · 最多 50 | 同步 | ¥0.004 | id · text · like_count · author_id · author_name · author_avatar_url · post_id · post_url · posted_at · platform |
| trending | — | — | 默认 20 · 最多 200 | 同步 | ¥0.004 | rank · title · category · hot_value · label · is_hot · is_new · url · platform |
返回字段含义
字段名跨 87 个平台统一,同一个键在哪个平台都是同一个意思—— 这也是换平台只需改 platform 一个字段的原因。 机器可读版:/api/v1/social/fields
- id
- 该记录在原平台上的唯一标识。仅在同一平台内唯一,跨平台可能重复。
- url
- 该记录在原平台上的可访问链接。
- text
- 正文内容,已去除 HTML 标签。长文可能被上游截断。
- posted_at
- 发布时间,ISO 8601 格式、UTC 时区(如 2026-08-07T12:34:56+00:00)。上游只给非标准字符串时原样透传,解析前建议做容错。null 表示平台未公开。
- repost_count
- 转发数(区别于引用转发)。null 表示不公开。
- comment_count
- 评论数。null 表示不公开,不等于 0。
- like_count
- 点赞数。null 表示该平台或该接口不公开此数据,不等于 0。
- author_id
- 作者在原平台的唯一 ID。
- author_name
- 作者昵称(显示名)。
- author_follower_count
- 作者粉丝数。null 表示不公开。
- platform
- 数据来源平台标识,与请求里的 platform 一致(如 xiaohongshu、tiktok)。
- user_id
- 用户在原平台的唯一 ID。
- display_name
- 显示名,可能与 username 不同。
- bio
- 个人简介,账号自己填写的文本。可能含换行和 emoji。
- follower_count
- 粉丝数。null 表示不公开,不等于 0。
- following_count
- 关注数。null 表示不公开,不等于 0。
- post_count
- 发布内容总数。null 表示不公开,不等于 0。
- is_verified
- 是否为平台认证账号(蓝V等)。null 表示无法判定。
- avatar_url
- 头像图片链接。部分平台给的是带尺寸参数的 CDN 链接,可能有时效。
- created_at
- 创建时间,格式同 posted_at。
- title
- 标题。平台无标题概念时(如纯文本帖)为 null。
- category
- 分类名称,取值为原平台的分类体系,未做跨平台归一。
另有 微博 特有字段 device · is_repost · author_bio · author_following_count · author_verified · author_verified_reason · author_avatar_url · image_urls · video_url · gender · verified_reason · cover_image_url · company · post_id · post_url · rank · hot_value · label · is_hot · is_new,保留该平台自身的语义。
30 秒调用示例
curl -X POST https://api.everyinfra.com/api/v1/social \ -H "Authorization: Bearer omg_live_你的KEY" \ -H "Content-Type: application/json" \ -d '{"platform":"weibo","action":"search","params":{"keyword":"咖啡"}}'
返回长这样
{ "id": "weibo_…", "search": [ { "id": "…", "url": "https://…", "text": "…", "posted_at": "2026-08-01T09:30:00Z", "device": "…", "repost_count": 128, "comment_count": 128, "like_count": 128, "is_repost": true, "author_id": "…", "author_name": "…", "author_bio": "…", "author_follower_count": 128, "author_following_count": 128, "author_verified": "…", "author_verified_reason": "…", "author_avatar_url": "https://…", "image_urls": "…", "video_url": "https://…", "platform": "weibo" } ], "count": 20, "billing": { "charged": true, "credits": 40, "cny": 0.004 }}
常见用例
关键词监控
按关键词轮询 微博 的新内容,配合 Gemini 文本 API 做情绪分类与异常波动告警。
评论洞察 / 截流
抓 微博 的评论区做用户真实反馈分析,或识别高意向留言做互动。
账号与主体画像
按 微博 的主页数据建达人/商家档案,做投放筛选或竞品盯防。
热点发现
盯 微博 的榜单与热门内容,抢先做选题与投放决策。
微博 API 常见问题
微博 API 怎么调用?
统一入口 POST /api/v1/social,请求体传 platform="weibo"、action(见上方能力清单)和 params。鉴权用请求头 Authorization: Bearer <API Key>,同一把 Key 可以调用全部 87 个平台,不需要为每个平台单独申请。
微博 API 怎么收费?
按次计费,¥0.004/次,从统一的 ¥ 钱包扣。一次调用一次计费,不按返回条数或页数加价;参数错误、鉴权失败和空结果都不计费。每次调用的响应里带 billing 字段,写明本次实扣多少。
微博 API 一次能返回多少条数据?
按能力不同,单次最多 200 条(逐能力上限见上方清单的「单次条数」列)。传 limit 参数控制,不传则用默认值。一次调用就返回这么多条,不需要翻页、也不会因为条数多而多收钱。
微博 API 返回哪些字段?
每个能力的返回字段都列在上方能力清单的「返回字段」列里,例如 search 返回 id、url、text、posted_at、device、repost_count 等。字段名跨平台统一,换平台不用改解析代码。
可以先免费试用 微博 API 吗?
可以。注册免费,加微信领邀请码可得 ¥5 免费额度(≈500 次数据调用或 400 次 AI 调用),足够把 微博 的 4 个能力都试一遍。无需信用卡。
开始调用 微博 API
加微信领 ¥5 免费额度 —— ≈500 次数据调用或 400 次 AI 调用,足够把 微博 的能力全试一遍。