Docs / API reference

API reference

Every public TableArchive API endpoint: what it does, its parameters, examples, and errors, one page each.

Base URL: https://tablearchive.dev/v1. Requests and responses are JSON, except photo uploads and files. The OpenAPI document describes all of it for tools, and the explorer lets you try each call from the browser.

Items

EndpointWhat it does
GET /v1/itemsSearch the catalog by name, filter by players, playtime, age, year, mechanic, or credit, or fetch a list of items by ID.
POST /v1/items/searchThe filters of GET /v1/items in a JSON body, for lists of up to 2,000 item IDs, like two shelves put together.
GET /v1/items/suggestGame names matching what has been typed so far, for a search box. Starts of names first, then pieces, then near misses.
POST /v1/items/resolveMatch up to 200 names or BoardGameGeek IDs to items at once, each with a confidence. For importing a collection.
GET /v1/items/{idOrSlug}One item with its credits, terms, relations, photos, external IDs, provenance, and the game it belongs to.

Changes and history

EndpointWhat it does
GET /v1/items/{idOrSlug}/historyEvery change to one item, newest first, with before and after values, its source, and who approved it.
GET /v1/eventsThe change feed. Every change to the catalog in order, deletions included, to keep a copy in sync or follow only your own items.
POST /v1/events/searchThe change feed for a list of up to 5,000 items named in a JSON body, for apps that follow a large collection.

People and organizations

EndpointWhat it does
GET /v1/entitiesSearch designers, authors, artists, and publishers by name, with how many items credit each.
GET /v1/entities/{idOrSlug}One person or organization with every credit: which items, in which role.

Terms

EndpointWhat it does
GET /v1/termsEvery mechanic, category, and other tag in the catalog, with how many items carry each.

Sources and stats

EndpointWhat it does
GET /v1/sourcesEvery source the catalog's facts and photos come from, with its kind, address, and license.
POST /v1/sourcesRegister or update a source before a bot submits data from it. Bots and admins only.
GET /v1/statsHow much the catalog holds: items (games and add-ons, not editions or card sets), approved photos, and sources.

Contributing

EndpointWhat it does
POST /v1/submissionsAdd a new item or change an existing one, with credits, terms, relations, and IDs. Reviewed before it shows.
GET /v1/submissionsYour own submissions, newest first, with their status and any review note.
GET /v1/submissions/{id}One of your submissions, with its payload, status, flags, review note, and photos.

Photos

EndpointWhat it does
POST /v1/imagesUpload a box, component, or gameplay photo for an item or a submission, with its source and license.
GET /v1/images/{id}/fileA photo, the original or a resized WebP (thumb or medium), from the signed links the API hands out.

Your account

EndpointWhat it does
GET /v1/meThe account an API key belongs to: its name, role, and email. A quick way to check a key works.