Information
- Terms of Service
- License: CC BY-NC 4.0 (data and texts); see the terms
- OpenAPI version:
3.1.0
An open database of board games.
Read the catalog of board games: facts about each game, the people and companies behind it, how it is classified and what it won.
Reading needs no key and no account. Every answer is JSON. Successful answers put their payload under data; failures return { "error": "…", "code": "…" }: error is a sentence in English written for people, code a stable name for the refusal (listed under the Error schema) that a program can act on or translate.
Accounts are created on the website, where members add photos, playlists and rulebooks and keep lists. A member can create a personal API token on their account page and send it as Authorization: Bearer <token>.
Members’ input. Ratings, complexity, ranks, recommended age, player counts, language dependence on a game all come from this site’s own members, through the routes described here. A game nobody has rated or voted on has null (or an empty list) there, never a guess.
Limits. Without a token: 60 requests a minute, 2,000 a day and 5,000 a week per address (an IPv6 address counts by its /64). With a personal API token (Authorization: Bearer bgdb_…, created on the website’s account page by a member whose email address is confirmed, 2 per account): 90 a minute, 3,000 a day and 7,500 a week per member, all their tokens together; on the Starter plan (for commercial use, €49.99 a month) 1,200 a minute, no daily limit and 200,000 a week. Of a week’s requests, reading one game (/games/{id} and the routes under it) is limited further: 500 games a week without a token, 750 with one, 40,000 on the Starter plan. /index/games counts one request for every 25 names it may return (limit). Days are UTC days; weeks start on Monday at 00:00 UTC. Every counted answer carries the standard X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (seconds since 1970) for the daily limit, or the weekly one on a paid plan, which has no daily limit; the per-minute limit shows only when reached, as a 429 with retry-after. It also carries x-ratelimit-weekly-limit, x-ratelimit-weekly-remaining and x-ratelimit-weekly-reset (when the week starts again, in seconds since 1970); reading a game adds the same three as x-ratelimit-weekly-detail-*. Beyond a limit the API answers 429 (rate_limited, or weekly_limit for a week’s) with a retry-after header: the seconds to wait. GET /limits lists every limit, and with a token your own. For more: a free API token, the Starter plan for commercial use (https://thebgdb.org/developers), or larger volumes, data dumps and service levels on request at contact@thebgdb.org. Catalog answers are cached for up to five minutes, so a change can take that long to show.
Slugs are stable: once a game or a credit has a slug, it does not change.
Credits. Some descriptions come from Wikipedia and some covers from Wikimedia Commons, under licences that ask for credit: GET /v1/credits lists them, with their source, licence and author.
Terms of use. Using the API and what it returns is subject to our terms: https://thebgdb.org/terms (the licence of the data at #license, the images at #images, the API’s terms at #api).
The session of a member signed in on the website. Used by the website itself.
Security scheme type: http
A personal API token (starts with bgdb_), created on the website’s account page. Optional for reading: it raises the request limit.
Security scheme type: http
An API token with the games:write scope, created on the website by a member given access to the Publisher API.
Security scheme type: http
The token of one rulebook upload in parts, from POST /games/{id}/rulebooks/uploads. It opens that upload only, for two hours.
Security scheme type: apiKey
Header parameter name: x-upload-token