# TCG API - Card Set Details

> TCG API - Card Set Details 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 release date, card count, game name, and set image for a specific Pokemon, Magic: The Gathering, Yu-Gi-Oh, or Lorcana card set by set ID.

## Facts

- Endpoint: POST https://api.tcgapi.dev/v1/sets/100001
- 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-661b66e1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Vfj4oh_0wswwroCvQ2eBc

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-661b66e1 -d '<json body>'
```

Example prompt: Can you pull up the set details for Pokemon set ID 100001 — I need the release date, total card count, and the set image?

## When to prefer this

Use this endpoint when you need structured metadata (release date, card count, game, image) for a specific, known TCG set identified by its set ID. Prefer this over the full set listing endpoint when you already know the set ID and only need details for one set.

## Known failure modes

- Invalid or unknown set ID returns a 404 or empty result
- Payment failure via x402 protocol returns 402 Payment Required
- Malformed POST body returns a 400 error
- Set ID exists but belongs to a game outside the supported list returns no results

## How this service works

Card set details (release date, card count, game, image) for any Pokemon, Magic: The Gathering, Yu-Gi-Oh, or Lorcana set.

## Output

A JSON object containing the set's name, release date, total card count, associated game (e.g. Pokemon, Magic: The Gathering, Yu-Gi-Oh, Lorcana), and a set image URL.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-tcgapi-dev-661b66e1/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)
