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/resolve

No 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.

FieldTypeRequiredDescription
entriesarray of object (one of 2 forms), up to 200Yes
entries[].external_idstring, up to 300 charactersYesForm 1 of 2.
entries[].sourcestring, up to 100 charactersNoForm 1 of 2. e.g. bgg, wikidata, gtin; any source when left out
entries[].namestring, up to 300 charactersYesForm 2 of 2.
entries[].yearintegerNoForm 2 of 2. Year published
entries[].kindone of: board_game, card_game, rpg, rpg_supplement, rpg_adventure, card_set, miniatures_game, expansion, edition, accessory, otherNoForm 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}]}'

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": [ … ]
    }
  ]
}
confidenceMeans
exactThe ID names one item, or one item has the name and year asked for
likelyA close name, well ahead of anything else
possibleSeveral fit about as well; candidates has up to five more

No match gives "match": null.

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.