Docs / Catalog

Lookup by ID

Find an item by its BoardGameGeek ID, Wikidata QID, or an ID in another database.

Items carry IDs from other systems in external_ids. Search by any of them. Unlike other searches, an ID lookup includes edition and card_set items, since an ID can name one printing, so check kind when more than one comes back:

curl "https://tablearchive.dev/v1/items?external_id=Q17271" -H "Authorization: Bearer $TA_KEY"

Sources

SourceID looks likeLinks to
wikidataQ17271wikidata.org
bgg13boardgamegeek.com
rpggeekrpgitem/49826rpggeek.com
scryfall, tcgdex, ygoprodeckset codesCard databases
shopify:<domain>product handleThe publisher's shop page
gtin0857476008333No link

Add external_source to search one system only:

curl "https://tablearchive.dev/v1/items?external_id=13&external_source=bgg" -H "Authorization: Bearer $TA_KEY"

Barcodes

Few items have a barcode yet. We only get one when a publisher's shop lists it, so treat a barcode match as a bonus and fall back to search by name when it misses. Don't build a scanner app around it for now.

UPC, EAN, GTIN, and ISBN are all accepted and normalized, so a 12-digit UPC matches the 13-digit EAN form of the same code. Barcodes are stored under the source gtin. A barcode usually belongs to one edition.

Importing a collection

People usually arrive with a list: a BoardGameGeek export or a spreadsheet. POST /v1/items/resolve takes up to 200 entries at once and answers each in the same order. An entry is either an ID in another system or a name, with the year if you have it:

curl -X POST "https://tablearchive.dev/v1/items/resolve" -H "Authorization: Bearer $TA_KEY" \
  -H "Content-Type: application/json" -d '{
    "entries": [
      { "external_id": "13", "source": "bgg" },
      { "external_id": "Q17271" },
      { "name": "Terraforming Mars Ares" },
      { "name": "Wingspn" }
    ]
  }'
{
  "results": [
    { "match": { "name": "The Settlers of Catan", … }, "confidence": "exact", "candidates": [] },
    { "match": { "name": "The Settlers of Catan", … }, "confidence": "exact", "candidates": [] },
    { "match": { "name": "Terraforming Mars: Ares Expedition", … }, "confidence": "likely", "candidates": [] },
    { "match": { "name": "Wingspan", "year_published": 2019, … }, "confidence": "possible", "candidates": [ … ] }
  ]
}

Each match and candidate has id, kind, name, slug, year_published, matched_name, and image, like suggestions. Fetch the full items with ids once you have them.

confidenceMeansWhat to do
exactThe ID names one item, or the name matches with the year you gave (or there is only one item by that name)Add it
likelyA close name, well ahead of anything elseAdd it, maybe with a quiet "is this right?"
possibleSeveral items fit about as wellShow match and candidates and let the person pick

No match at all gives "match": null. A name can also carry a kind; without one, editions and card sets are left out, as in search.

From a BGG collection export (CSV), send objectid as { "external_id": …, "source": "bgg" }. Not every game has its BGG ID with us yet, so send the misses again by name, objectname with yearpublished as year.

Moving on to BoardGameGeek

If your app outgrows TableArchive, the bgg ID on an item (when we have it) maps straight to BGG's XML API. We expect that and think it is fine. TableArchive and BoardGameGeek covers using the two together.