Directories & relationships
Connect cards through curated entities instead of guessing relationships from card names.
Discover supported directory types#
Directory types vary by game. Discover the available types before showing filters. A directory can represent a character, artist, creature, universe, trainer, or another supported relationship.
GET /v1/games/{gameSlug}/directories
GET /v1/games/{gameSlug}/directories/{directoryType}
GET /v1/games/{gameSlug}/directories/{directoryType}/{entrySlug}Traverse entries and related cards#
Use the exact paths and parameters in the reference. Directory reads use a measured safety limit of 25 rows per page. Follow the returned cursor rather than constructing your own. Counts reflect the latest refreshed directory snapshot.
Read the relationship, not just the card#
Pokémon Pokédex, trainer and connected-art directories have an additive card relationship endpoint. Each item contains the full card and its recorded relationships: primary/cameo/illustration role, trainer kind, variant-key restrictions and illustration position. A card may have more than one relationship. Existing directory detail responses stay unchanged.
GET /v1/games/pokemon/directories/pokedex/25/cards
GET /v1/games/pokemon/directories/pokedex/25/cards?variant=holofoil&limit=25
GET /v1/games/pokemon/directories/trainers/{slug}/cards?role=cameo&locale=en-US&limit=25
GET /v1/games/pokemon/directories/connected-cards/{slug}/cards?order=positionCombine set, locale, type, q, role and variant filters before pagination. Only matching relationships are returned. Empty variant keys mean all card variants; null means a card-level relationship. Nonempty keys restrict the relationship to listed variants. Role and variant must match the same relationship. The variant filter selects applicable relationships, not proof that a card offers that finish; inspect the full card's variants separately. Position values preserve the recorded source order rather than inventing new coordinates.
Keep the same filters and ordering when following a cursor. A changed query rejects the old cursor with 400. An existing directory with no matches returns an empty page; a missing directory returns 404. Unsupported filters are rejected, never silently ignored. Old directory cardCount values remain total, unfiltered counts.
To look up a single card, use GET /v1/games/{gameSlug}/cards/{cardNumber}; that response does not include a reverse directory lookup.