---
title: "Get Episodes"
method: GET
path: "/v0/episodes"
tags: ["章节"]
---

# Get Episodes

`GET /v0/episodes`

## Request

- The document declares no server URL.
- Auth: HTTP bearer

## Query parameters

- `subject_id` integer, required: 条目 ID
- `type` 0 | 1 | 2 | 3 | 4 | 5 | 6: 本篇 = 0 特别篇 = 1 OP = 2 ED = 3 预告/宣传/广告 = 4 MAD = 5 其他 = 6
- `limit` integer
- `offset` integer

## Response `200`

Successful Response

- PagedEpisode
  - `total` integer
  - `limit` integer
  - `offset` integer
  - `data` Episode[]
    - `id` integer, required
    - `type` integer, required: `0` 本篇，`1` SP，`2` OP，`3` ED
    - `name` string, required
    - `name_cn` string, required
    - `sort` number, required: 同类条目的排序和集数
    - `ep` number: 条目内的集数, 从`1`开始。非本篇剧集的此字段无意义
    - `airdate` string, required
    - `comment` integer, required
    - `duration` string, required: 维基人填写的原始时长
    - `desc` string, required: 简介
    - `disc` integer, required: 音乐曲目的碟片数
    - `duration_seconds` integer: 服务器解析的时长，无法解析时为 `0`

## Other responses

- `400`: Validation Error
- `404`: Not Found

## Changes

- **2025-02-04** (v0) `2d29d7b6639b`: 1 info
  - for the `query` request parameter `type`, the type was generalized from `integer` to no type
- **2022-11-19** (v0) `bb6bcec42206`: 2 warning, 2 info
  - removed the optional property `detail` from the response with the `400` status
  - removed the optional property `detail` from the response with the `404` status
  - added the optional property `details` to the response with the `400` status
  - added the optional property `details` to the response with the `404` status
- **2022-09-01** (v0) `fe861684ed6c`: 1 info
  - added the optional property `data/items/duration_seconds` to the response with the `200` status
- **2022-06-21** (v0) `849933a48cb4`: 2 breaking
  - for the `query` request parameter `limit`, the min was increased from `0.00` to `1.00`
  - for the `query` request parameter `subject_id`, the min was increased from `0.00` to `1.00`
- **2022-05-07** (v0) `588c3a75d5cd`: 4 breaking, 4 warning
  - added `subschema #1, subschema #2` to the `detail` response property `oneOf` list for the response status `400`
  - added `subschema #1, subschema #2` to the `detail` response property `oneOf` list for the response status `404`
  - the `detail` response's property type changed from `object` to no type for status `400`
  - the `detail` response's property type changed from `object` to no type for status `404`
  - …4 more

[Operation history](https://skmtc.dev/bangumi/apis/bangumi-open-api/changes/v0/episodes/get.md)

---

[API](https://skmtc.dev/bangumi/apis/bangumi-open-api.md) - [All operations](https://skmtc.dev/bangumi/apis/bangumi-open-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bangumi/apis/bangumi-open-api/revisions/6aafdbda7895?raw)
