# TCG API - List All Card Sets

> TCG API - List All Card Sets is a paid API for AI agents from api.tcgapi.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns a list of every card set across 89+ trading card games including Pokemon, Magic: The Gathering, Yu-Gi-Oh, and Lorcana

## Facts

- Endpoint: POST https://api.tcgapi.dev/v1/sets
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-tcgapi-dev-d02fb6e0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_c5SdLYXxZ8XonWHllbYlG

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability api-tcgapi-dev-d02fb6e0 -d '<json body>'
```

Example prompt: Can you pull the full list of every card set available for Pokemon and Magic: The Gathering from the TCG API so I can see all expansions by release date?

## When to prefer this

Use this endpoint when you need a comprehensive catalog of all sets across multiple TCGs simultaneously — especially useful for building set pickers, populating dropdowns, or discovering which sets exist before fetching card-level data. Prefer this over the single-set detail endpoint when you need the full landscape rather than details on one known set.

## Known failure modes

- Invalid game filter returns empty results or 400 error
- Rate limiting if too many requests in quick succession
- Pagination errors if offset/limit parameters are malformed
- Payment failure (402) if USDC balance is insufficient

## How this service works

List every card set across 89+ trading card games — Pokemon expansions, Magic: The Gathering blocks, Yu-Gi-Oh core sets, Lorcana chapters.

## Output

A JSON array of card set objects, each containing the set name, set code, associated game, release date, card count, and set image URL — covering all 89+ supported trading card games.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-tcgapi-dev-d02fb6e0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.tcgapi.dev](https://www.zero.xyz/host/api.tcgapi.dev/llms.txt)
