# Yuyu-tei Scraper - Japanese TCG Singles Prices & Buylist (`lulzasaur/yuyutei-scraper`) Actor

Scrape Yuyu-tei (yuyu-tei.jp), Japan's top TCG singles shop. Get JPY sell prices, buylist prices, rarity, card number, stock and condition for Pokemon, One Piece, Yu-Gi-Oh, Duel Masters, Weiss Schwarz and 20+ games. Search by keyword or scrape full sets by set code.

- **URL**: https://apify.com/lulzasaur/yuyutei-scraper.md
- **Developed by:** [lulz bot](https://apify.com/lulzasaur) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Yuyu-tei Scraper — Japanese TCG Singles Prices & Buylist

Scrape **[Yuyu-tei](https://yuyu-tei.jp)** (遊々亭), Japan's biggest online TCG singles retailer. Get **sell prices, buylist (kaitori) prices, rarity, card number, stock and condition** in JPY for **Pokemon, One Piece, Yu-Gi-Oh, Duel Masters, Weiss Schwarz, Vanguard, Digimon, Union Arena, hololive and 20+ more card games**.

Perfect for JP↔EN arbitrage research, price tracking, buylist monitoring, set analysis and market data pipelines.

### Features

- 🎴 **25 game sections** — Pokemon (`poc`), Yu-Gi-Oh (`ygo`), One Piece (`opc`), Duel Masters (`dm`), Weiss Schwarz (`ws`), Vanguard (`vg`), Battle Spirits (`bs`), Digimon (`digi`), Union Arena (`ua`), WIXOSS (`wx`), hololive OCG (`hocg`), Genshin (`gcg`) and more
- 💴 **Sell + buylist in one record** — `mode: "both"` merges the store's sell price and the buylist price per card and computes the `spreadJpy`
- 📈 **Buylist boost detection** — flags temporarily boosted buylist prices (`buyPriceBoosted`) with the base price
- 🃏 **Rarity, card number, set code, stock, sold-out status** per card
- 🔍 **Keyword search or full-set scrape** — search by Japanese card name, or dump entire sets by set code (e.g. `sv08a`)
- 🩹 **Damaged inventory** — optionally include the discounted 傷有り (scratched) listings

### Input

```json
{
    "game": "poc",
    "searchQueries": ["ピカチュウ", "リザードン"],
    "setCodes": ["sv08a"],
    "mode": "both",
    "includeDamaged": false,
    "maxItems": 300
}
```

| Field | Description |
|---|---|
| `game` | Game section code (`poc` Pokemon, `ygo` Yu-Gi-Oh, `opc` One Piece, `dm` Duel Masters, `ws` Weiss Schwarz, ...) |
| `searchQueries` | Card names — **use Japanese names** (ピカチュウ, not "pikachu") |
| `setCodes` | Optional: scrape entire sets by Yuyu-tei set code (from `yuyu-tei.jp/sell/poc/s/<code>` URLs) |
| `mode` | `sell`, `buy` (buylist), or `both` (merged, default) |
| `includeDamaged` | Also scrape discounted damaged (傷有り) sell listings |
| `maxItems` | Cap on total records |

> **Important:** Yuyu-tei is a Japanese-language store. Search terms must be Japanese card names — English/romaji searches return no results.

### Output

```json
{
    "game": "poc",
    "gameCode": "poc",
    "setCode": "sv08a",
    "cardId": "10481",
    "name": "ピカチュウex",
    "cardNumber": "236/187",
    "rarity": "UR",
    "condition": "near_mint",
    "recordType": "sell+buylist",
    "sellPriceJpy": 14800,
    "buyPriceJpy": 9000,
    "buyPriceBaseJpy": 4500,
    "buyPriceBoosted": true,
    "spreadJpy": 5800,
    "stock": 3,
    "availability": "In Stock",
    "currency": "JPY",
    "imageUrl": "https://card.yuyu-tei.jp/poc/100_140/sv08a/10481.jpg",
    "url": "https://yuyu-tei.jp/sell/poc/card/sv08a/10481",
    "searchQuery": "ピカチュウ",
    "scrapedAt": "2026-08-03T12:00:00.000Z"
}
```

- `recordType`: `sell+buylist` (merged), `sell` (no buylist match), or `buylist` (Yuyu-tei buys it but has no sell stock)
- `condition`: `near_mint` (傷無し) or `scratched` (傷有り, when `includeDamaged` is on)

### Use Cases

- **JP↔EN arbitrage** — compare Yuyu-tei JPY prices against TCGplayer/Cardmarket
- **Buylist flipping** — find cards where another vendor's sell price beats Yuyu-tei's buylist
- **Price tracking** — schedule daily runs on key cards or whole sets
- **Set analytics** — full-set price distributions by rarity

### Notes

- Prices are in **JPY** and exclude shipping
- Runs use residential proxy by default (Yuyu-tei blocks datacenter IPs)
- Yuyu-tei sells Japanese-language cards only
- This actor scrapes publicly available pages; no login is used

# Actor input Schema

## `game` (type: `string`):

Yuyu-tei game section code. Common codes: poc = Pokemon, ygo = Yu-Gi-Oh OCG, yrd = Yu-Gi-Oh Rush Duel, opc = One Piece, dm = Duel Masters, ws = Weiss Schwarz, vg = Cardfight Vanguard, bs = Battle Spirits, digi = Digimon, ua = Union Arena, wx = WIXOSS, hocg = hololive OCG, gcg = Genshin, fe = Fire Emblem Cipher, sev = Shadowverse Evolve, lo = Lycee Overture, zx = Z/X, pm = Precious Memories, re = Rebirth, gab = Gundam Arsenal Base, chaos = ChaosTCG, xs = Build Divide, ei = Eternal Innocence, ws-r = others. Any code that exists at yuyu-tei.jp/top/<code> works.

## `searchQueries` (type: `array`):

Card names to search. IMPORTANT: Yuyu-tei is a Japanese-language site — use Japanese card names (e.g. ピカチュウ for Pikachu, リザードン for Charizard, ルフィ for Luffy). English/romaji terms usually return 0 results for Japanese games.

## `setCodes` (type: `array`):

Scrape entire sets by Yuyu-tei set/version code instead of (or in addition to) keyword search — e.g. sv08a, sv10, m06 for Pokemon. Find codes in Yuyu-tei set list URLs: yuyu-tei.jp/sell/poc/s/<code>.

## `mode` (type: `string`):

sell = store sell prices with stock; buy = buylist (kaitori) prices Yuyu-tei pays; both = merge sell + buylist prices into one record per card (2 requests per query).

## `includeDamaged` (type: `boolean`):

Also scrape the discounted damaged/played (傷有り) sell inventory as extra records with condition = 'scratched'. Adds one request per query.

## `maxItems` (type: `integer`):

Maximum number of card records to push across all queries and sets.

## `proxyConfiguration` (type: `object`):

Yuyu-tei returns 403 to datacenter IPs — residential proxy is required on the Apify platform (default).

## Actor input object example

```json
{
  "game": "poc",
  "searchQueries": [
    "ピカチュウ"
  ],
  "setCodes": [],
  "mode": "both",
  "includeDamaged": false,
  "maxItems": 300,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchQueries": [
        "ピカチュウ"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("lulzasaur/yuyutei-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "searchQueries": ["ピカチュウ"] }

# Run the Actor and wait for it to finish
run = client.actor("lulzasaur/yuyutei-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchQueries": [
    "ピカチュウ"
  ]
}' |
apify call lulzasaur/yuyutei-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=lulzasaur/yuyutei-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/sedb4ZXaQJQRLAJL3/builds/4tcE6XUbEr1xutwFD/openapi.json
