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/suggestNo 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
| Name | Type | Required | Description |
|---|---|---|---|
q | string, up to 200 characters | Yes | |
kind | one of: board_game, card_game, rpg, rpg_supplement, rpg_adventure, card_set, miniatures_game, expansion, edition, accessory, other | No | Editions and card sets are left out unless asked for |
limit | integer, 1–20, default 10 | No |
Example
curl "https://tablearchive.dev/v1/items/suggest?q=wingsp&limit=3" \
-H "Authorization: Bearer $TA_KEY"const res = await fetch('https://tablearchive.dev/v1/items/suggest?q=wingsp&limit=3', {
headers: { Authorization: `Bearer ${process.env.TA_KEY}` },
})
const data = await res.json()import os, requests
res = requests.get(
"https://tablearchive.dev/v1/items/suggest?q=wingsp&limit=3",
headers={"Authorization": f"Bearer {os.environ['TA_KEY']}"},
)
data = res.json()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
| Status | When |
|---|---|
400 | A parameter or field is missing or invalid; details names each one |
429 | Rate limited; wait for Retry-After seconds |
Every error is JSON with an error message. See Rate limits and errors.