Docs / API reference

Search a long list of items

POST /v1/items/search: the filters of GET /v1/items in a JSON body, for lists of up to 2,000 item IDs, like two shelves put together.

POST /v1/items/search

No key needed while the catalog is public; with a key you get photo links on every page and a higher rate limit.

Everything GET /v1/items does, with its parameters in the body instead of the address, so ids can hold up to 2,000. Numbers are JSON numbers here: "players": 5, not "5", and null is an error rather than "no filter".

Request body

JSON.

FieldTypeRequiredDescription
qstring, up to 200 charactersNoSearch names (alternate titles too, typos forgiven) and descriptions
kindone of: board_game, card_game, rpg, rpg_supplement, rpg_adventure, card_set, miniatures_game, expansion, edition, accessory, otherNoEditions and card sets are left out unless asked for
playersinteger, at least 1NoPlayable with exactly this many
max_playtimeinteger, at least 1NoMinutes
ageinteger, at least 0NoSuitable for a player of this age
yearintegerNo
termstring, up to 200 charactersNoTerm slug, e.g. deck-building
entitystring, up to 200 charactersNoCredited person or organization: its id or slug, e.g. uwe-rosenberg
external_idstring, up to 300 charactersNoID in another system, e.g. a Wikidata QID or BoardGameGeek ID
external_sourcestring, up to 100 charactersNoNarrow external_id to one source, e.g. gtin, wikidata, bgg
belongs_toUUIDNoEverything that belongs to this game: its expansions, editions, sets, and accessories, and theirs
sortone of: relevance, popular, name, year, updatedNoDefaults to relevance with a search, the order of ids with ids, and popular otherwise: well-linked, photographed, complete items first.
limitinteger, 1–200NoPage size: 50, or up to 200 with ids
offsetinteger, at least 0, default 0No
idsarray of string, up to 2000NoOnly these items, up to 2000, listed in this order. Merged-away ids give their survivor (see moved); unknown ones are listed in missing.

Example

curl -X POST "https://tablearchive.dev/v1/items/search" \
  -H "Authorization: Bearer $TA_KEY" \
  -H "Content-Type: application/json" -d '{"ids":["9dde0e9c-530a-4d31-80f7-38637d823f59","f68a1b33-33b2-43aa-90a0-4f305312458d"],"players":5,"max_playtime":60}'

Response

The same as GET /v1/items: total, items, and with ids, moved and missing. Pages still hold at most 200 items; send offset for the rest.

Notes

Errors

StatusWhen
400A parameter or field is missing or invalid; details names each one
429Rate limited; wait for Retry-After seconds

Every error is JSON with an error message. See Rate limits and errors.