List music to play a game to
const url = 'https://api.thebgdb.org/v1/games/5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77/playlists?provider=spotify&limit=50';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.thebgdb.org/v1/games/5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77/playlists?provider=spotify&limit=50'Playlists and albums on Apple Music, Spotify and YouTube that members suggest as a soundtrack for the game. Best score first (votes up minus votes down), then newest. A playlist members voted down to a score of −3 or lower, with at least 5 votes, is left out. The list is the same for everyone; a member’s own votes are in GET /account/games/{id}.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The game’s id, as returned in every game object. The game’s slug is accepted too, and so is an address it had before: a slug changed when the game was renamed by the addressing rule, or the id or slug of an entry merged into it because both were the same game. The answer is the game under its current id and slug; compare them with what you sent to update a stored link.
Example
5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77Query Parameters
Section titled “Query Parameters”youtube covers YouTube and YouTube Music.
Only playlists on this service.
Example
spotifyThe nextCursor of the previous page.
Responses
Section titled “Responses”A page of playlists.
object
object
youtube covers YouTube and YouTube Music.
Where to listen, built from the service and the playlist’s id there.
Votes up minus votes down.
How many members voted, either way.
Display name of the member who added it; null for a playlist the catalog imported rather than a member added.
Pass as cursor to get the next page. Null on the last page.
Example
{ "data": [ { "id": "7d1c1a0e-2f0b-4d39-9a56-5a8d2b9d7c21", "provider": "spotify", "kind": "playlist", "title": "Island traders: calm medieval folk", "url": "https://open.spotify.com/playlist/37i9dQZF1DX4sWSpwq3LiO", "score": 4, "votes": 6, "submittedBy": "Ana", "createdAt": "2026-11-20T18:04:11.120Z" } ], "nextCursor": null}provider or cursor is not an accepted value.
object
What went wrong, in plain English words. The wording may change: act on code.
A stable name for this refusal, for programs and for showing the message in another language. A code is never renamed; new ones may be added.
The numbers the sentence names, when it names any: for example { "max": 20 } with daily_photo_limit.
object
Example
{ "error": "Game not found", "code": "game_not_found"}No game has this id.
object
What went wrong, in plain English words. The wording may change: act on code.
A stable name for this refusal, for programs and for showing the message in another language. A code is never renamed; new ones may be added.
The numbers the sentence names, when it names any: for example { "max": 20 } with daily_photo_limit.
object
Example
{ "error": "Game not found", "code": "game_not_found"}Over a request limit. rate_limited: without a token, 60 a minute and 2,000 a UTC day per address (more with a token; see Limits above). weekly_limit: the week’s requests or game details are used up (params.max is the cap). The retry-after header says how many seconds to wait: 60 for a minute’s limit, until midnight UTC for a day’s, until Monday 00:00 UTC for a week’s.
object
What went wrong, in plain English words. The wording may change: act on code.
A stable name for this refusal, for programs and for showing the message in another language. A code is never renamed; new ones may be added.
The numbers the sentence names, when it names any: for example { "max": 20 } with daily_photo_limit.
object
Example
{ "error": "Game not found", "code": "game_not_found"}