Skip to main content

Get Viewer playlists

This page shows how to get all Viewer's playlists. This request is useful when retrieving playlist names to Add Playlist Items.

Sample

Run the following query.

warning

The caller must be already authenticated.

tip

Visit https://animeshon.com/graphql to browse the GraphQL embedded documentation.

There is a single unified endpoint for Animeshon GraphQL queries and mutations: https://animeshon.com/graphql.

query {
viewer {
playlists {
nextPageToken
playlists {
name
displayName
type
playlistItems(pageSize: 10) {
totalSize
nextPageToken
items {
name
createTime
resource {
... on GraphGeneric {
name
}
}
}
}
}
}
}
}
View on GitHub