# Snkrdunk — 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.

> Access data from snkrdunk.com.

**Category:** Marketplaces | **Website:** [snkrdunk.com/en/brands/onepiece/trading-cards](https://snkrdunk.com/en/brands/onepiece/trading-cards) | **Docs:** [parse.bot/marketplace/898ec767-5fae-46d1-b865-6bfc416c6c8a/snkrdunk-com-api](https://parse.bot/marketplace/898ec767-5fae-46d1-b865-6bfc416c6c8a/snkrdunk-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-snkrdunk-com-api-898ec767/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_card_prices

Retrieve minimum prices for a specific trading card across all available condition tiers (A, B, C, D, PSA 10, PSA 9, PSA 8 or under, BGS 10 BL, BGS 10 GL, Other Graded). Not all conditions may have listings; only conditions with active listings are returned when currency is 'usd'; all condition tiers are returned (with null prices for unavailable ones) when currency is 'jpy'. Works for both One Piece and Pokémon card IDs.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `card_id` | string | Yes | Numeric card ID from search_cards results (e.g. 854923). |
| `currency` | string | No | Currency for prices. 'usd' returns prices in US Dollars, 'jpy' returns prices in Japanese Yen. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-snkrdunk-com-api-898ec767/get_card_prices \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"card_id":"<string>","currency":"<string>"}'
```

### get_card_variations

Retrieve all variations (different editions, promos, regional versions) of a specific card sharing the same card code. Each variation has its own ID that can be used with get_card_prices. Works for both One Piece and Pokémon card IDs.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `card_id` | string | Yes | Numeric card ID from search_cards results (e.g. 854923). |
| `currency` | string | No | Currency for prices. Accepted for API consistency; variations do not include price data. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-snkrdunk-com-api-898ec767/get_card_variations \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"card_id":"<string>","currency":"<string>"}'
```

### search_cards

List One Piece or Pokémon trading cards, optionally filtered by category. When a query is provided, uses a dedicated search endpoint that filters server-side by card code or name (e.g. 'st21-015' or 'Luffy'). Without a query, results are ordered by the chosen sort and paginated by category. The 'all' category returns a cross-game listing of both One Piece and Pokémon cards. Note: the search endpoint does not support category/sort filtering; those params apply only to non-query browsing. When currency is 'jpy', prices are returned in Japanese Yen from the Japanese version of the site.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category` | string | No | Category filter. Use 'single_card' for One Piece single cards, 'box_and_packs' for One Piece boxes/packs, 'pokemon_card' for Pokémon trading cards, or 'all' for a cross-game listing of both One Piece and Pokémon. |
| `currency` | string | No | Currency for prices. 'usd' returns prices in US Dollars from the English site, 'jpy' returns prices in Japanese Yen from the Japanese site. |
| `page` | integer | No | Page number for pagination. |
| `per_page` | integer | No | Number of results per page (max 50). |
| `query` | string | No | Search keyword to filter cards by name or card code. |
| `sort` | string | No | Sort order for results. 'price_asc' returns cheapest first, 'price_desc' returns most expensive first. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-snkrdunk-com-api-898ec767/search_cards \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category":"<string>","currency":"<string>","page":"<integer>","per_page":"<integer>","query":"<string>","sort":"<string>"}'
```
