Docs / API reference
Match a list to items
POST /v1/items/resolve: match up to 200 names or BoardGameGeek IDs to items at once, each with a confidence. For importing a collection.
POST /v1/items/resolveNo key needed while the catalog is public; with a key you get photo links on every page and a higher rate limit.
For turning someone's list into items: a BoardGameGeek export or a spreadsheet. Results come back in the order sent. Importing a collection walks through it.
Request body
JSON.
| Field | Type | Required | Description |
|---|---|---|---|
entries | array of object (one of 2 forms), up to 200 | Yes | |
entries[].external_id | string, up to 300 characters | Yes | Form 1 of 2. |
entries[].source | string, up to 100 characters | No | Form 1 of 2. e.g. bgg, wikidata, gtin; any source when left out |
entries[].name | string, up to 300 characters | Yes | Form 2 of 2. |
entries[].year | integer | No | Form 2 of 2. Year published |
entries[].kind | one of: board_game, card_game, rpg, rpg_supplement, rpg_adventure, card_set, miniatures_game, expansion, edition, accessory, other | No | Form 2 of 2. Editions and card sets are left out unless asked for |
Example
curl -X POST "https://tablearchive.dev/v1/items/resolve" \
-H "Authorization: Bearer $TA_KEY" \
-H "Content-Type: application/json" -d '{"entries":[{"external_id":"266192","source":"bgg"},{"name":"Terraforming Mars","year":2016}]}'const res = await fetch('https://tablearchive.dev/v1/items/resolve', {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.TA_KEY}`, 'Content-Type': 'application/json' },
body: JSON.stringify({
"entries": [
{
"external_id": "266192",
"source": "bgg"
},
{
"name": "Terraforming Mars",
"year": 2016
}
]
}),
})
const data = await res.json()import os, requests
res = requests.post(
"https://tablearchive.dev/v1/items/resolve",
headers={"Authorization": f"Bearer {os.environ['TA_KEY']}"},
json={
"entries": [
{
"external_id": "266192",
"source": "bgg"
},
{
"name": "Terraforming Mars",
"year": 2016
}
]
},
)
data = res.json()Response
{
"results": [
{
"match": { "id": "9dde0e9c-…", "kind": "board_game", "name": "Wingspan", "slug": "wingspan", "year_published": 2019, "matched_name": null, "image": { … } },
"confidence": "exact",
"candidates": []
},
{
"match": { "name": "Terraforming Mars", … },
"confidence": "likely",
"candidates": [ … ]
}
]
}confidence | Means |
|---|---|
exact | The ID names one item, or one item has the name and year asked for |
likely | A close name, well ahead of anything else |
possible | Several fit about as well; candidates has up to five more |
No match gives "match": null.
Notes
- Has a budget of its own on top of the usual limit: 20 calls a minute. See Rate limits.
- Nothing is written; resolving never changes the catalog.
- Used in the guides Build a collection app and Track a game collection in Google Sheets.
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.