# 微博 视频详情 API (weibo.video)

- Canonical page: [https://everyinfra.com/weibo-api/video](https://everyinfra.com/weibo-api/video?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "weibo", "action": "video", "params": {...}}
- Price: $0.000792 per call ($0.79 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- 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=video

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | 一条视频微博：微博链接（https://m.weibo.cn/detail/<微博ID>、https://weibo.com/<用户UID>/<微博ID 或字母短码>）、数字微博 ID、视频链接（https://weibo.com/tv/show/1034:<数字>），或 1034: 开头的视频编号。认不出的格式返回 422，不扣费。 |

## 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）。 |
| title | 标题，意思看能力：trending 是热搜词，topic_search 是话题名，video 是视频标题（只在按视频链接或视频编号查时有），video_collections 是合集名，trending_boards 是榜单的中文名。 |
| video_qualities | 视频各清晰度的地址（video，只在按视频链接或视频编号查时有）：数组，每项 {quality, url}，quality 是微博给的清晰度名字（如「高清 1080P」「标清 480P」）；video_url 是其中最清晰的一个。地址有时效，过期要重新调接口；下载时请求头带 Referer: https://weibo.com/。 |
| 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": "video",
  "params": {
    "url": "https://weibo.com/1659899634/5326504200510190"
  }
}'
```

```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": "video",
        "params": {
            "url": "https://weibo.com/1659899634/5326504200510190",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "weibo",
  "action": "video",
  "results": {
    "id": …,
    "url": …,
    "video_id": …,
    "text": …,
    "posted_at": …,
    "play_count": …,
    "like_count": …,
    "comment_count": …,
    "repost_count": …,
    "duration_sec": …,
    "duration_seconds": …,
    "video_url": …,
    "cover_image_url": …,
    "hashtags": …,
    "author_id": …,
    "author_name": …,
    "author_verified": …,
    "author_avatar_url": …,
    "platform": …,
    "title": …,
    "video_qualities": …,
    "author_follower_count": …
  },
  "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
