# 微博 推荐流 API (weibo.feed)

- Canonical page: [https://everyinfra.com/weibo-api/feed](https://everyinfra.com/weibo-api/feed?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "weibo", "action": "feed", "params": {...}}
- Price: $0.000792 per call ($0.79 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, one page of up to 10 per call; the number of rows varies from page to page and a short page is not the end (limit is ignored; pass the top-level next_page_token from the response as page_token for the next page; no next_page_token means the end)
- Pagination: pass next_page_token back as page_token for the next page, other params unchanged; one call per page, tokens last 24 hours
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=weibo&action=feed

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| channel_id | not declared | no | not declared | 频道，可选：feed_channels 返回行的 channel_id；不传是「热门」频道。写了认不出的值返回 422，不扣费。 |
| page_token | not declared | no | not declared | 翻页令牌。第一页不传；之后把上一页响应里的 next_page_token 原样传回取下一页，其余参数不变。每页约 10 条，每页算一次调用；limit 不起作用。推荐流是微博每次现推的，往下翻可能和前面有重复。令牌 24 小时内有效。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| url | 该记录在原平台上的可访问链接。 |
| video_id | 视频编号（video、collection_videos、video_feed）。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| play_count | 视频播放数（video、collection_videos、video_feed）。collection_videos 和按微博链接或微博 ID 查的 video 是准确数；video 按视频链接或视频编号查时、video_feed 里是约数（微博显示「13.8万」这类，换成了数字）。不是 view_count（微博阅读数）。 |
| like_count | 点赞数。null 表示该平台或该接口不公开此数据，不等于 0。 |
| comment_count | 评论数。null 表示不公开，不等于 0。 |
| repost_count | 转发数（区别于引用转发）。null 表示不公开。 |
| duration_sec | 视频时长（秒；post_detail、user_posts、video、collection_videos、video_feed 的视频微博）。 |
| duration_seconds | 时长，单位秒。非视频/音频内容为 null。 |
| video_url | 视频链接；不是视频微博时没有。 |
| cover_image_url | 封面图。 |
| hashtags | 正文里的话题标签数组，按出现顺序；没有时不出现这个字段。 |
| author_id | 作者在原平台的唯一 ID。 |
| author_name | 作者昵称（显示名）。 |
| author_verified | 作者是否加 V。search 部分请求不返回。 |
| author_avatar_url | 作者头像。search 部分请求不返回。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |
| image_urls | 图片列表；不带图的微博没有。 |
| device | 发布设备（如「iPhone客户端」）。 |
| ip_location | 发布时的 IP 属地（comment_replies），如「来自 广东」；微博没显示时没有。 |
| view_count | 阅读数（post_detail）：微博显示的这条微博被阅读的次数；多数微博不显示阅读数，这时没有这个字段；user_posts 的列表回包里没有。 |
| is_long_text | 是不是长微博（post_detail / user_posts）。user_posts 上长微博的 text 只有开头一段（约 140 字）。 |
| is_repost | 是否为转发。 |
| original_post_id | 转发微博时，被转发的原微博 ID（post_detail / user_posts）；可作为 post_detail 的 url 传入读原微博。不是转发时没有这个键。 |
| author_follower_count | 作者粉丝数。search、user_posts 部分请求不返回。video 只在按视频链接或视频编号查时有，是约数。 |

## Example

```bash
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": "feed",
  "params": {}
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "weibo",
        "action": "feed",
        "params": {},
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-11-21T07:23:43Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 10. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "weibo",
  "action": "feed",
  "results": [
    {
      "id": "•••",
      "url": "https://m.weibo.cn/detail/5367627612426366",
      "video_id": "5367627309318196",
      "text": "#孙芮属于军婚#原SNH48成员、连续两年总选第一的孙芮结婚怀孕，看配文和图片 老公应该是军人，孙芮属于军婚，以后就是军嫂啦！祝她幸福 http://t.cn/AXTIs4Xc",
      "posted_at": "2026-11-21T01:46:51+00:00",
      "play_count": 1704709,
      "like_count": 2757,
      "comment_count": 122,
      "repost_count": 92,
      "duration_sec": 71,
      "video_url": "https://f.video.weibocdn.com/o0/Y2VTLOwalx08CxfbCgyI01041200yVfL0E010.mp4?label=mp4_720p&template=720x1280.24.0&ori=0&ps=1BVp4ysnknHVZu&Expires=1795249428&ssig=CRTwfnp5sa&KID=unistore,video",
      "cover_image_url": "https://wx4.sinaimg.cn/orj480/006zYhaMly1ij9klyvmqdj30mh0u0jts.jpg",
      "hashtags": [
        "孙芮属于军婚"
      ],
      "author_id": "•••",
      "author_name": "庄•••碟",
      "author_verified": true,
      "author_avatar_url": "https://tvax2.sinaimg.cn/•••",
      "platform": "weibo",
      "device": "微博视频号",
      "ip_location": "•••",
      "duration_seconds": 71
    },
    {
      "id": "•••",
      "url": "https://m.weibo.cn/detail/5367649437487477",
      "text": "GTA6在荒野大镖客2之后又一次满足了我想在游戏里过日子的需求，游戏里打车在后座刷了一路游戏里的手机还觉得有意思这件事感觉是目前独一份了",
      "posted_at": "2026-11-21T03:13:35+00:00",
      "like_count": 765,
      "comment_count": 64,
      "repost_count": 8,
      "author_id": "•••",
      "author_name": "管•••元",
      "author_verified": true,
      "author_avatar_url": "https://tvax1.sinaimg.cn/•••",
      "platform": "weibo",
      "ip_location": "•••"
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "count": 10,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=weibo
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
