Skip to main content

playlists Query

Description

Retrieves a paginated list of playlists. Results are sorted by numeric ID in descending order. Page size is fixed by the server.

query playlists($page: Int) {
playlists(page: $page) {
playlists {
_id
id
title
created
link
}
pagination {
limit
count
page
pages
hasMore
}
}
}

Variables

{
"page": 1
}

Response

{
"playlists": {
"playlists": [
{
"_id": "2f1e474c1501a31a33822f60",
"id": 6029806123790,
"title": "example",
"created": 1740029739013,
"link": "example"
}
],
"pagination": {
"limit": 20,
"count": 10,
"page": 1,
"pages": 1,
"hasMore": true
}
}
}

Arguments

NameTypeDescription
pageIntThe requested page number. Defaults to 1 if not specified.

Returns

PlaylistsConnection