Docs / Catalog
Search and filters
Every parameter of GET /v1/items, and how results are sorted.
GET /v1/items?q=…&kind=…&players=…&max_playtime=…&age=…&year=…&term=…&entity=…&external_id=…&belongs_to=…&ids=…&sort=…&limit=…&offset=…All parameters are optional and combine with AND. The table explains what each one does; types, limits, and examples in three languages are on the reference page, GET /v1/items.
| Parameter | Type | What it does |
|---|---|---|
q | string | Words in the name or description, or any name the item goes by (its own, alternate titles, translations) containing the text or a near miss of it. Wingspn finds Wingspan; Siedler finds Catan |
kind | enum | One kind. Without it, editions and card sets are left out |
players | integer | Items playable with exactly this many (min_players ≤ n ≤ max_players) |
max_playtime | integer | Items that finish within this many minutes |
age | integer | Items with min_age at or below this |
year | integer | year_published equals this |
term | slug | Items tagged with this mechanic or category, e.g. deck-building. See Credits, terms, relations |
entity | slug or UUID | Items credited to this person or organization |
external_id | string | Items with this ID in another system, editions and card sets included. See Lookup |
external_source | string | Narrow external_id to one source, e.g. wikidata, bgg, gtin |
belongs_to | UUID | Everything that belongs to this game: expansions, editions, sets, accessories, and theirs. See The game an item belongs to |
ids | UUIDs | Only these items, up to 200, comma-separated. See A list of items by ID |
sort | enum | relevance, popular, name, year, updated |
limit | 1–200 | Page size, default 50 (with ids, all of them) |
offset | integer | Skip this many |
Sorting
Without sort, results are ordered by relevance when there is a q (the closest of an item's names counts, and an exact name comes first), in the order of ids when there are ids, and by popular otherwise. "Popular" means well-linked, photographed, complete items first; it is a measure of how much we know, not of how good a game is.
Response
{ "total": 471, "items": [ … ] }Each item in the list has id, kind, name, slug, data, updated_at, parent (the game it belongs to, or null), and image (the box front's thumb_url, medium_url, and url, or null). Fetch GET /v1/items/{slug} for the rest.
Examples
Two-player games under 45 minutes, newest first:
curl "https://tablearchive.dev/v1/items?players=2&max_playtime=45&sort=year" -H "Authorization: Bearer $TA_KEY"Everything by one designer:
curl "https://tablearchive.dev/v1/entities?q=uwe+rosenberg" -H "Authorization: Bearer $TA_KEY"
curl "https://tablearchive.dev/v1/items?entity=<slug from above>" -H "Authorization: Bearer $TA_KEY"A list of items by ID
An app that keeps a list of items (a shelf, a wishlist, a game night) fetches them all at once with ids, in the order given:
curl "https://tablearchive.dev/v1/items?ids=7c0f…,2b91…,e4d3…" -H "Authorization: Bearer $TA_KEY"{
"total": 2,
"items": [ … ],
"moved": { "2b91…": "a810…" },
"missing": ["e4d3…"]
}IDs last, but now and then two items turn out to be the same game and get merged. A merged-away ID returns the item it became, and moved maps old to new so you can update what you stored. An ID we no longer have shows up in missing. Editions and card sets are included, since you asked for them by name, well, by ID. Every other filter still applies, so ids=…&players=5&max_playtime=60 answers "which of these can five of us finish in an hour?" Items a filter leaves out are simply not listed; missing is only for IDs we do not have at all.
What can we play tonight?
Put everyone's shelves together and ask. Sam and Alex own these between them; five people are coming over and the evening is short:
curl "https://tablearchive.dev/v1/items?ids=7c0f…,2b91…,e4d3…&players=5&max_playtime=60&sort=popular" -H "Authorization: Bearer $TA_KEY"Add age=10 when the kids are playing, or a mechanic like term=deck-building when that is what the table is in the mood for. Over 200 games between you? Send the same parameters as JSON, with up to 2,000 ids:
curl -X POST "https://tablearchive.dev/v1/items/search" -H "Authorization: Bearer $TA_KEY" \
-H "Content-Type: application/json" -d '{ "ids": ["7c0f…", "2b91…", "…"], "players": 5, "max_playtime": 60 }'The answer has the same shape as GET /v1/items, moved and missing included. Pages hold up to 200 items; use offset for more.
Suggestions as you type
For a search box that offers games while someone types, GET /v1/items/suggest is lighter than a search and answers in milliseconds.
GET /v1/items/suggest?q=die+sied&kind=…&limit=…q is what has been typed so far; kind and limit (up to 20) are optional. Every parameter is on the reference page, GET /v1/items/suggest.
Names that start with the text come first, then names with it somewhere inside, then near misses (from three characters on). Every name an item goes by counts, so someone who knows Catan as Die Siedler von Catan still finds it:
{
"items": [
{
"id": "…",
"kind": "board_game",
"name": "Catan",
"slug": "catan",
"year_published": 1995,
"matched_name": "Die Siedler von Catan",
"image": { "thumb_url": "…", "medium_url": "…", "url": "…" }
}
]
}matched_name is the alternate title that matched, or null when the item's own name did. Show it beside the name so people see why the result is there. The year_published tells apart games that share a name.