# Ygoprodeck — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search and retrieve detailed Yu-Gi-Oh! card information including attributes, effects, and images from the comprehensive YGOProDeck database. Browse the complete card catalog or look up specific cards to find everything you need about their stats and abilities.

**Category:** Entertainment | **Website:** [ygoprodeck.com/](https://ygoprodeck.com/) | **Docs:** [parse.bot/marketplace/788e9356-c857-4d32-bff3-22ba452c5da0/ygoprodeck-com-api](https://parse.bot/marketplace/788e9356-c857-4d32-bff3-22ba452c5da0/ygoprodeck-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-ygoprodeck-com-api-788e9356/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_card_details

Retrieve comprehensive details for a specific Yu-Gi-Oh! card by ID or exact name. Returns a single card object with full information including pricing, set appearances, and images. At least one of id or name must be provided.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `id` | string | No | Card ID (e.g. '89631139'). At least one of id or name is required. |
| `name` | string | No | Exact card name (e.g. 'Blue-Eyes White Dragon'). At least one of id or name is required. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-ygoprodeck-com-api-788e9356/get_card_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id":"<string>","name":"<string>"}'
```

### get_cards

Search for Yu-Gi-Oh! cards using various filters. Supports fuzzy name search, exact name, type, attribute, level, atk, def, archetype, and race. Returns paginated results with metadata. When using num or offset, both must be provided together.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `archetype` | string | No | Card archetype (e.g. 'Blue-Eyes', 'Dark Magician'). |
| `atk` | integer | No | Attack value. |
| `attribute` | string | No | Card attribute. |
| `def` | integer | No | Defense value. |
| `fname` | string | No | Fuzzy name search keyword (e.g. 'Blue-Eyes'). |
| `level` | integer | No | Card level or rank. |
| `name` | string | No | Exact name of the card. |
| `num` | integer | No | Number of results per page. Must be used together with offset. |
| `offset` | integer | No | Pagination offset. Must be used together with num. |
| `race` | string | No | Card race or spell/trap type (e.g. 'Dragon', 'Spellcaster', 'Continuous', 'Quick-Play'). |
| `type` | string | No | Card type (e.g. 'Normal Monster', 'Spell Card', 'Effect Monster', 'Fusion Monster'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-ygoprodeck-com-api-788e9356/get_cards \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"archetype":"<string>","atk":"<integer>","attribute":"<string>","def":"<integer>","fname":"<string>","level":"<integer>","name":"<string>","num":"<integer>","offset":"<integer>","race":"<string>","type":"<string>"}'
```

### list_all_cards

List all cards available in the YGOProDeck database with pagination. Returns cards in alphabetical order with full card data and pagination metadata.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Number of cards to return per page. |
| `offset` | integer | No | Pagination offset. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-ygoprodeck-com-api-788e9356/list_all_cards \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","offset":"<integer>"}'
```
