Docs / API reference

Suggest items while typing

GET /v1/items/suggest: game names matching what has been typed so far, for a search box. Starts of names first, then pieces, then near misses.

GET /v1/items/suggest

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

Light and quick, for showing suggestions under a search box on every pause in typing. Every name an item goes by counts, its own and its alternate titles.

Query parameters

NameTypeRequiredDescription
qstring, up to 200 charactersYes
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
limitinteger, 1–20, default 10No

Example

curl "https://tablearchive.dev/v1/items/suggest?q=wingsp&limit=3" \
  -H "Authorization: Bearer $TA_KEY"

Response

{
  "items": [
    {
      "id": "9dde0e9c-530a-4d31-80f7-38637d823f59",
      "kind": "board_game",
      "name": "Wingspan",
      "slug": "wingspan",
      "year_published": 2019,
      "matched_name": null,
      "image": { "url": "/v1/images/45a4…/file?exp=…&sig=…", "thumb_url": "…&size=thumb…", "medium_url": "…&size=medium…" }
    }
  ]
}

matched_name is the alternate title that matched, or null when the item's own name did; show it so people see why a result is there.

Notes

  • Near misses (typos) count from three characters on.
  • Each call counts against your rate limit: wait for a pause in typing (150–250 ms) rather than calling on every key.
  • Used in the guide Build a collection app.

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.