# Youku Video details API (youku.video)

- Canonical page: [https://everyinfra.com/en/youku-api/video](https://everyinfra.com/en/youku-api/video?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "youku", "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=youku&action=video

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| id | not declared | yes | not declared | The show ID (showId) or video ID (vid) required by the video action, extractable from search results or video page URLs matching id_...html. Encoded UGC IDs differ from series hashes; prefer UGC IDs. This parameter is not an author UID. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| show_id | platform-native meaning |
| url | Link to the record on the platform. |
| title | Title. null when the platform has no titles (for example text-only posts). |
| show_name | platform-native meaning |
| subtitle | platform-native meaning |
| category | Category name in the platform's own taxonomy, not normalized across platforms. |
| video_type | platform-native meaning |
| duration_seconds | Duration in seconds. null for content that is not video or audio. |
| duration_sec | platform-native meaning |
| episode_total | platform-native meaning |
| episode_last | platform-native meaning |
| is_completed | platform-native meaning |
| comment_count | Comments. null means not disclosed, not 0. |
| like_count | Likes. null means the platform or this capability does not disclose it; it is not 0. |
| is_vip | platform-native meaning |
| allow_comment | platform-native meaning |
| posted_at | Publish time in ISO 8601, UTC (for example 2026-08-07T12:34:56+00:00). Non-standard strings from the platform are passed through as is, so parse defensively. null means the platform does not disclose it. |
| show_release_time | platform-native meaning |
| thumbnail_url | Thumbnail link, lower resolution than image_url. |
| tags | Array of tags. An empty array, not null, when there are none. |
| author_id | Author's unique ID on the platform. |
| author_name | Author's display name. |
| author_avatar_url | platform-native meaning |
| author_follower_count | Author's follower count. null means not disclosed. |
| author_url | Link to the author's profile on the platform. |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## 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": "youku",
  "action": "video",
  "params": {
    "id": "dedc76345e0843deb992"
  }
}'
```

```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": "youku",
        "action": "video",
        "params": {
            "id": "dedc76345e0843deb992",
        },
    },
    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": "youku",
  "action": "video",
  "results": {
    "id": "XNjU0MDQ4ODMzMg==",
    "show_id": "dedc76345e0843deb992",
    "url": "https://v.youku.com/v_show/id_XNjU0MDQ4ODMzMg==.html",
    "title": "寒战1994",
    "show_name": "寒战1994",
    "subtitle": "警界暗战四方势力博弈",
    "category": "电影",
    "video_type": "正片",
    "duration_seconds": 7037,
    "episode_total": 1,
    "episode_last": 1,
    "is_completed": true,
    "comment_count": 972,
    "like_count": 53,
    "is_vip": true,
    "allow_comment": true,
    "posted_at": "2026-07-24T09:41:29+00:00",
    "show_release_time": "2026-07-24T10:00:00+00:00",
    "thumbnail_url": "http://m.ykimg.com/053500006A601EF5140C6E0C371971C9",
    "author_id": "•••",
    "author_url": "https://m.youku.com/•••",
    "platform": "youku"
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

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