cardcorpus

Plays

A play is every card that plays the same in a deck, whatever its picture: one name, and text that works the same way. It answers the deck builder's question: can this older card stand in for that one?

What a play is

The game's rules let you play an older print in place of a card with the same name only when its text works the same. A play is the cards that pass that test together. Base Set's Switch ("Switch 1 of your Benched Pokémon with your Active Pokémon") and Scarlet & Violet's ("Switch your Active Pokémon with 1 of your Benched Pokémon") are worded differently, but they do the same thing, so they are one play, with every Switch printed in between: 65 cards.

A small difference in effect is enough to split them. A card that shuffles 3 cards and one that shuffles up to 3 are two plays, and so are a Rainbow Energy that does 10 damage and one that places a damage counter. When it is unclear whether two cards play the same, they are kept apart.

Each play has a file, plays/{id}.json: its name, its cardCount and its cards, oldest first. Each card is a pointer with what a tile draws (name, number, image) and the painting it prints, so one request is enough to show a "plays the same as" row.

curl https://pokemon.cardcorpus.com/v1/plays/switch-4175.json
{
  "id": "switch-4175",
  "name": "Switch",
  "cardCount": 67,
  "cards": [
    {
      "$kind": "card",
      "set": "english/base-set",
      "id": "95",
      "name": "Switch",
      "number": { "printed": "95/102" },
      "painting": { "$kind": "painting", "id": "switch-jqev" },
      "basis": "wording",
      // … 2 more fields
    },
    {
      "$kind": "card",
      "set": "english/trainer-deck-a",
      "id": "95",
      "name": "Switch",
      "number": { "printed": "95/102" },
      "painting": { "$kind": "painting", "id": "switch-jqev" },
      "basis": "wording",
      // … 2 more fields
    },
    // … 65 more
  ]
}
200application/json: a play and two of its 65 cards

A card's play

A card in its set file names its play in play, a pointer with the play's id. Fetch plays/{id}.json to list the rest: Base Set's Potion names potion-3362, so its play is plays/potion-3362.json.

Only plays of two cards or more have a file. A card with no play plays like no other card: no other print, in any set, has its name and text.

A play's id is its cards' English name and a short code, such as switch-4175. It never changes, even as cards join it, so a stored play pointer keeps working.
curl https://pokemon.cardcorpus.com/v1/sets/english/base-set.json
{
  "cards": [
    {
      "id": "94",
      "name": "Potion",
      "painting": { "$kind": "painting", "id": "potion-gyu4" },
      "play": { "$kind": "play", "id": "potion-3362" },
      // … 14 more fields
    },
    // … 101 more
  ],
  // … 19 more fields
}
200application/json: a card of the set with its play

Why each card is there

Every card in a play says why in basis, judged from what the card itself prints:

basisWhat it means
identicalIt prints the play's wording, word for word.
wordingIt words it differently, in a way that plays the same: Base Set's Switch.
errataAn official erratum changes how it plays, and with it, it plays the same as the rest.
unreadIts text isn't read yet, so it is there because it reprints another card of the play.

The wording each card prints is in its set's printed text.

plays.js
const get = (path) =>
  fetch(`https://pokemon.cardcorpus.com/v1/${path}`).then((res) => res.json());

const set = await get("sets/english/base-set.json");
const potion = set.cards.find((c) => c.name === "Potion");
// No `play` means no other card plays like it
const play = await get(`plays/${potion.play.id}.json`);

console.log(play.name, "·", play.cardCount, "cards play the same");
for (const erratum of play.errata ?? []) {
  console.log("Erratum:", erratum.text.join(" "));
}
// Oldest first, each with why it is in the play
for (const card of play.cards.slice(0, 3)) {
  console.log(card.set, card.number.printed, "·", card.basis);
}
Prints
Potion · 54 cards play the same
Erratum: Heal 30 damage from 1 of your Pokémon.
english/base-set 94/102 · errata
english/trainer-deck-a 94/102 · errata
english/base-set-2 122/130 · errata

Official errata

The Pokémon Company sometimes corrects a card after printing, and the correction is how it plays from then on. A play follows the official errata. Potion now heals 30 damage, so the old Potions that remove 2 damage counters play as the new one, and every Potion is one play.

A play whose cards play by an erratum lists it in errata. Its scope says what it corrects:

  • name: every card with that name. Its text is the corrected text.
  • printing: one printing only. Its parts name what changed, such as attack1 text or retreat, with the corrected value.
  • rule: a rule for a kind of card, such as every Pokémon Power stopping under any Special Condition.

change says what the erratum changed, and listed when the official errata page listing it was last updated.

curl https://pokemon.cardcorpus.com/v1/plays/potion-3362.json
{
  "id": "potion-3362",
  "name": "Potion",
  "cardCount": 54,
  "errata": [
    {
      "id": "potion",
      "scope": "name",
      "name": "Potion",
      "text": ["Heal 30 damage from 1 of your Pokémon."],
      "change": "Heals 30 damage instead of 20 damage.",
      "listed": "2024-11-07"
    }
  ],
  "cards": [
    {
      "$kind": "card",
      "set": "english/base-set",
      "id": "94",
      "basis": "errata",
      // … 5 more fields
    },
    // … 53 more
  ]
}
200application/json: a play whose cards play by an erratum

Plays and paintings

A painting and a play group the same prints two ways. A painting is one picture on any text; a play is one text under any picture.

QuestionFollow
Can I put this card in my deck in place of that one?play
Where else does this artwork appear?painting
Where was this exact card printed again?reprints, counterparts (Links between cards)

A reprint always plays the same as its original, so both are in the same play. A play goes further: it also holds cards with new art and the same text, which are not reprints.

English cards, for now

Plays cover English cards only. A translation sometimes words a card so it plays differently from the English, so other languages' cards join plays once their own text has been read. Until then, a card in another language has no play, even when its English counterpart does.

The play object

idstringalways present
The play's own id: its cards' English name and a short code, such as switch-4175. It stays the same as cards join the play.
namestringalways present
The name its cards share.
cardCountintegeralways present
How many cards are in it: the length of cards.
erratalist of object
The official errata its cards play by, where any do: an erratum to the name rewrites every card of it (every Potion heals 30), one to a printing corrects that printing only. Its cards whose basis is errata play by them.
cardslist of pointeralways present
Every card in it, oldest first.

A card in a play

setstringalways present
The set's id (sets/{catalog}.json).
idstringalways present
The card's id, unique in its set.
namestringalways present
A copy of the target's own name.
numberobjectalways present
A copy of the target's own number. Its number as printed ("4/102", "SWSH001"), and that number without its set total.
pictureobject
A copy of the card's front picture id.
paintingpointer
The painting it prints, where another card prints it too.
basisenum
Why it is in the play, from its printed text, read off its picture: identical, it prints the play's wording (the one most of its cards print); wording, it words it differently in a way that plays the same; errata, an official erratum (errata) makes it play the same; unread, its own text isn't read yet, so it is here by being a reprint or by its sources' text.
3 more fields
englishNamestring
A copy of the target's own englishName.
subtitlestring
A copy of the target's own subtitle. The smaller name the card prints beside its own, as it prints it, in its language, where it prints one: "Professeur Chen" on a French Professor's Research, "オーキド博士" on a Japanese one. Where we have no printed subtitle, the English one on a card whose name is its English one (see the guide).
englishSubtitlestring
A copy of the target's own englishSubtitle. The smaller name the card prints beside its own, in English, where it prints one: the professor on a Professor's Research ("Professor Oak"), the boss on a Boss's Orders ("Ghetsis"). It says which of the cards sharing a name this is, but isn't part of the name: a deck counts them all as one card. Always one of the card's characters (see the guide). Our own pages show it joined to the name: "Professor's Research (Professor Oak)".

An erratum

idstringalways present
The erratum's id, such as potion.
scopeenumalways present
What it corrects: name, every card of that name; printing, the printing named; rule, a kind of card.
namestringalways present
The card name it corrects.
textlist of string
The corrected text, one string a paragraph, for an erratum to a name.
partsobject
For an erratum to a printing, the parts it corrects, as the card's printed text names them (attack1 text, ability1 text, attack2 cost, retreat, effect), with their corrected value.
changestringalways present
What it changed, in Pokémon's words.
listedstringalways present
When Pokémon's errata page that lists it was last updated, YYYY-MM-DD.