Card Battle Lab

Developers

Read tournament results from Card Battle Lab, and send your players' decks straight into a game. No key, no sign-in, free to use.

Tournament results API (v1)

Read-only JSON for every finished official tournament on Card Battle Lab, including partner events. You get standings, match results and deck lists. Use it for tournament sites, bots and stream overlays.

Index

GET /api/public/v1/

Lists the endpoints and links back to this page. Handy as a health check.

{
  "ok": true,
  "version": "v1",
  "docs": "https://cardbattlelab.com/developers",
  "endpoints": { "tournaments": "https://cardbattlelab.com/api/public/v1/tournaments" }
}

List tournaments

GET /api/public/v1/tournaments

Newest first. Every parameter is optional, and they combine.

ParamMeaning
partner=1partner events only (0 or absent: no filter)
organizer=<slug>events using that official icon, for example duelfrontier, blind8k, cbl
q=<text>tournament title contains the text, any case, at most 60 characters
from=<ms>finished at or after this time (Unix milliseconds)
to=<ms>finished at or before this time (Unix milliseconds)
before=<ms>paging cursor: pass the previous response's next
limit=<n>1 to 50, default 20
{
  "ok": true,
  "events": [
    {
      "id": 412,
      "title": "Duel Frontier Weekly",
      "partner": true,
      "organizer": "duelfrontier",
      "players": 16,
      "finished_at": 1794916800000,
      "finished_iso": "2026-11-17T12:00:00.000Z",
      "logo_url": "https://cardbattlelab.com/viewer/branding/tournament-icons/duelfrontier.webp",
      "banner_url": null
    }
  ],
  "next": 1794916800000
}

next is null on the last page. For the following page, repeat the same query with before=<next>.

FieldTypeMeaning
idnumberthe event's id, for the call below
titlestringthe tournament title
partnerbooleana partner event
organizerstring or nullthe official icon slug, null for a custom logo
playersnumberentrants
finished_atnumberwhen it finished, Unix milliseconds
finished_isostringthe same time, ISO 8601 UTC
logo_urlstring or nullthe event logo image
banner_urlstring or nullthe event banner image

One tournament

GET /api/public/v1/tournaments/<id>
{
  "ok": true,
  "event": { "id": 412, "title": "Duel Frontier Weekly", "...": "as in the list" },
  "standings": [
    {
      "rank": 1, "name": "Kira", "wins": 4, "losses": 0, "draws": 0, "points": 12,
      "bot": false, "dropped": false, "dq": false,
      "deck_name": "Blue Rush", "colors": ["blue", "white"],
      "deck_public": true,
      "deck_text": "\"Blue Rush\"\n4x GD01-001\n..."
    }
  ],
  "matches": [
    {
      "round": 3, "table": 1, "stage": "cut", "final": true,
      "a": 1, "b": 2, "score": [2, 1], "winner": "a",
      "replays": [{ "id": "e...", "url": "https://cardbattlelab.com/api/pvp/event-replay/e..." }]
    }
  ]
}
Standings fieldMeaning
rankfinal placing (1 is the winner)
namethe player's in-game name as shown at the event
wins, losses, draws, pointsmatch record and match points
bota bot filled the seat
dropped, dqthe player dropped, or was disqualified
deck_name, colorsthe deck's name and colours (always sent)
deck_publicthe full list is shared
deck_textthe full list in ExBurst text format, or null

Deck privacy. We send a player's full deck list only while that deck is set to Public in their Deck Manager. If the player sets the deck to Private or deletes it, deck_public turns false and deck_text turns null. Allow for the cache time below. Bot decks always include the full list.

Match fieldMeaning
round, tableround number and table
stageswiss or cut (top cut)
finalthe deciding match of the event
a, bthe two players, as their rank in standings; b is null for a bye
scoregames won [a, b], or null if unknown
winner"a", "b" or null
replaysstored game replays; url downloads the replay file (gzipped Card Battle Lab replay format). Replays expire under the app's retention rules.

Matches come final first, then the latest round first, then by table.

Errors

Errors answer {"ok": false, "error": "<code>", "docs": "https://cardbattlelab.com/developers"}.

StatusCodeWhen
400bad_limit, bad_before, bad_from, bad_to, bad_partner, bad_organizer, bad_q, bad_ida parameter is malformed or out of range; bad_organizer also means an unknown slug
404not_foundno finished official tournament has that id (this answer is cached for 60 seconds)
405method_not_allowedanything but GET (and the CORS preflight)
429too many requests from your address; wait the number of seconds in the Retry-After header
503unavailablethe API is briefly unavailable or paused; retry later, with a growing delay

Unknown parameters are ignored.

Freshness and limits

Examples

curl "https://cardbattlelab.com/api/public/v1/tournaments?organizer=duelfrontier&limit=5"
const res = await fetch('https://cardbattlelab.com/api/public/v1/tournaments?partner=1');
const { events } = await res.json();
const first = await (await fetch(`https://cardbattlelab.com/api/public/v1/tournaments/${events[0].id}`)).json();

Stability

Within v1, fields are only ever added, never renamed or removed, and their meaning does not change. Ignore fields you do not know. A breaking change ships as /api/public/v2/ beside v1.

Run a scheduled tournament with us

Want to run online tournaments for your community? Card Battle Lab now has a fully automated tournament system for up to 32 players.

We set it up with your logo and branding, at the time slot and frequency you choose. The system handles the rest.

Hours before the tournament, everyone in-game gets a notice through the global announcement system. A few minutes before, the tournament lobby opens. Players enter, choose their deck and play each round.

The system automates every part of the tournament. Each round, players get their pairings, and each game starts when both players are ready. At the end, players win trophies based on their standing, plus a results image to share online.

All official rules are implemented, and every tournament is fully customizable. The standard setup is BO1 Swiss rounds with a BO3 top cut (no sideboards), but we can change any of it.

Every match can be spectated from the lobby or on CBL TV.

Get started

Email [email protected] with:

  1. Your tournament's name, start time and time zone, and how often it repeats.
  2. An icon: a square PNG, at least 512 px. We show it next to your events in the tournament list.
  3. Your full logo: a PNG with a transparent background. We also make your trophies from it.
  4. Any rules preferences, such as the format, number of rounds, top cut size or sideboards.

Already a partner? Send only what has changed.

Becoming a partner

You don't need us to use the results API or the import link. Want a partner ID? It credits your site on play links and puts your logo on your events. Email [email protected] with:

  1. Your partner ID wish (lowercase letters, for example duelfrontier) and display name.
  2. Your deck page URL pattern, for example https://example.com/decks/{ref}.
  3. Your logo: a square icon and a full logo, PNG, at least 512 px.
  4. One real generated play link to test with.

Neither side pays or charges, and either side can stop at any time.

Brand assets

Free to use, and you can link to them directly. We cache them for a day.

AssetTransparent (dark backgrounds)Solid background
Icon, 512cbl-icon-512.pngcbl-icon-512-dark.png
Icon, rounded, 512cbl-icon-512-rounded.png
Icon, 330 (sharpest)cbl-icon-330.png
Full logo, wide (1489 x 148)cbl-logo-full.pngcbl-logo-full-dark.png
Full logo, stacked (794 x 294)cbl-logo-stacked.pngcbl-logo-stacked-dark.png

The full logos have white text. Use the transparent versions on dark backgrounds only. Please don't recolour, stretch or redraw our logo.

Card Battle Lab · Play · Rules · Privacy