SnapATK
Sign in Register

Data & feeds

JSON, Atom and a dump of every card, under CC BY-SA 4.0.

Everything public on this site is available to a script, under the same CC BY-SA 4.0 licence the cards themselves carry. Every answer is the same rows the pages show, and every answer allows cross-origin reads, so a page on another site can fetch it directly.

Proposals as JSON

GET https://cards.snapatk.org/api/proposals — the browse query. It takes every parameter the browse page takes: q, cardtype (unit or zone), status (repeatable; __none for no status yet), emin/emax, amin/amax, endorsed=1, ai=1, creator=<display name> and sort (newest, hot, top, controversial, needs_votes, discussed, endorsed, updated, relevance). Twenty-five per page; follow next and prev, which carry an opaque cursor.

Text search supports AND, OR, NOT, quoted phrases and parentheses in q. Guided fields all_words, any_words, no_words and phrase combine with it using AND. Each text field accepts up to 200 characters. Filter creation dates with created_from/created_to, and last update dates with updated_from/updated_to (YYYY-MM-DD). Both days are included in UTC; use equal dates for one day, or omit either bound. Invalid syntax or ranges return 400.

GET https://cards.snapatk.org/api/proposals?sort=hot&cardtype=unit

One proposal

GET https://cards.snapatk.org/api/p/<id> — the card, every Version with who made it and why, the live discussion stamped with the version each reply was written against, and the collections it is in. The id is the eight characters after /p/ in any card's URL.

Feeds

https://cards.snapatk.org/feed.atom — new proposals as Atom. Add any browse filter and it becomes a feed of that filter: /feed.atom?creator=snowdrop, /feed.atom?status=in_playtesting, /feed.atom?q=on+reveal. Add sort=updated for recently revised cards instead of new ones. A Discord bot that announces new proposals is one webhook away.

The whole thing

https://cards.snapatk.org/dump/proposals.json — every visible proposal with its current Version, refreshed hourly and immediately after a removal or creator identity change. Art is not inlined: each entry carries the URL of its master, its thumbnail and the composited card. This is the spreadsheet, and the deck-builder prototype's starting point.

Pictures

Art is served from /art/ at its stored size (768×1024 for a Unit, 720×1280 for a Zone) and as a half-size thumbnail beside it; both are immutable and cached for a year. /p/<id>/card.webp is the finished card — art, frame, nameplate and gems — and is what a pasted link shows.

Please

Credit the creator named on each card; that is what BY means. Cache what you fetch; the site runs on a small machine it shares with the game. Nothing here needs a key, and nothing here will ever include an email address or a vote.