List the editions that have a page
const url = 'https://api.theboardgamedb.com/v1/index/editions?game=catan&limit=500';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.theboardgamedb.com/v1/index/editions?game=catan&limit=500'Every edition with enough of its own for a page of its own (indexable in GET /games/{id}/editions/{edition}), as the game’s slug and the edition’s: what a sitemap needs. Ordered by game, up to 500 per call.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Only this game’s editions: its id, slug or an older address of it.
Example
catanThe nextCursor of the previous page.
Responses
Section titled “Responses”A page of editions.
object
object
The game’s slug.
The edition’s slug.
object
Example
{ "data": [ { "game": "catan", "slug": "fr-filosofia-2015-k3x9q2", "language": "fr", "year": 2015, "publisher": { "slug": "filosofia", "name": "Filosofia" } } ], "nextCursor": null}The cursor cannot be read (invalid_cursor).
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
On every refusal over a limit (rate_limited, weekly_limit, coverage_limit): where higher limits are to be had. The same pricing address is in the Link header, with rel="payment".
object
The plans and prices page.
The account page, where a member makes a free API token.
Example
{ "error": "Game not found", "code": "game_not_found"}No game has this id (game_not_found).
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
On every refusal over a limit (rate_limited, weekly_limit, coverage_limit): where higher limits are to be had. The same pricing address is in the Link header, with rel="payment".
object
The plans and prices page.
The account page, where a member makes a free API token.
Example
{ "error": "Game not found", "code": "game_not_found"}Over a request limit. rate_limited: a minute’s requests (without a token 60 per address; more with a token, see Limits above), or a paid plan’s day. weekly_limit: the week’s requests or game details are used up (params.max is the cap). coverage_limit: as many different games read over 28 days as the plan allows. 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
On every refusal over a limit (rate_limited, weekly_limit, coverage_limit): where higher limits are to be had. The same pricing address is in the Link header, with rel="payment".
object
The plans and prices page.
The account page, where a member makes a free API token.
Example
{ "error": "Game not found", "code": "game_not_found"}