-
Notifications
You must be signed in to change notification settings - Fork 0
Playlists
GET /playlists
Browse the user's playlists. Requires authentication cookie.
| Field | Type | Default | Description |
|---|---|---|---|
| limit? | integer | 100 | Amount of playlists to return |
| offset? | integer | 0 | Amount of playlists to skip |
| fields? | string | N/A | Comma separated string of fields to include. Seems to do nothing currently |
| mylibrary? | integer | 0 | Boolean as an integer for whether to include user's My Library playlist |
| archived? | integer | 0 | Boolean as an integer for whether to include archived playlists |
| Field | Type | Description |
|---|---|---|
| Playlists | object | Object containing the results |
| Playlists.Count | integer | The amount of playlists returned |
| Playlists.Data | array of playlist objects | The playlists returned |
| Playlists.Fields | object | The query string params used in an object. Values are strings in an array. |
| Playlists.Limit | integer | The limit used |
| Playlists.Offset | integer | The offset used |
| Playlists.Total | integer | The total amount of results that the filtering provides |
GET /playlist/{Playlist.Id}
Gets a playlist's metadata
| Field | Type | Description |
|---|---|---|
| Playlist | playlist object | The playlist |
GET /playlist/{Playlist.Id}/catalog
Browse and search tracks in the playlist.
| Field | Type | Default | Description |
|---|---|---|---|
| limit? | integer | 100 | Amount of tracks to return (max 100) |
| offset? | integer | 0 | Amount of tracks to skip |
| search? | string | N/A | The search terms |
| sort? | string | playlist | Field to sort by. Prefix with - for descending. |
| nogold? | boolean | false | Whether to hide tracks in Gold Early Access |
| streamerMode? | boolean | false | Whether streamer mode is enabled or not |
| brands? | array of integers | N/A | Brand IDs to filter for |
| genres? | array of strings | N/A | Genres to filter for |
| types? | array of strings | N/A | Release types to filter for |
| tags? | array of strings | N/A | Tags to filter for |
| creatorFriendly? | boolean | N/A | Whether to filter for creator safe or unsafe tracks |
| releaseId? | string | N/A | Filter for tracks in a specific release |
| artistId? | string | N/A | Filter for tracks released by a specific artist |
| Field | Type | Description |
|---|---|---|
| Data | array of track objects | The results of the query |
| Limit | integer | The limit used |
| NotFound | array of playlist item objects | The playlist items that weren't found from the catalog |
| Offset | integer | The offset used |
| Total | integer | The total amount of results for the search |
POST /playlist
Creates a new playlist. Requires authentication cookie.
A partial playlist object including the fields you want to set instead of defaults (such as Title and Description)
| Field | Type | Description |
|---|---|---|
| Id | string | The ID of the playlist that was created |
POST /playlist/{Playlist.Id}
Edits a playlist. Requires authentication cookie.
A partial playlist object with the fields you want to replace (such as Title and Description)
The modified playlist object
POST /playlist/{Playlist.Id}/modify-item
Used to reorder tracks. Requires authentication cookie.
| Field | Type | Description |
|---|---|---|
| type | string | The type of modification |
Modification types are:
-
add- adds an item -
remove- removes an item -
up- moves an item up by one -
down- moves an item down by one -
to- moves an item to a specific index
| Field | Type | Description |
|---|---|---|
| MoveTo? | integer | The index to move the item to when using the to type |
| Record | playlist item object | The item to modify |
POST /playlist/{Playlist.Id}/modify-items
Used to reorder tracks. Requires authentication cookie.
| Field | Type | Description |
|---|---|---|
| type | string | The type of modification |
Modification types are:
-
add- adds items -
remove- removes items
| Field | Type | Description |
|---|---|---|
| Records | array of playlist item objects | The items to modify |
POST /playlist/{Playlist.Id}/delete
Deletes a playlist. Requires authentication cookie.
GET /playlist/{Playlist.Id}/tile
Redirects to the original full resolution and quality tile image.
For resizing and different image formats, see CDX
GET /playlist/{Playlist.Id}/background
Redirects to the original full resolution and quality background image.
For resizing and different image formats, see CDX
- Home
- Global objects
- Catalog
- Releases
- Playlists
- Artists
-
Me
- Get user info
- Change user info
- Change settings
- Get player code
- Regenerate player code
- Change email
- Change password
- Enable SMS 2FA (deprecated)
- Confirm SMS 2FA (deprecated)
- Disable SMS 2FA (deprecated)
- Enable TOTP 2FA
- Get TOTP QR Code
- Disable TOTP 2FA
- Enable Email 2FA
- Disable Email 2FA
- Change notifications
- Get licenses
- Remove license
- Remove video claims
- Generate discount code
- Authentication
- CDX
- TODO