API: Episode Chapters
In this page
The Episode Chapter object
Chapters are like bookmarks within your episode. Chapters are mainly used to give listeners an easy way to fast forward to specific minute marks throughout your episode, and are especially useful in long audio files. A chapter has the following properties:
Property | Type | Description |
---|---|---|
chapter_id |
Numeric | Unique chapter identifier |
starts_at |
Numeric | The position, in milliseconds, relative to the beginning of the audio file, at which the chapter begins |
title |
String | Chapter’s title |
external_url |
String | An optional URL linking to a resource related to the chapter that provides extra information |
image_url |
String | Chapter’s small image URL |
image_original_url |
String | Chapter’s original size image URL |
Retrieving an Episode’s Chapters
Authenticated: no
This API returns a paginated list of Chapters for the given Episode. The chapter list is sorted chronologically, from first to last.
Example
Adding a Chapter
Authenticated: yes.Owner: yes
Adds a new chapter to the given episode. This API needs to be authenticated with the episode’s author credentials, and supports all the parameters of the Updating a Chapter API.
The only required parameters are starts_at
and title
: all other parameters are optional and can be edited later.
Example
Updating a Chapter
Authenticated: yes. Owner: yes
Updates the given chapter’s data. This API needs to be authenticated with the episode’s author credentials, and supports these parameters, none of which are required, as you should specify only the ones you want to update:
Parameter | Type | Description |
---|---|---|
starts_at |
Numeric | - |
title |
String | Max length: 120 |
external_url |
String | - |
image_file |
File | At least 400x400, Max size: 5MB, Formats: JPG, PNG. If the value of this parameter is a remove string, it will remove the previously uploaded image for this episode. |
image_crop |
String | Comma-separated coordinates (top left X, top left Y, bottom right X, bottom right Y) used to crop an image_file . If not specified, the image_file will not be cropped. This parameter is effective only if the request contains an image_file . |
Example
Deleting a Single Chapter
Authenticated: yes. Owner: yes
Deletes the given episode’s chapter. This API needs to be authenticated with the episode’s author credentials.
Example
Deleting All of the Episode’s Chapters
Authenticated: yes. Owner: yes
Deletes all the chapters for the given episode. This API needs to be authenticated with the episode’s author credentials.