List a game's editions
const url = 'https://api.thebgdb.org/v1/games/5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77/editions';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/editionsThe editions rules and tutorials are filed under: the original edition first (always listed), then the others members added and a moderator approved, most recent first.
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.
Example
5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77Responses
Section titled “Responses”The editions.
object
object
Its address under the game (GET /games/{id}/editions/{slug}, and on the website /games/{game}/editions/{slug}): language, publisher and year, then a tag that never changes (fr-iello-2019-k3x9q2); original for the original edition. The tag keeps an older address finding the edition after its facts are corrected.
Null for the original edition.
The language it is printed in, when known.
object
The publisher’s product code or SKU, when known.
This edition’s own barcode (EAN-13), when a source states it. Null for the original edition: its barcode is the game’s ean.
The box of this edition (the game’s main cover for the original edition), as in the game’s covers: the same as covers.front. Null when the catalog has none.
object
The front and the back of this edition’s box, each a path on this API (/v1/media/…) when we hold a copy, otherwise null. The back is never a game’s cover.
object
object
object
Example
{ "data": [ { "id": "5c9b0f43-7a39-4f0c-8a4e-2f2d2b1d9a77:original", "slug": "original", "name": null, "original": true, "language": null, "publisher": null, "year": 1995, "productCode": null, "ean": null, "cover": null, "covers": { "front": null, "back": null } } ]}No game has this id, or it has no such edition.
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"}Too many requests, or too many of these sent today (code says which).
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"}