Hareruya API & Scraper
The Hareruya API turns hareruyamtg.com, Japan's largest Magic: The Gathering shop, into JSON in four actions.
🤖 Using an AI assistant? Copy this link into ChatGPT / Claude / Cursor — it reads every endpoint and parameter instantly and tells you if this API fits your use case.
search finds cards by English or Japanese name, by exact English card name or by set, with filters for language (Japanese, English, other), foil, rarity, format legality, price range and stock, sorted by relevance, price or release date, 1 to 100 rows a page. Every row is one printing in one language and one condition: the price in yen, the stock the shop shows right now, its own weekly sales count, and the other conditions of the same printing with their prices and stock. card returns one printing in full: every language and condition the shop sells, individual graded or high-value copies with their own price, weekly sales per language, and the card's data (type, mana cost, rules text, rarity, set, illustrator, legal formats), in Japanese or English page text. buylist returns what Hareruya pays for a card in NM condition (買取), never mixed with the sale price. sets lists the 422 sets the shop files cards under, with the ids search and buylist take. One ReefAPI key, the standard { ok, data, meta, error } envelope, no Hareruya account.
How Hareruya names a product — and the fields it becomes
Hareruya sells each printing per language and per condition, and some expensive cards as individual copies with their own photo. The API keeps the shop's title and splits out what you filter on.
| on the shop | field | value |
|---|---|---|
| 《稲妻/Lightning Bolt》[4ED] 赤C | name, card_name, set_code | the title, Lightning Bolt, 4ED |
| 【JP】 / 【EN】 / 【FR】 | language | JP / EN / FR |
| 【NM 在庫:5】 | condition, stock | NM, 5 |
| SP ¥3,150 18 (other conditions) | other_conditions[] | {condition SP, price_jpy 3150, stock 18} |
| BGS8.5 (10317) | condition, single_copy, copy_code | BGS8.5, true, 10317 |
| 週間販売数 28点 | weekly_sales | 28 |
| 【買取価格】¥ 400 | buy_price_jpy (buylist only) | 400 |
Prices are yen as the shop prints them, with a thousands comma (¥1,000 = 1000), on the Japanese and the English site alike. The buylist quotes NM copies only.
Real request and response JSON
Captured from the indexed primary action, search, on .
{
"method": "POST",
"url": "https://api.reefapi.com/hareruya/v1/search",
"headers": {
"x-api-key": "$REEF_KEY",
"content-type": "application/json"
},
"body": {
"query": "Lightning Bolt",
"per_page": 20
}
}{
"ok": true,
"meta": {
"api": "hareruya",
"endpoint": "search",
"mode": "live",
"latency_ms": 2445.7,
"record_count": 20,
"bytes": 88700,
"cache_hit": false,
"total": 141,
"total_capped": false,
"reachable": 141,
"page": 1,
"per_page": 20,
"last_page": 8,
"sort": "relevance",
"filters_applied": {
"query": "Lightning Bolt"
},
"currency": "JPY",
"missing_from_live_list": 0,
"has_more": true,
"past_last_page": false,
"dropped_out_of_stock": 0,
"upstream_requests": 2,
"warnings": [],
"charged_credits": 3,
"version": "1.0.0",
"request_id": "3fe52d96a79842a1",
"queue_ms": 2,
"fetched_at": "2026-10-15T17:02:54.434Z"
},
"data": {
"rows": [
{
"product_id": "67560",
"product_class_id": "436375",
"card_id": "6140",
"name": "■黒枠■《稲妻/Lightning Bolt》[4EDBB] 赤C",
"name_en": "【BB】《Lightning Bolt》[4ED]",
"card_name": "Lightning Bolt",
"set_code": "4ED",
"language": "JP",
"language_id": "1",
"foil": false,
"condition": "NM",
"price_jpy": 4500,
"stock": 5,
"in_stock": true,
"weekly_sales": 28,
"on_sale": false,
"single_copy": false,
"copy_code": null,
"other_conditions": [
{
"condition": "[trimmed-depth]",
"price_jpy": "[trimmed-depth]",
"stock": "[trimmed-depth]",
"in_stock": "[trimmed-depth]",
"product_class_id": "[trimmed-depth]"
},
{
"condition": "[trimmed-depth]",
"price_jpy": "[trimmed-depth]",
"stock": "[trimmed-depth]",
"in_stock": "[trimmed-depth]",
"product_class_id": "[trimmed-depth]"
},
{
"condition": "[trimmed-depth]",
"price_jpy": "[trimmed-depth]",
"stock": "[trimmed-depth]",
"in_stock": "[trimmed-depth]",
"product_class_id": "[trimmed-depth]"
}
],
"image": "https://files.hareruyamtg.com/img/goods/L/4EDBB/328.jpg",
"url": "https://www.hareruyamtg.com/ja/products/detail/67560?lang=JP",
"currency": "JPY",
"price_index_jpy": 4500,
"price_mismatch": false
},
{
"product_id": "3833",
"product_class_id": "27947",
"card_id": "6140",
"name": "《稲妻/Lightning Bolt》[4ED] 赤C",
"name_en": "《Lightning Bolt》[4ED]",
"card_name": "Lightning Bolt",
"set_code": "4ED",
"language": "JP",
"language_id": "1",
"foil": false,
"condition": "NM",
"price_jpy": 1000,
"stock": 0,
"in_stock": false,
"weekly_sales": 4,
"on_sale": false,
"single_copy": false,
"copy_code": null,
"other_conditions": [],
"image": "https://files.hareruyamtg.com/img/goods/L/2291.jpg",
"url": "https://www.hareruyamtg.com/ja/products/detail/3833?lang=JP",
"currency": "JPY",
"price_index_jpy": 1000,
"price_mismatch": false
},
{
"product_id": "3833",
"product_class_id": "27943",
"card_id": "6140",
"name": "《稲妻/Lightning Bolt》[4ED] 赤C",
"name_en": "《Lightning Bolt》[4ED]",
"card_name": "Lightning Bolt",
"set_code": "4ED",
"language": "EN",
"language_id": "2",
"foil": false,
"condition": "NM",
"price_jpy": 500,
"stock": 0,
"in_stock": false,
"weekly_sales": 19,
"on_sale": false,
"single_copy": false,
"copy_code": null,
"other_conditions": [
{
"condition": "[trimmed-depth]",
"price_jpy": "[trimmed-depth]",
"stock": "[trimmed-depth]",
"in_stock": "[trimmed-depth]",
"product_class_id": "[trimmed-depth]"
},
{
"condition": "[trimmed-depth]",
"price_jpy": "[trimmed-depth]",
"stock": "[trimmed-depth]",
"in_stock": "[trimmed-depth]",
"product_class_id": "[trimmed-depth]"
},
{
"condition": "[trimmed-depth]",
"price_jpy": "[trimmed-depth]",
"stock": "[trimmed-depth]",
"in_stock": "[trimmed-depth]",
"product_class_id": "[trimmed-depth]"
}
],
"image": "https://files.hareruyamtg.com/img/goods/L/2291.jpg",
"url": "https://www.hareruyamtg.com/ja/products/detail/3833?lang=EN",
"currency": "JPY",
"price_index_jpy": 500,
"price_mismatch": false
}
]
}
}What the Hareruya API does
| Action | Description | Concrete use case | Key params |
|---|---|---|---|
| search | Search Hareruya's MTG shop. Each row is one printing in one language and condition, with the live price and stock, plus the other conditions of the same printing. Give `query`, `card_name` or `set_id` (any combination); the other filters narrow it. | Pricing teams call search to search Hareruya's MTG shop. | query, card_name, set_id, language, foil, ... |
| card | One printing in full: every language and condition the shop sells it in (price, live stock, individual graded copies), weekly sales per language, and the card's data (type, cost, text, rarity, set, illustrator, legal formats). | Marketplace operators call card to get one printing in full. | product_id, locale |
| buylist | Hareruya's buylist (買取): what the shop PAYS for a card in NM condition, in JPY. This is a buy price, never the sale price. Give `query`, `card_id` or `set_id`. | Catalog enrichment teams call buylist to get hareruya's buylist (買取). | query, card_id, set_id, language, foil, ... |
| sets | Every MTG set the shop files cards under, newest first: set_id (for `search` / `buylist`) and name. | Retail analysts call sets to get every MTG set the shop files cards under, newest first. | locale |
Call search from your stack
curl -X POST https://api.reefapi.com/hareruya/v1/search \
-H "x-api-key: $REEF_KEY" \
-H "content-type: application/json" \
-d '{"query":"Lightning Bolt","per_page":20}'import requests
r = requests.post(
"https://api.reefapi.com/hareruya/v1/search",
headers={"x-api-key": REEF_KEY},
json={
"query": "Lightning Bolt",
"per_page": 20
},
)
print(r.json()["data"])const res = await fetch("https://api.reefapi.com/hareruya/v1/search", {
method: "POST",
headers: {
"x-api-key": process.env.REEF_KEY,
"content-type": "application/json",
},
body: JSON.stringify({
"query": "Lightning Bolt",
"per_page": 20
}),
});
const { ok, data, meta, error } = await res.json();Ask your MCP-connected assistant: call reefapi.hareruya.search with {"query":"Lightning Bolt","per_page":20}.Who uses this API and why
- Price a collection in yen: search each card and read the NM price and the SP/MP/HP prices of the same printing.
- Buy and sell spread: buylist for a card, then card on the same product_id for Hareruya's sale price and stock.
- Track Japanese-language printings: search with language=jp for the copies only a Japanese shop stocks.
- Watch a new set: search with its set_id and sort=price_desc every day.
- Cross-market comparison: Hareruya yen prices next to Card Kingdom dollars and Cardmarket euros for the same card name.
Questions developers ask before integrating
Is the stock number live?
Yes. stock is the number the shop's product list shows at the time of the call, the same figure as on the product page. Hareruya's search index carries its own stock-like number that is not the stock (it agreed with the live figure on 101 of 271 rows we compared), so the API never returns that one.
Is the buylist price the price I pay?
No. buylist returns buy_price_jpy, what Hareruya pays you for a card in NM condition (買取価格). The sale price is price_jpy on search and card. A buylist row's product_id works in card, so you get the sale price and stock of the same printing in one more call.
How do languages and conditions work?
Each search row is one printing in one language in one condition, usually NM, with the other conditions (SP, MP, HP) of the same printing in other_conditions. card lists every language and condition of a printing, including individual copies of expensive cards (graded slabs, inked or damaged copies) that have their own price and a stock of 1.
Are prices in yen or dollars?
Yen, always. The English site shows the same yen prices, and they do not change with the visitor's country: the same pages read from Japan, the United States and Germany in the same minute gave identical prices and stock.
How do I list a whole set?
Call sets to get the set ids (10 is Fourth Edition), then search with set_id and no query. set_id also narrows a name search and the buylist.
How far can I page?
Up to 100 rows a page. meta.total is the shop's own count; the shop's search reaches the first 4,000 rows of any result, so meta.last_page stops there and meta.total_capped says when a result is larger. Narrow a large result with set_id, language, rarity or a price range.
Can I search by the exact card name?
Yes: card_name takes the exact English card name (Lightning Bolt, 117 products) and returns every printing of it. It is case-sensitive; rows carry card_name, so copying it from a row always works. query is a looser text search in English or Japanese.
What is the Hareruya API?
Hareruya API is a ReefAPI endpoint group for hareruya (晴れる屋) magic: the gathering prices as json: what japan's largest mtg shop sells a card for in each language and condition, how many it has right now, and what it pays for one (買取). It returns live JSON through POST requests under /hareruya/v1.
Is the Hareruya API free to try?
Yes. ReefAPI starts with 1,000 free credits, no card required. Hareruya calls use the same shared credit balance as every other ReefAPI engine.
Do I need a Hareruya login or account?
No login to Hareruya is needed for the API response. You call ReefAPI with your x-api-key header, and the playground can run live examples before you create a production key.
How fresh is the Hareruya data?
The page example is captured from a live search call, and production requests fetch live data through ReefAPI rather than a static sample.
How many credits does the Hareruya API use?
Hareruya actions currently cost 2-3 credits per successful call. Failed or blocked calls are free. All APIs draw from one credit pool.
Can I call Hareruya from an AI assistant or MCP client?
Yes. Connect ReefAPI once through MCP and your assistant can call hareruya actions with the same key, credit pool and JSON envelope used by normal REST requests.
Is the Hareruya API a Hareruya scraper?
It is the managed alternative to a DIY Hareruya scraper. Instead of building and maintaining your own scraper — proxies, headless browsers, captcha and constant breakage — you call one ReefAPI endpoint and get the same hareruya (晴れる屋) magic: the gathering prices as json: what japan's largest mtg shop sells a card for in each language and condition, how many it has right now, and what it pays for one (買取) back as clean JSON.