# TCG API - Single Card Details by ID

> TCG API - Single Card Details by ID 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 detailed metadata for a single trading card (name, set, image URL, rarity, TCGPlayer ID) identified by its numeric card ID, covering 89+ trading card games.

## Facts

- Endpoint: POST https://api.tcgapi.dev/v1/cards/33831
- 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-a19e9c00
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_azGe1IrupArbwCZwh-tvY

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

Example prompt: Can you look up the details for trading card ID 5846 — I need the card name, set, rarity, and image URL from the TCG API?

## When to prefer this

Use this endpoint when you already have a specific numeric card ID and need to resolve it to full card metadata. Prefer this over full-text search when you have an exact ID reference (e.g. from a previous search result, a user's collection database, or a TCGPlayer product ID). Ideal for enriching card records with names, images, and rarity data one card at a time.

## Known failure modes

- Card ID not found — returns 404 or empty result for non-existent numeric IDs
- Invalid card ID format — non-numeric or out-of-range IDs may return an error
- Payment failure — x402 payment not accepted or insufficient USDC balance
- Rate limiting — too many requests in a short window
- Card exists but has incomplete metadata (missing image URL or rarity)

## How this service works

Single card details (name, set, image, rarity, TCGPlayer ID) for Pokemon, Magic: The Gathering, Yu-Gi-Oh, Lorcana, and 85+ other trading card games.

## Output

A JSON object containing the card's full metadata: card name, set name, rarity tier, image URL, TCGPlayer product ID, and game name for the requested card ID.

## Example request

```json
{
 "cardId": 33831
}
```

## More

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