Skip to content

Palworld TCG card data ​

Ruleset and calculator scripts get Palworld TCG cards as plain objects straight from the card catalog. This page lists every field on those objects and in the catalog globals, with a real example and a few recipes.

Where the cards show up:

  • Card rules receive one card as their first argument.
  • Deck and deck set rules receive cardsById, an object keyed by card ref that holds every card in the deck (it can hold more).
  • Calculators receive cardsById as their second argument.

See the ruleset script API and the calculator script API for the full function signatures.

Card keys and deck refs ​

A Palworld TCG card in the catalog is a card identity: one playable card with all of its printings (parallel rarities, trial deck and promo reprints) listed under printings. Two kinds of id matter:

  • The identity id, card.id: pw- plus a hash, like pw-2b062b5618e4f713d60f.
  • A printing id: the product code and collector number in lowercase, like ebp01-006. A parallel adds its rarity: ebp01-006sr is the SR parallel.

Each printing's printed card number and rarity are in printing.metadata ({ "cardNumber": "EBP01-006", "rarity": "u" }).

Decks store printing ids. cardsById is keyed by the deck's refs, and each one points to its identity, so two printings of the same card in one deck resolve to the same object:

  • Count copies of "the same card" by card.id, not by ref.
  • To read the printing a ref points to, find it in the list: card.printings.find((p) => p.id === ref).
  • ctx.globals.aliases[ref] gives the identity id for any printing id, when globals are available.

A card rule gets the identity card itself, so card.id is always the identity id.

The game fields describe the card's default printing (game.defaultPrintingId). That matters for per-printing fields such as rarity, setId and collectorNumber; printingRarities lists the rarity of every printing.

Guard against a missing card before reading from it: cardsById[ref] can be undefined when the catalog doesn't know a ref.

Card fields ​

Every card, in every game, has these top-level fields:

PropertyTypeDescription
idstringCatalog id of the card identity ("01DE012" in LoR, "pikachu-ex--1f29b66b68bc" in Pokémon).
slug?stringThe card's public URL segment (#2189, ADL §64): a frozen English slug, identical in every locale. Equals id for a game whose readable slugs are off (readableCardSlugsEnabled in @turny/game-adapters) or a card that has no readable slug yet. Pokémon keeps its <name>--<hash12> id as its slug; LoR's switch stays off for good, so its URLs stay its card codes. A page whose route param already equals slug renders; any other known key (the id, a history slug, an alias) redirects to it, so a card whose slug equals its id never redirects to itself.

The catalog export (#2193) writes it only for a switched-on game and only when it differs from id, so an absent slug means the id: always read it through cardSlugOf (@turny/game-adapters).
namestringDisplay name in the catalog locale.
setCodestringSet of the card, or of its default printing ("set1", "sv2", "OGN").
collectible?booleanFalse for cards that can't go in a deck (LoR tokens and level-ups).
assets?CardCatalogCardAssetContract[]Images of the card's default printing.
printings?CardPrintingContract[]Every printing of the identity, default printing first (only some on a partial card, see partialPrintings). Absent in LoR.
printingCount?numberLean list files (#1323), which omit printings, partial cards (see partialPrintings) and per-identity core files (#1522): how many printings the full card has. Absent on full cards and in games without printings.
printingSetCodes?string[]Lean list files (#1323), partial cards and per-identity core files: the distinct set codes across the full card's printings, in printing order. Absent on full cards.
printingsFile?stringPer-identity core files (#1522) only: the card's printings file (identities/<id>.printings.<hash8>.json, relative to the locale directory, see cardCatalogIdentityPrintingsFileName), in place of printings. Absent when the printings are inline in the core file.
partialPrintings?booleanTrue on a partial card (the featured-cards bundle, #1330): printings holds only some of the identity's printings (its default printing plus the ones the featured content references), while printingCount / printingSetCodes summarize all of them. Absent on full and list cards.
hasImage?booleanFalse when none of the card's printings has an image in this language. Absent means it has one.
languages?CardLanguageEntry[]Catalog locales that hold real text for this card (#2552). A locale whose entry is only fallback text is absent. Absent on older exports and in single-locale games.
game?TGameDataGame-specific fields; see the per-game *CardGameData type.

Each entry of languages (CardLanguageEntry):

PropertyTypeDescription
localestringCatalog locale ("zh-tw", "de_de"), not an app locale.
statusCardLanguageStatusWhere the text comes from: official (printed) or unofficial (a translation).

Values of a language entry's status (CardLanguageStatus):

MemberValueDescription
Official"official"Printed in this language by the publisher.
Unofficial"unofficial"Real text the publisher did not print in this language: a reconstruction or a translation.

Printings ​

Each entry of printings (CardPrintingContract):

PropertyTypeDescription
idstringPrinting id; deck refs use it ("sv2-11" for Pokémon, "ogn-030-298" for Riftbound).
setCodestringSet the printing belongs to ("sv2", "OGN").
number?stringCollector number within the set.
language?stringLanguage of the printing, when it is not the catalog's own.
releaseDate?stringRelease date as the source gives it ("2023/06/09").
assets?CardCatalogCardAssetContract[]This printing's own images.
variants?CardVariantContract[]Treatments of this printing (foil, alternate art, …).
metadata?JsonObjectExtra per-printing data (rarity, artist, store ids); game-specific.

Each entry of a printing's variants:

PropertyTypeDescription
idstringVariant id, usually <printing id>:<kind> ("ogn-030-298:normal").
kind?stringTreatment kind ("normal", "foil", "alternate_art"); values are per game.
label?stringDisplay label, when the kind alone is not enough.
metadata?JsonObjectExtra per-variant data; game-specific.

Each entry of assets (on the card and on each printing):

PropertyTypeDescription
kindCardAssetKindWhat the image shows: "card" (framed render), "full" (full art), "icon", "banner", "slice", "portrait", …
urlstringImage URL.
format?CardAssetFormatImage format ("webp"), when known.
width?numberWidth in pixels, when known.
height?numberHeight in pixels, when known.
metadata?JsonObjectExtra per-asset data; game-specific.

Game fields (card.game) ​

Everything specific to Palworld TCG lives on card.game. Classification values (cardType, color, elements, rarity) are lower-case tokens you can compare directly; look them up in the globals for display names. Souls print no cost or colour, so cost and color can be null.

PropertyTypeDescription
colorPalworldColor | nullCost-background colour; null on Souls.
cardTypePalworldCardTypeCard kind: "pal", "structure", "gear", "event" or "soul".
subtypePalworldPalSubtype | nullPal subtype ("normal" / "lucky"); null on every non-Pal.
isLuckybooleanTrue when the card carries the lucky icon. The deck rule's "at most 8 lucky cards" reads this flag rather than the subtype, so a future Gear or Event with the icon can count once the source exposes it. Today the official card list has no separate icon field, so ingest derives the flag from the Lucky Pal subtype.
deckCopyLimitnumber | PalworldDeckCopyLimit | nullThe copy limit this card's own text sets for its name, replacing the default PALWORLD_DEFAULT_DECK_COPY_LIMIT: a number ("up to 8 cards with the same card name as this card", Swee – Hibernating Together), PalworldDeckCopyLimit.Unlimited ("any number of cards", Beegarde), or null when the text sets none. Parsed from the rules text at ingest.
costnumber | nullPrinted cost (◇N); null on Souls.
powernumber | nullPower for a Pal; durability for a Structure (printed in the same field). null on Gear, Events and Souls.
strikenumber | nullStrike (source attack); Pals only, null otherwise.
elementsPalworldElement[]Pal elements (["dragon", "electric"]); [] on non-Pals.
workSuitabilityPalworldWorkSuitability[]Work suitability (["electricity", "crafting"]): what a Pal has, or what a Structure needs; [] on other cards.
traitsstring[]Trait tags the source mixes into the aptitude field (["Legendary"], ["Marcus"]); [] when none.
keywordsstring[]Keywords the rules text uses, as globals.keywords keys (["quick", "brave"]); numeric variants ([Brave 2]) collapse to their base id.
orientationPalworldCardOrientation"landscape" for Structures, "portrait" otherwise.
setIdstringProduct code of the default printing's set, with the English E prefix ("EBP02"); a globals.sets key.
collectorNumberstringCollector number within the set, without the set prefix or parallel suffix ("001").
variantSuffixstring | nullParallel suffix of the default printing ("OSR", "SSP", promo "S"); null on a base printing.
rarityPalworldRarityRarity of the default printing.
printingRarities?PalworldRarity[]Every printing's rarity, distinct, in ladder order: parallels and promos (OSR, SSP, S) sit on non-default printings, and lean list cards carry no printings, so the rarity filter and rarity: search read this (#2640). Non-render (image ingest ignores it).
isProvisionalbooleanTrue while the card is announced but not yet released: every printing's set has a release date in the future (as of catalog generation). A set with no release date (promos, PR2026) counts as RELEASED, so a promo-only card is never provisional (add-game SKILL.md §2 "Unreleased cards": a missing date counts as released). Viewer-independent (ADL §42), so it rides the public card JSON.
legalitiesPalworldCardLegalitiesLegality per card rule id; see PalworldCardLegalities.
defaultPrintingIdstringId of the default printing (lower-cased card_number, "ebp01-001"): the suffix-free printing of the earliest set. Always the first entry of the card's printings.
text?stringRules text with [Keyword] markers and :palworld_<token>: symbol tokens (:palworld_act:, :palworld_cost_2:).
textPlain?stringRules text without markup; [Keyword] markers stay and :palworld_…: tokens become {…}.
englishName?stringThe English card name ("Orserk – Thunderclap Roar"), the interchange name deck lists carry so a list copied in one locale reads in another. Present on every card of a translated catalog (ja), where name is localized or falls back to English; absent in the English catalog, where name is the English name.

Globals (ctx.globals) ​

The catalog's globals are lookup tables for the values on a card (elements: ["fire"] resolves through ctx.globals.elements.fire), the keyword glossary, the rules-text symbols and the printing alias map.

When globals are available

Globals are passed to ruleset scripts as ctx.globals (the last argument). Calculators may not receive ctx at all, and a ruleset can run without it too. Always check ctx && ctx.globals before using them and fall back to the raw value.

PropertyTypeDescription
colors?Record<string, PalworldCatalogColorLookupEntry>Colours by PalworldColor value.
types?Record<string, PalworldCatalogTypeLookupEntry>Card kinds by PalworldCardType value.
elements?Record<string, PalworldCatalogElementLookupEntry>Elements by PalworldElement value.
workSuitability?Record<string, PalworldCatalogWorkSuitabilityLookupEntry>Work suitability by PalworldWorkSuitability value.
rarities?Record<string, PalworldCatalogRarityLookupEntry>Rarities by PalworldRarity value.
sets?Record<string, PalworldCatalogSetLookupEntry>Products by code ("EBP02" → Legends Awaken).
formats?Record<string, PalworldCatalogFormatLookupEntry>Formats by PalworldTournamentFormatId value.
keywords?Record<string, PalworldCatalogKeywordEntry>Keyword glossary by normalized keyword id; only keywords pool cards use.
symbols?Record<string, PalworldCatalogSymbolEntry>Inline symbol-token lexicon (:palworld_…:), keyed by token key.
aliases?Record<string, string>Printing id → owning card identity id ("ebp02-001osr" → "pw-…"); identity ids map to themselves. Deck refs may be either. Same name and meaning as Riftbound's globals.aliases.

Lookup entries ​

Every table except symbols and aliases maps a key to an entry with these fields:

PropertyTypeDescription
labelstringDisplay name ("Red", "Dawn of Palpagos").
color?stringDisplay color set by an operator override; usually absent.
icon?string | nullIcon image URL set by an operator override; usually absent.
order?numberSort position in filters and lists, lowest first.
showInFilter?booleanWhether the entry is offered as a filter option; absent means shown.
metadataRef?PalworldCatalogMetadataReferenceAnchor an operator override is matched on.

Set entries ​

Entries of sets add:

PropertyTypeDescription
releaseDatestring | nullRelease date (YYYY-MM-DD); null when the source gives none (promos). A null date means RELEASED for legality and provisional status, never "unreleased".
productTypePalworldProductTypeProduct kind from the products endpoint.

Keyword entries ​

Entries of keywords add:

PropertyTypeDescription
description?stringReminder text; may contain :palworld_…: symbol tokens.

Symbol entries ​

Each entry of symbols:

PropertyTypeDescription
tokenstringThe full inline token as it appears in rich text (":palworld_act:").

Example card ​

Foxparks, Light of Courage, trimmed to two printings with one image each:

json
{
  "id": "pw-2b062b5618e4f713d60f",
  "slug": "foxparks-light-of-courage",
  "name": "Foxparks – Light of Courage",
  "setCode": "EBP01",
  "collectible": true,
  "assets": [
    {
      "kind": "card",
      "url": "https://cdn.turny.gg/cards/palworld/assets/pw-2b062b5618e4f713d60f-card-bec1d0aec12ede40ac986126217b21e2ba15f33c6ce2115b091d4f81c9cc1887.webp"
    }
  ],
  "printings": [
    {
      "id": "ebp01-006",
      "setCode": "EBP01",
      "number": "006",
      "releaseDate": "2026-07-30",
      "variants": [
        {
          "id": "ebp01-006:normal",
          "kind": "normal"
        }
      ],
      "metadata": {
        "cardNumber": "EBP01-006",
        "rarity": "u"
      }
    },
    {
      "id": "epr-012",
      "setCode": "PR2026",
      "number": "012",
      "assets": [
        {
          "kind": "card",
          "url": "https://cdn.turny.gg/cards/palworld/assets/epr-012-card-3ced9e1cc51be19e109e289e7616edc96c30500dc1532c8d72a13077bc249101.webp"
        }
      ],
      "variants": [
        {
          "id": "epr-012:normal",
          "kind": "normal"
        }
      ],
      "metadata": {
        "cardNumber": "EPR-012",
        "rarity": "pr"
      }
    }
  ],
  "hasImage": true,
  "game": {
    "color": "red",
    "cardType": "pal",
    "subtype": "normal",
    "isLucky": false,
    "deckCopyLimit": null,
    "cost": 2,
    "power": 200,
    "strike": 1,
    "elements": ["fire"],
    "workSuitability": ["kindling"],
    "traits": [],
    "keywords": ["brave"],
    "orientation": "portrait",
    "setId": "EBP01",
    "collectorNumber": "006",
    "variantSuffix": null,
    "rarity": "u",
    "printingRarities": ["u", "sr", "pr"],
    "isProvisional": false,
    "legalities": {
      "standard": "legal",
      "standard_future": "legal"
    },
    "defaultPrintingId": "ebp01-006",
    "text": ":palworld_auto:[Brave 300] (:palworld_on_attack:This card gets :palworld_power:+300 until end of turn)",
    "textPlain": "{auto}[Brave 300] ({on_attack}This card gets {power}+300 until end of turn)"
  }
}

Common recipes ​

js
// Calculator: copies at each cost, 6+ grouped.
export default function compute(pile, cardsById) {
  const buckets = [0, 0, 0, 0, 0, 0, 0];

  Object.keys(pile).forEach((ref) => {
    const game = (cardsById[ref] && cardsById[ref].game) || {};

    if (typeof game.cost !== "number") {
      return; // Souls print no cost.
    }

    buckets[Math.min(game.cost, 6)] += pile[ref];
  });

  return {
    widgets: [
      {
        kind: "histogram",
        label: "Cost curve",
        buckets: buckets,
        labels: ["0", "1", "2", "3", "4", "5", "6+"],
      },
    ],
  };
}
js
// Calculator: Pal copies per element. A Pal with two elements counts for both.
export default function compute(pile, cardsById) {
  const counts = {};

  Object.keys(pile).forEach((ref) => {
    const game = (cardsById[ref] && cardsById[ref].game) || {};

    (game.elements || []).forEach((element) => {
      counts[element] = (counts[element] || 0) + pile[ref];
    });
  });

  return {
    widgets: [
      {
        kind: "donut",
        label: "Elements",
        segments: Object.keys(counts).map((element) => ({
          label: element,
          value: counts[element],
        })),
      },
    ],
  };
}
js
// Card rule: not banned in Standard. A card with no entry counts as legal.
export default function validateCard(card) {
  const legalities = (card.game && card.game.legalities) || {};

  if (legalities.standard !== "banned") {
    return true;
  }

  return {
    valid: false,
    issues: [{ message: card.name + " is banned in Standard." }],
  };
}
js
// Card rule: red cards only. Uses the colour's display name when globals exist.
export default function validateCard(card, ctx) {
  const game = card.game || {};

  if (game.color === "red") {
    return true;
  }

  const globals = ctx && ctx.globals;
  const red =
    globals && globals.colors && globals.colors.red
      ? globals.colors.red.label
      : "red";

  return {
    valid: false,
    issues: [{ message: card.name + " is not a " + red + " card." }],
  };
}

Turny.gg documentation