# 爱奇艺 视频详情 API (iqiyi.video)

- Canonical page: [https://everyinfra.com/iqiyi-api/video](https://everyinfra.com/iqiyi-api/video?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "iqiyi", "action": "video", "params": {...}}
- Price: $0.001389 per call ($1.39 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=iqiyi&action=video

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | 爱奇艺 v_*.html 视频播放页完整链接，用于读取单条视频详情；不接受 a_*.html 专辑页或创作者主页。 |
| scrape_additional_info | not declared | no | not declared | 是否为目标爱奇艺视频读取额外上传者与互动信息，传 JSON 布尔值，默认 true。false 会关闭这部分读取，但不改变 EveryInfra API 单价。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| url | 该记录在原平台上的可访问链接。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| category | 分类名称，取值为原平台的分类体系，未做跨平台归一。 |
| category_id | 分类 ID。 |
| duration_seconds | 时长，单位秒。非视频/音频内容为 null。 |
| duration_sec | platform-native meaning |
| heat_count | 爱奇艺热度值。**平台自有指标不是播放量**，跨平台不可比。 |
| rating | 评分。**分制随平台而异**，同一行的 `rating_scale` 给出该平台满分 (多数是 5，Booking/豆瓣/爱奇艺/NAVER 是 10)。跨平台比较前必须先按 rating_scale 换算。直接比数字会得出反的结论。 |
| rating_scale | 上一列 `rating` 的满分。5 表示五星制、10 表示十分制。只在该行有 rating 时出现。 |
| rating_count | 参与评分的人数。null 表示不公开，不等于 0。 |
| like_count | 点赞数。null 表示该平台或该接口不公开此数据，不等于 0。 |
| comment_count | 评论数。null 表示不公开，不等于 0。 |
| collect_count | 收藏数。null 表示不公开，不等于 0。 |
| album_id | 剧集/专辑 ID。爱奇艺把一部剧叫「专辑」，单集是其下的视频。 |
| album_title | 剧集名称。 |
| album_url | 剧集链接。 |
| album_episode_count | 总集数。 |
| image_url | 图片链接。多图能力可能返回 image_urls 数组。 |
| wide_image_url | 横版海报。 |
| author_name | 作者昵称（显示名）。 |
| author_id | 作者在原平台的唯一 ID。 |
| author_avatar_url | 上传者头像（search / video）。 |
| author_follower_count | 作者粉丝数。null 表示不公开。 |
| author_video_count | 作者发布视频数。 |
| author_location | 上传者所在地，按页面原文（search / video）。 |
| author_org | 认证机构名（机构号用）。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |
| cast | 演员表。 |

## 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": "iqiyi",
  "action": "video",
  "params": {
    "url": "http://www.iqiyi.com/v_12vxqf0wkkw.html"
  }
}'
```

```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": "iqiyi",
        "action": "video",
        "params": {
            "url": "http://www.iqiyi.com/v_12vxqf0wkkw.html",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "iqiyi",
  "action": "video",
  "results": {
    "id": "•••",
    "url": "https://www.iqiyi.com/v_12vxqf0wkkw.html",
    "title": "风与潮第1集",
    "text": "《风与潮》首次将镜头聚焦于二战时期“孤岛”澳门波谲云诡的金融、贸易暗战，以爱国商人何贤、马万祺、中共地下党员柯麟兄弟等人物的传奇经历为原型，书写一代青年在颠沛中逆风而战，闯出一片生机的故事，致敬每一个在时代变局中坚守的中国人。",
    "category": "电视剧",
    "category_id": 2,
    "heat_count": 1514,
    "rating": 8.2,
    "rating_count": 59101,
    "like_count": 6044,
    "comment_count": 197613,
    "collect_count": 0,
    "album_id": "•••",
    "album_title": "风与潮",
    "album_url": "https://www.iqiyi.com/a_alcou1by21.html",
    "album_episode_count": 31,
    "image_url": "https://pic2.iqiyipic.com/image/20251204/ef/aa/a_100610350_m_601_m4_579_772.jpg",
    "wide_image_url": "https://pic2.iqiyipic.com/image/20251204/ef/aa/a_100610350_m_601_m4_480_270.jpg",
    "posted_at": "2026-09-14T12:36:00+00:00",
    "platform": "iqiyi",
    "cast": [
      {
        "name": "任嘉伦",
        "role": "何贤"
      },
      {
        "name": "蓝盈莹",
        "role": "乔音婉"
      },
      {
        "name": "李纯",
        "role": "郭绮文"
      }
    ],
    "rating_scale": 10
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

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