# /iqiyi/albums/videos

`POST /api/iqiyi/albums/videos`

Price: 10 credits

List the episodes of an iQIYI album in broadcast order. Each item is a video with its episode order, title, runtime in seconds, publication date, VIP and exclusivity flags, artwork and the parent album.

## How to use it

This is the ordered episode list of a series, and the way to turn an album into playable video ids. start_order is the episode number to begin at, so start_order=25 returns episode 25 first whatever the album's numbering; with count it selects a window. Trust the length of this list over an album record's `episode_count` and `available_episode_count`, which both overstate what actually exists on some kids and anime titles. Only a title that has an episode list answers here: a film, and any album whose `available_episode_count` is 0, return 412 in every market. So does a start_order past the last episode, and an album the requested `market` has no licence for. Rows are episode records rather than full catalogue records — no `cast` and no region list; fetch /iqiyi/albums for those.

## Parameters

- `access-token` (string, required)

## Request body

- `timeout` (integer) — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)
- `lang` (string) — Language of the titles, synopses and tag names in the response (default: "en_us"; one of: "en_us", "zh_cn", "zh_tw", "ar_ae", "vi_vn", "th_th", "pt_br", "ms_my", "id_id", "es_mx")
- `market` (string) — Storefront whose catalogue and licensing the request is answered for (default: "us"; one of: "ae", "ar", "au", "bh", "bn", "br", "ca", "cl", "co", "de", "eg", "es", "fr", "gb", "hk", "id", "in", "jp", "kh", "kr", "kw", "kz", "la", "mm", "mo", "mx", "my", "nz", "om", "pe", "ph", "pt", "qa", "sa", "sg", "th", "ua", "us", "vn")
- `album` (string, required) — Album numeric id, short id or iq.com album URL (examples: "3123332998864501", "vobwm47vvd", "https://www.iq.com/album/melody-of-golden-age-2025-vobwm47vvd"; minLength: 1)
- `count` (integer, required) — Max number of episodes to return (examples: 40; min: 1)
- `start_order` (integer) — Episode number to start from, counting from 1 (default: 1; examples: 1; min: 1)

## Response

### 200 — Successful Response

- `@type` (string) (default: "IqiyiVideo")
- `id` (string, required)
- `alias` (string, nullable)
- `name` (string, nullable)
- `short_name` (string, nullable)
- `subtitle` (string, nullable)
- `description` (string, nullable)
- `tagline` (string, nullable)
- `url` (string, nullable)
- `album_id` (string, nullable)
- `album_alias` (string, nullable)
- `album_name` (string, nullable)
- `album_description` (string, nullable)
- `album_url` (string, nullable)
- `channel` (string, nullable)
- `channel_id` (string, nullable)
- `episode_order` (integer, nullable)
- `season` (integer, nullable)
- `duration` (integer, nullable)
- `is_series` (boolean) (default: false)
- `is_short` (boolean) (default: false)
- `is_exclusive` (boolean) (default: false)
- `is_iqiyi_produced` (boolean) (default: false)
- `is_dolby` (boolean) (default: false)
- `is_1080p` (boolean) (default: false)
- `is_3d` (boolean) (default: false)
- `is_vip` (boolean) (default: false)
- `is_tvod` (boolean) (default: false)
- `is_coupon` (boolean) (default: false)
- `is_package` (boolean) (default: false)
- `pay_mark` (string, nullable)
- `content_rating` (string, nullable)
- `content_warning` (string, nullable)
- `publish_date` (string, nullable)
- `published_at` (integer, nullable)
- `issued_at` (integer, nullable)
- `image` (string, nullable)
- `cover` (string, nullable)
- `cast` (array) (default: [])
  - `@type` (string) (default: "IqiyiCastMember")
  - `id` (string, required)
  - `name` (string, nullable)
  - `credit` (string, nullable)
  - `role` (string, nullable)
  - `character` (string, nullable)
  - `image` (string, nullable)
  - `profile_url` (string, nullable)
- `tags` (array) (default: [])
  - `@type` (string) (default: "IqiyiTag")
  - `id` (string, required)
  - `name` (string, nullable)
  - `group` (string, nullable)
- `hdr_formats` (array) (default: [])
- `collection_ids` (array) (default: [])
- `allowed_regions` (array) (default: [])

## Errors

### 422 — Validation Error

The request body did not validate

What to do: Check the fields against this schema. A URN with the wrong prefix is the most common cause.

- `detail` (array)
  - `loc` (array, required)
  - `msg` (string, required)
  - `type` (string, required)
  - `input` (any)
  - `ctx` (object)

### 408

The request ran past its time limit

What to do: Raise `timeout` in the request body, up to the maximum this endpoint documents. Lowering `count` or turning off the `with_*` flags also helps, because less work finishes sooner.

### 412

No album with this id, no episode list for this title, no licence in this market, or start_order is past the last episode

What to do: Retrying will not help: either the entity does not exist, or the input points at a different one.

### 429

Too many requests: a rate limit or a usage window is exhausted

What to do: When the response carries an X-Retry-After header, wait that many seconds and retry: the same number is in the body as `detail.retry_after`, and the limit clears once that window passes. The message in the body names the limit that was hit.

### 500

Something broke on our side

What to do: Retrying will not help. If it keeps happening, send us the X-Request-ID from the response headers.

### 529

Rate limit reached, or the endpoint is overloaded

What to do: Wait at least 30 seconds, then retry.

## Response envelope

Success: Array of objects (may be empty if no results)

Error: Error may coexist with partial results if it occurs mid-execution. Check X-Error header and status code.

Every response carries these headers:

- `X-Error` — Error message text (present only on error)
- `X-Request-ID` — Unique request identifier
- `X-Execution-Time` — Execution time in seconds
- `X-Result-Count` — How many records the body carries. 0 means an empty result, which is a normal answer and not by itself an error. A non-zero count can come back together with X-Error when the failure happened partway through — read this header and X-Error independently.
- `X-Total-Available-Results` — How many records exist for this query, when the endpoint can say. On a `dry_run` request this is the answer and the body is empty. It saturates: the endpoint's documented maximum means 'at least that many', any smaller number is exact.
- `X-Warning` — Present when the request body carried keys this endpoint does not document. They were ignored, so any filter you meant to apply through them did not apply. Check the spelling against this schema and retry.
- `X-Retry-After` — Seconds to wait before retrying. Present only on 429.

