List a game's rulebooks and other files
const url = 'https://api.thebgdb.org/v1/games/5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77/rulebooks?language=fr&type=rulebook&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/rulebooks?language=fr&type=rulebook&limit=50'The files members uploaded for the game and a moderator approved, by language then newest first: rulebooks, and beside them player aids, score sheets, FAQ, campaign books, print-and-play files and variants, each with its type. Ask for type=rulebook for the rules alone. A file is one PDF, or the pages as images in reading order. Each file’s path is served by GET /media/{key}.
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”A language code such as “en”, “fr” or “pt-BR”.
Only files written in this language.
Example
frWhat the file is. rulebook: the game’s rules (the only type structured rules are drafted from); player_aid: player aids, reference sheets, rules summaries; score_sheet: score sheets and printable trackers; faq: FAQ and errata; campaign: campaign logs, scenario books; print_and_play: print-and-play files; variant: solo, automa and fan variants; other: anything else.
Only files of this type.
Example
rulebookThe nextCursor of the previous page.
Responses
Section titled “Responses”A page of files.
object
A file of a game: its rulebook, or another file beside it, as type says.
object
What the file is. rulebook: the game’s rules (the only type structured rules are drafted from); player_aid: player aids, reference sheets, rules summaries; score_sheet: score sheets and printable trackers; faq: FAQ and errata; campaign: campaign logs, scenario books; print_and_play: print-and-play files; variant: solo, automa and fan variants; other: anything else.
A language code such as “en”, “fr” or “pt-BR”.
Which edition or printing the rules belong to, when the uploader said.
One PDF file, or one image per page.
Number of pages. Null for a PDF whose pages could not be counted.
Bytes, all files together.
The files, in reading order. A PDF has one.
object
Path of the file on this API.
Bytes.
What the file shows: rulebook for a page sent as an image; null for a PDF, which is not an image. box_front the whole front of the box; box_back its back; box_partial the box at an angle, cropped, or an overall shot of it; board_traditional the board of a traditional game that never had a box (chess, go); setup the game laid out ready to play; in_play a game in progress, nobody visible; components the pieces, boards and tokens; cards cards; people people playing, or any person, face or hand in the picture; rulebook a page of the rules; logo a title or logo alone; other anything else. New words may be added; treat an unknown one as other.
Display name of the member who uploaded it. Null for a rulebook the catalog added itself.
Pass as cursor to get the next page. Null on the last page.
Example
{ "data": [ { "id": "c2b7e5a4-3f1d-4b7c-8f0a-9e6d5c4b3a21", "type": "rulebook", "language": "en", "edition": "5th edition, 2015", "kind": "pdf", "pages": null, "size": 4812330, "uploadedBy": "Ana", "createdAt": "2026-11-20T18:04:11.120Z", "files": [ { "path": "/v1/media/rulebooks/5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77/c2b7e5a4-3f1d-4b7c-8f0a-9e6d5c4b3a21/1.pdf", "contentType": "application/pdf", "size": 4812330, "kind": null } ] } ], "nextCursor": null}language, type 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"}