# Yuyu Tei — 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 yuyu-tei.jp.

**Category:** Marketplaces | **Website:** [yuyu-tei.jp/top/opc](https://yuyu-tei.jp/top/opc) | **Docs:** [parse.bot/marketplace/1057f528-1290-408b-be73-25141c13dcf6/yuyu-tei-jp-api](https://parse.bot/marketplace/1057f528-1290-408b-be73-25141c13dcf6/yuyu-tei-jp-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-yuyu-tei-jp-api-1057f528/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_all_cards

List all One Piece cards available on yuyu-tei.jp without requiring a search term. At least one filter (version, rarity, or card_type) must be provided. Results are paginated and grouped by rarity within each page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `card_type` | string | No | Filter results by card type. |
| `page` | integer | No | Page number for pagination (1-based). |
| `rarity` | string | No | Filter results by card rarity. |
| `version` | string | No | Filter by card set/version code (e.g. op01, op16, st01, eb01, promo-op10). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-yuyu-tei-jp-api-1057f528/get_all_cards \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"card_type":"<string>","page":"<integer>","rarity":"<string>","version":"<string>"}'
```

### search_cards

Search One Piece card game single card prices by card code or name. Results are grouped by rarity (P-SEC, SEC, SR, R, UC, C, L, etc.) and include price, stock availability, and card variant information. Each result includes the card's rarity classification and version/set origin.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `card_type` | string | No | Filter results by card type. Omitting returns all types. |
| `rarity` | string | No | Filter results by card rarity. Omitting returns all rarities. |
| `search_word` | string | Yes | Card code (e.g. OP01-001, ST01-012) or card name in Japanese (e.g. ルフィ, ゾロ). |
| `version` | string | No | Filter by card set/version code (e.g. op01, op16, st01, eb01, promo-op10). Omitting returns all versions. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-yuyu-tei-jp-api-1057f528/search_cards \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"card_type":"<string>","rarity":"<string>","search_word":"<string>","version":"<string>"}'
```
