Limits, caching and terms
Reading needs no key. Limits keep the catalog fast for everyone; they are counted per address without an account, and per member with one. The game data is the same for everyone: a plan adds volume, the right to use the data commercially and integration features.
The limits
Section titled “The limits”| No account | Free account | Hobby plan | Starter plan | Pro, Enterprise | |
|---|---|---|---|---|---|
| Requests a minute | 60 | 90 | 180 | 180 | by contract |
| Requests a day | none | none | 2,000 | 6,000 | by contract |
| Requests a week | 250 | 1,500 | 10,000 | 30,000 | by contract |
| Games read a week | 50 | 250 | 1,000 | 3,000 | by contract |
| Counted per | address (an IPv6 address by its /64) | member, all their tokens together | member | member | member |
“Games read” counts GET /games/{id} and the routes under it. Days are UTC
days; weeks start on Monday at 00:00 UTC. Without a paid plan there is no
daily limit: the week’s is the one that counts.
- Free account: a member whose email address is confirmed creates up
to 2 API tokens on their account page at
theboardgamedb.com, and sends one as
Authorization: Bearer bgdb_…. - Hobby and Starter: the plans and their prices are at theboardgamedb.com/pricing.
- Pro and Enterprise: limits and service levels by contract, on request at contact@theboardgamedb.com.
What each plan includes
Section titled “What each plan includes”| No account | Free account | Hobby | Starter | Pro, Enterprise | |
|---|---|---|---|---|---|
| Commercial use | no | no | yes | yes | yes |
| Search and autocomplete | yes | yes | yes | yes | yes |
| Games and editions | yes | yes | yes | yes | yes |
| One barcode (EAN or UPC) at a time | yes | yes | yes | yes | yes |
| The changes feed | no | no | yes | yes | yes |
| Critics’ reviews of a game | their number | their number | the full list | the full list | the full list |
Up to 100 barcodes or ids at once (POST /lookup) |
no | no | no | yes | yes |
| Covers shown on your own sites, as your own copies | no | no | no | yes, under conditions | yes, under conditions |
| An export of the full catalog | no | no | no | no | by specific agreement only |
In the reference, an endpoint that needs a paid plan carries
its badge: Hobby plan on the changes feed
(GET /changes) and on a game’s critics’ reviews
(GET /games/{id}/reviews), Starter plan
on POST /lookup. Everyone reads how many critics reviewed a game, in
its criticReviews.count. Everything else is open to every plan.
Commercial use is a product, a service, an app or a site that earns money. Nobody may link to or embed the addresses of our files on another site, on any plan: to show a cover you download it and serve your own copy, with credit, a link back to the game’s page and respect for its publisher’s rights. The conditions are in the terms.
Going over a limit never costs anything: the API answers 429 until the
limit starts again, and nothing is billed automatically.
The same numbers, as JSON, with your own limits when you send a token:
curl "https://api.theboardgamedb.com/v1/limits"The headers
Section titled “The headers”Every counted answer carries:
| Header | Meaning |
|---|---|
X-RateLimit-Limit |
Your tightest limit: the day’s on a paid plan, the week’s without one. |
X-RateLimit-Remaining |
What is left of it. |
X-RateLimit-Reset |
When it starts again, in seconds since 1970. |
x-ratelimit-weekly-limit, x-ratelimit-weekly-remaining, x-ratelimit-weekly-reset |
The same for the week. |
x-ratelimit-weekly-detail-* |
The same for the games read this week, on GET /games/{id}. |
When you are refused
Section titled “When you are refused”Beyond a limit the API answers 429 with a retry-after header (seconds to
wait) and the code rate_limited (a minute’s or a day’s limit) or
weekly_limit (a week’s). The refusal also says where higher limits are:
links.pricing (the plans and prices) and
links.token (the account page, for a free API token) in its body, and a
Link: <https://theboardgamedb.com/pricing>; rel="payment" header:
async function get(url: string): Promise<Response> { for (let attempt = 0; attempt < 3; attempt++) { const response = await fetch(url); if (response.status !== 429) return response; const wait = Number(response.headers.get("retry-after") ?? 60); const { code } = await response.json(); if (code === "weekly_limit" || wait > 120) return response; // Not worth waiting for. await new Promise((resolve) => setTimeout(resolve, wait * 1000)); } return fetch(url);}import timeimport requests
def get(url, **params): for _ in range(3): response = requests.get(url, params=params, timeout=10) if response.status_code != 429: return response wait = int(response.headers.get("retry-after", "60")) if response.json()["code"] == "weekly_limit" or wait > 120: return response time.sleep(wait) return requests.get(url, params=params, timeout=10)Caching
Section titled “Caching”- Catalog answers are cached by us for up to five minutes, so a change can take that long to show. Search and suggestion answers are cached for everyone until the catalog changes, and a cached answer is not counted against your limits.
- Images never change at a given address: keep them as long as you like.
- On your side, keep a game you show for a day before reading it again;
keep search results for a few minutes; keep the
idof a game for good. - Do not walk the whole catalog game by game:
GET /gameslists games a page at a time with their summaries, andGET /index/gamesgives names and slugs by the hundred.
Using the API and what it returns is subject to the terms: the licence of the data and texts is CC BY-NC 4.0 (details): credit us as Data from theboardgamedb.com with a link to https://theboardgamedb.com (or to the game’s page). Commercial use is not allowed without an account or with a free account; it is allowed from the Hobby plan up. An export of the full catalog is only by specific agreement.