接口健康状态
- 24h 健康值
- 正常
- 健康 / 正常
- 可用
24 小时趋势
30 天趋势
粉丝列表:返回列表;主要字段 user_id、display_name、url、bio、avatar_url、follower_count。
请求发到 POST https://api.everyinfra.com/api/v1/social,platform 填 weibo,action 填 followers_list。 单价 $0.79 / 千次(每次 $0.000792),失败和空结果都不收费。 同步返回;慢任务可在请求体加 "mode": "async",先拿 job_id 再轮询。
AI 提示词
#请帮我用 EveryInfra 的「微博粉丝列表」接口(weibo/followers_list)写一个数据采集脚本。
接口约定:
- 请求:POST https://api.everyinfra.com/api/v1/social,请求头 Authorization: Bearer <API Key>;Key 从环境变量 EVERYINFRA_API_KEY 读取,不要写进代码。
- 请求体里 platform 填 weibo,action 填 followers_list,参数放在 params 里。
- 必填参数:
- user_id:微博数字 UID,也可传含 /u/数字UID 的主页链接;不收昵称(先用 user_search 按昵称找到 user_id)。传别的返回 422,不扣费。返回最近关注这个用户的人。
- 可选参数:
- limit:这次调用最多返回的条数,整数,至少为 1;不传按默认值,实际返回可能少于这个数。
- 返回一组记录,每条记录的主要字段:user_id、display_name、url、bio、avatar_url、follower_count、following_count、post_count(这个用户发过的微博数(likers…)、is_verified、verified_type(认证类型(likers、follo…)、verified_reason(认证说明)、gender(性别);一共 13 个字段,完整列表见 https://api.everyinfra.com/api/v1/social/catalog?platform=weibo。
- 示例请求体:
{
"platform": "weibo",
"action": "followers_list",
"params": {
"user_id": "1749127163"
}
}
- 计费:$0.79 / 千次;失败和空结果不扣费。
- 一次要采几十上百个时,在请求体加 "mode": "async":先拿到 job_id,再轮询 GET https://api.everyinfra.com/api/v1/jobs/{job_id} 取结果。
- 返回 422 时,按错误信息里的候选参数和允许值修正;返回 429 或 503 时,按 Retry-After 等待后重试。
写代码前,先问清楚我要采哪些对象、一共多少个、需要哪些字段、结果存成什么格式,再把方案和大概花费讲给我确认。请求参数
#| 参数名 | 位置 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|---|
Authorization | header | string | 是 | - | Bearer 加你的 API Key。在控制台创建;不要放进网址或代码仓库。 |
platform | body | string | 是 | weibo | 平台标识,固定值。 |
action | body | string | 是 | followers_list | 能力标识,固定值。 |
user_id | body.params | string | 是 | - | 微博数字 UID,也可传含 /u/数字UID 的主页链接;不收昵称(先用 user_search 按昵称找到 user_id)。传别的返回 422,不扣费。返回最近关注这个用户的人;微博对未登录访客只显示第一页,约 20 人,一次返回,不翻页,不收 limit。粉丝总数用 profile 的 follower_count。 |
limit | body.params | integer (1–) | 否 | - | 这次调用最多返回的条数,整数,至少为 1;不传按默认值,实际返回可能少于这个数。 |
代码示例
#curl -X POST 'https://api.everyinfra.com/api/v1/social' \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"platform": "weibo",
"action": "followers_list",
"params": {
"user_id": "1749127163"
}
}'OpenAPI 定义 (JSON)示例从环境变量 EVERYINFRA_API_KEY 读取 Key,复制出去的代码不含你的 Key。
响应示例
#{ "id": "req_…", "platform": "weibo", "action": "followers_list", "results": [ { "user_id": …, "display_name": …, "url": …, "bio": …, "avatar_url": …, "follower_count": …, "following_count": …, "post_count": …, "is_verified": …, "verified_type": …, "verified_reason": …, "gender": …, "location": …, "platform": … } ], "count": …, "billing": { "charged": …, "charged_usd": …, "balance_after_usd": …, … }, "quota": { … }}
返回字段
#业务数据在 results 里;下表是每条记录可能包含的字段,平台没有提供的值不会被编造。
| 字段 | 含义 |
|---|---|
user_id | 用户在原平台的唯一 ID。 |
display_name | 显示名,可能与 username 不同。 |
url | 该记录在原平台上的可访问链接。 |
bio | 个人简介,账号自己填写的文本。可能含换行和 emoji。 |
avatar_url | 头像图片链接。部分平台给的是带尺寸参数的 CDN 链接,可能有时效。 |
follower_count | 粉丝数。null 表示不公开,不等于 0。 |
following_count | 关注数。null 表示不公开,不等于 0。 |
post_count | 这个用户发过的微博数(likers、following_list、followers_list)。 |
is_verified | 是否为平台认证账号(蓝V等)。null 表示无法判定。 |
verified_type | 认证类型(likers、following_list、followers_list):微博给的认证种类,没认证时没有。 |
verified_reason | 认证说明。 |
gender | 性别。likers、user_about、following_list、followers_list 是 male 或 female,用户没公开时没有。 |
location | 所在地(likers、user_about):用户自己填的地区。 |
platform | 数据来源平台标识,与请求里的 platform 一致(如 xiaohongshu、tiktok)。 |
错误与计费
#- 401
- 缺少 Key 或 Key 无效。
- 402
- 余额不足,先充值。
- 422
- 参数名或取值不对,按错误信息给的候选改;不扣费。
- 429
- 超过每分钟请求上限,按 Retry-After 等待后再试。
- 503
- 暂时无法完成,预扣的费用退回;结果未知时先核对,不要直接重发。
- 200 空结果
- 没有数据,不扣费。
官方资料参照
#只用于核对对象与术语,不表示平台对 EveryInfra 的授权或背书。
- 微博开放平台:按 uid 或 screen_name 返回一个用户的粉丝列表(friendships/followers) ↗
微博开放平台的 friendships/followers(标题「获取用户的粉丝列表」)按 uid 或 screen_name 返回一个用户的粉丝列表,返回 users 数组和 next_cursor、previous_cursor、total_number,每个用户带 id、screen_name、description、profile_image_url、gender、followers_count、friends_count、statuses_count、verified、verified_reason 等字段,分别对应本接口的 user_id、display_name、bio、avatar_url、gender、follower_count、following_count、post_count、is_verified、verified_reason。这里只核对「一个用户的粉丝列表」这个对象和这些字段的含义;官方接口要登录授权,接口升级后 uid 与 screen_name 只能是当前授权用户,只返回同样授权了该应用的用户,count 默认 5、最大不超过 5,不证明本接口能查任意公开账号、每次返回多少人或有没有下一页。
核对于 2026-11-22