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
| Endpoint | What it does |
|---|---|
GET /v1/items | Search the catalog by name, filter by players, playtime, age, year, mechanic, or credit, or fetch a list of items by ID. |
POST /v1/items/search | The 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/suggest | Game names matching what has been typed so far, for a search box. Starts of names first, then pieces, then near misses. |
POST /v1/items/resolve | Match 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
| Endpoint | What it does |
|---|---|
GET /v1/items/{idOrSlug}/history | Every change to one item, newest first, with before and after values, its source, and who approved it. |
GET /v1/events | The 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/search | The 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
| Endpoint | What it does |
|---|---|
GET /v1/entities | Search 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
| Endpoint | What it does |
|---|---|
GET /v1/terms | Every mechanic, category, and other tag in the catalog, with how many items carry each. |
Sources and stats
| Endpoint | What it does |
|---|---|
GET /v1/sources | Every source the catalog's facts and photos come from, with its kind, address, and license. |
POST /v1/sources | Register or update a source before a bot submits data from it. Bots and admins only. |
GET /v1/stats | How much the catalog holds: items (games and add-ons, not editions or card sets), approved photos, and sources. |
Contributing
| Endpoint | What it does |
|---|---|
POST /v1/submissions | Add a new item or change an existing one, with credits, terms, relations, and IDs. Reviewed before it shows. |
GET /v1/submissions | Your 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
| Endpoint | What it does |
|---|---|
POST /v1/images | Upload a box, component, or gameplay photo for an item or a submission, with its source and license. |
GET /v1/images/{id}/file | A photo, the original or a resized WebP (thumb or medium), from the signed links the API hands out. |
Your account
| Endpoint | What it does |
|---|---|
GET /v1/me | The account an API key belongs to: its name, role, and email. A quick way to check a key works. |