# Yahoo Auctions Japan Sold Price & Listing Scraper (`piquno/yahoo-auctions-japan-sold-price-scraper`) Actor

Scrape Yahoo! Auctions Japan (ヤフオク!) sold prices of the last 180 days and live listings, plus Yahoo! Flea Market listings for sale, by keyword, category or URL; HTTP-only, no login, no API key.

- **URL**: https://apify.com/piquno/yahoo-auctions-japan-sold-price-scraper.md
- **Developed by:** [Piquno](https://apify.com/piquno) (community)
- **Categories:** E-commerce, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.40 / 1,000 listings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Yahoo Auctions Japan Sold Price & Listing Scraper

Scrape **sold prices (落札相場) from [Yahoo! Auctions Japan (ヤフオク!)](https://auctions.yahoo.co.jp/)**: auctions that ended with a buyer in the last 180 days, newest first, with the final price in yen, number of bids, start and buy-now price, end time, condition, category, brand, seller rating and prefecture. The same Actor also scrapes **live auctions and fixed-price listings** and **[Yahoo! Flea Market (Yahoo!フリマ)](https://paypayfleamarket.yahoo.co.jp/) listings**, all in one flat, CSV-friendly schema. Search by keyword, by Yahoo Auctions category ID, by pasting Yahoo search URLs, or by auction item URL.

Every run also writes a **free price summary** per search: Yahoo's own 180-day figures (lowest, average and highest price and the number sold) plus the count, median, quartiles and per-condition medians of the rows you saved. For schedules there is an **"only newly sold" mode** that saves just the auctions that ended since the previous run. HTTP only (no browser, no login, no API key), and it follows Yahoo's robots.txt.

### What you can do with it

- **Resale and pricing research** – what a model, card or kit actually sold for, by condition, over the last days or weeks; Yahoo's 180-day lowest / average / highest price for any keyword, free in every sold search.
- **Import and arbitrage** – compare Japanese sold prices with other markets before you buy; filter by price, condition, seller type (stores almost always charge consumption tax) and auction or fixed price.
- **Price monitoring** – schedule a keyword list with "Only newly sold since the last run" and get each new sale once, oldest first, ready to append to a sheet or database (size *Max listings per search* to the sales between two runs, see *Only newly sold*).
- **Market and catalogue analysis** – category paths, brands, bid counts, watch counts, start price (before tax) versus final price, and which sales went through Yahoo! Flea Market.
- **Live market watch** – auctions open now with their current price, bids, end time and shipping fee, or Yahoo! Flea Market listings for sale with their price and likes.

### How it works

1. Pick **What to scrape**:
   - **Sold listings** (default) – Yahoo's sold search (`/closedsearch/closedsearch`): only auctions that ended **with a buyer**, in the last **180 days**, newest-ended first. Items sold on Yahoo! Flea Market appear there too, flagged `isFleaMarketItem` (untick *Include Yahoo! Flea Market items* to leave them out).
   - **Live auctions and listings** – Yahoo Auctions search, in Yahoo's default order.
   - **Yahoo! Flea Market listings** – items for sale now on paypayfleamarket.yahoo.co.jp (listing fields only). Yahoo's flea-market search also lists items that are already sold; robots.txt does not let crawlers filter them out on Yahoo's side, so the Actor leaves them out itself: they are never saved or charged, and `PRICE_SUMMARY` gives their number (so does the status message of a run that ends Succeeded; Apify cuts that message at 500 characters).
2. Give **keywords**, **category IDs** (each keyword is searched inside each category; categories alone are searched whole), or paste **start URLs**.
3. Set **Max listings per search** and any **filters**. Results land in the run's dataset, one row per listing, with table views for Overview, Sold prices, Seller and shipping, and Item page details. The price summary is the `PRICE_SUMMARY` record in the run's key-value store (linked from the run's Output tab).

Pages and depth:

- Yahoo Auctions shows **50 rows per page** and serves at most the **first 15,050 rows of a search** (it refuses any offset above 15,000). Yahoo! Flea Market shows 100 per page and at most 10,000. A run that reaches this limit says so in `PRICE_SUMMARY` (so does the status message of a run that ends Succeeded; Apify cuts that message at 500 characters). The exception is an *Only newly sold* run that reaches it while re-reading the 2-hour overlap, after it has checked every sale that ended after the previous run's position: it may not say so.
- For busy keywords those 15,050 rows do not reach back 180 days. In a saved sold search for ガンプラ (about 115,000 sold in 180 days), row 15,001 had ended about three weeks before row 1; in a 500-row run for ポケモンカード (over 1,000,000 sold in 180 days) on 2026-11-16 the 500 rows covered 85 minutes of sales (18:20-19:46 JST). **To go deeper, split the keyword with category IDs**: `PRICE_SUMMARY` lists the sub-categories Yahoo shows for each search with their counts (`yahooCategories`). For example ガンプラ inside category 2084250335 (ガンダム plastic models) had 68,047 sold instead of 114,227.
- Live searches by category only (no keyword) use Yahoo's category page, which lists Yahoo's featured listings (`isFeatured`) first; robots.txt does not allow changing that order.

### Input

| Field | Type | Default | Notes |
|---|---|---|---|
| `mode` | string | `sold` | `sold`, `live` or `fleaMarket`. Applies to keywords and category IDs; start URLs keep their own type. |
| `keywords` | array | – | One search per keyword, as you would type it on Yahoo (`ガンプラ`, `ポケモンカード`, `iPhone 13`). The Console form starts with `ガンプラ`: delete it when you search only by category ID or start URL, or ガンプラ is searched (and its rows charged) as well. |
| `categoryIds` | array | – | Numeric Yahoo Auctions category IDs (from `/category/list/<id>` or `auccat=<id>` in a Yahoo URL). Not used for Yahoo! Flea Market, which has its own categories. |
| `startUrls` | array | – | Yahoo Auctions search (`/search/search`), sold search (`/closedsearch/closedsearch`) and category (`/category/list/<id>`) URLs, Yahoo! Flea Market search URLs (`/search/<keyword>`) and auction item URLs (`/jp/auction/<id>`). See *Start URLs* below. |
| `maxItemsPerQuery` | integer | `100` | Rows to save per keyword, category, keyword-and-category pair or start URL (1-15,000). The Console form starts at 50. |
| `includeDetails` | boolean | `false` | Also open each auction's item page (see *Output*). One extra request per auction row, same price per row. Yahoo! Flea Market rows keep their listing fields. |
| `minPrice` / `maxPrice` | integer | – | Price in yen, tax included (sold rows: final price; live rows: current price). |
| `conditions` | array | – | Any of `NEW`, `USED10`, `USED20`, `USED40`, `USED60`, `USED80` (see the condition table). |
| `minBids` | integer | – | At least this many bids. Not used for Yahoo! Flea Market. |
| `sellerType` | string | `any` | `any`, `store` (businesses; they almost always charge consumption tax, see `taxCharged`) or `individual`. Not used for Yahoo! Flea Market. |
| `listingFormat` | string | `any` | `any`, `auction` or `fixedPrice` (定額). Not used for Yahoo! Flea Market, nor for auction item URLs (an item page does not say which it is). |
| `includeFleaMarketItems` | boolean | `true` | Keep the Yahoo! Flea Market sales that Yahoo's sold and live auction searches include. |
| `soldWithinDays` | integer | – | Sold mode: keep rows that ended in the last N days (1-180). Sold search is newest first, so reading stops at the first older row. |
| `titleMustContain` | array | – | Every word must be in the title. Full-width / half-width and upper / lower case are treated alike. |
| `titleMustNotContain` | array | – | No word may be in the title (for example `ジャンク`, `まとめ`). |
| `maxPagesWithoutMatch` | integer | `10` | Stops a search after this many pages in a row without a new matching row, so a narrow filter cannot read pages for ever. `PRICE_SUMMARY` says when it happened (so does the status message of a run that ends Succeeded; Apify cuts that message at 500 characters), except for an *Only newly sold* run that stops while re-reading the 2-hour overlap, after it has checked every sale that ended after the previous run's position. |
| `onlyNewSinceLastRun` | boolean | `false` | Sold mode only. See *Only newly sold*: *Max listings per search* must be larger than the number of sales a search gets between two runs. |
| `stateKey` | string | `default` | Name of the saved progress for *Only newly sold* (letters, digits, `-`, `_`). One key per schedule. |
| `proxyConfiguration` | object | no proxy | Yahoo answers Apify's servers directly. If Yahoo refuses the direct connection, the run switches once by itself to Apify's datacenter proxy in the United States. Do not pick a European or UK proxy country (see below). |

#### Why the filters run after fetching

Yahoo's robots.txt asks crawlers not to send price, condition, sort or page-size parameters to sold search (and several of them to the other searches), and this Actor follows it. So the filters are applied to every row **after** it is read and **before** it is saved: rows that don't match are never saved and never charged, but a narrow filter reads more pages (in one test, 50 rows priced 3,000-20,000 yen in condition NEW or USED10, without flea-market sales, took 11 pages and 533 rows read). Live keyword searches are the exception: robots.txt allows the price range there, so it is also sent to Yahoo, and the price is checked again on every row.

#### Start URLs

- Each URL keeps its own type: a sold-search URL runs as a sold search even in live mode.
- Start URLs run in addition to the keywords: in the Console, delete the example keyword `ガンプラ` if you want only your URLs.
- Parameters robots.txt disallows for that kind of page (for example `n`, `select`, `aucminprice`, `aucmaxprice`, `istatus` on sold search; `sort`, `minPrice` on Yahoo! Flea Market), in any letter case (`N=100` like `n=100`), are **removed** before any request and named in the log and in `PRICE_SUMMARY`'s `notes` (the status message of a run that ends Succeeded names the first 3, and Apify cuts that message at 500 characters). A removed price range becomes a local filter. A condition parameter (`istatus`, `new`, `used20`, ... and the flea market's `conditions`) also becomes a local filter, whether it was removed or kept, but its format was not verified against Yahoo: set *Item condition* yourself if it matters. Paging, page-size and sort parameters that robots.txt does not list (`b`, `page`, `s1`, `o1`) are ignored too; other allowed parameters are kept and sent.
- An auction item URL gives one row built from the item page, with the detail fields (`listingType` is `sold`, `live`, or `unsold` for an auction that ended without a buyer). Yahoo! Flea Market item pages are not supported (the URL is skipped and named).

### Examples

Sold prices for two keywords, 150 rows each:

```json
{
  "mode": "sold",
  "keywords": ["ガンプラ", "ポケモンカード"],
  "maxItemsPerQuery": 150
}
```

A whole category (ガンダム plastic models), no keyword (in the Console, delete the example keyword first):

```json
{
  "mode": "sold",
  "categoryIds": ["2084250335"],
  "maxItemsPerQuery": 100
}
```

Sold prices with filters (applied after fetching; nothing filtered out is charged):

```json
{
  "mode": "sold",
  "keywords": ["ガンプラ"],
  "minPrice": 3000,
  "maxPrice": 20000,
  "conditions": ["NEW", "USED10"],
  "includeFleaMarketItems": false,
  "maxItemsPerQuery": 50
}
```

Live auctions between 5,000 and 6,000 yen in good condition:

```json
{
  "mode": "live",
  "keywords": ["ガンプラ"],
  "minPrice": 5000,
  "maxPrice": 6000,
  "conditions": ["NEW", "USED10", "USED20"],
  "maxItemsPerQuery": 60
}
```

Yahoo! Flea Market listings:

```json
{
  "mode": "fleaMarket",
  "keywords": ["ガンプラ"],
  "maxItemsPerQuery": 150
}
```

Scheduled monitoring, only sales since the previous run (schedule this input every 15 minutes and keep the state key). Busy keywords sell at very different rates through the day: on the evening of 2026-11-16 ポケモンカード had about 350 sales an hour at 18:20-19:46 JST, about 600 an hour on average over 20:19-22:32 JST, and about 1,000 an hour in the last 13 minutes of that (22:19-22:32 JST). At that highest rate a search gets about 250 sales in 15 minutes, so this example allows 500 per run, about twice that; check the waiting counts in `PRICE_SUMMARY` after the busiest hours and raise it (or run more often) if sales are waiting. The first run saves and charges up to 500 rows, the newest 500 sales (up to $2.00 at the Free plan price); later runs save and charge only the new sales (at most 500 per run).

```json
{
  "mode": "sold",
  "keywords": ["ポケモンカード"],
  "maxItemsPerQuery": 500,
  "onlyNewSinceLastRun": true,
  "stateKey": "pokemon-cards-15min"
}
```

### Output

One flat row per listing, the same 55 fields in every mode (fields a mode cannot fill are `null`). You can download the dataset as JSON, CSV, Excel, XML or HTML, or read it through the Apify API. In CSV and Excel the array fields of item pages become numbered columns (`imageUrls/0`, `imageUrls/1`, ...); for a fixed column order export one of the views (Overview, Sold prices, ...) or pass `fields=` to the API.

| Group | Fields |
|---|---|
| Listing | `marketplace` (`auctions` / `fleaMarket`), `listingType` (`sold` / `live` / `unsold`), `id`, `url`, `title`, `imageUrl`, `watchCount`, `isFeatured`, `isFleaMarketItem` |
| Price | `price` (yen, integer), `currency` (`JPY`), `taxCharged`, `startPrice`, `buyNowPrice`, `bidCount`, `isFixedPrice` |
| Time | `startTime`, `endTime` (ISO 8601, Japan time `+09:00`) |
| Item | `condition`, `conditionEn`, `conditionJa`, `categoryId`, `categoryName`, `categoryPath`, `brandId`, `brand` |
| Seller and shipping | `sellerId` (Yahoo's seller ID, not the seller's name), `sellerName` (stores only), `sellerRatingPercent`, `isStore`, `prefectureCode`, `prefecture`, `prefectureEn`, `isFreeShipping`, `shippingFee`, `shippingFeeType` |
| Search | `searchKeyword`, `searchCategoryId`, `startUrl`, `scrapedAt` (UTC) |
| Item page (`includeDetails`) | `detailsScraped`, `description` (the seller's text), `imageUrls`, `sellerRatingGood`, `sellerRatingBad`, `sellerRatingScore`, `shippingMethods`, `shipsWithin`, `shippingPaidBy` (`buyer` / `seller`), `paymentMethods`, `quantity`, `bidderCount` (a count only), `itemStatus` (`open` / `closed`), `isEarlyClosing`, `isAutomaticExtension` |

Prices:

- `price` is the final price on sold rows and the current price on live rows. When `taxCharged` is `true`, `price` and `buyNowPrice` **include consumption tax**; `taxCharged` is read from Yahoo's page, not guessed from the seller type. Stores (`isStore: true`, businesses) almost always charge it and individuals do not: in 42 test runs on 2026-11-16, 144 of 146 store listings had `taxCharged: true` (the other 2, prepaid telephone cards from one store, had `false`), and none of 839 listings by individual sellers had it. So use `taxCharged`, not `isStore`, to tell whether a price includes tax. `startPrice` is the start price **before tax**. Shipping is never included.
- Yahoo's sold search lists only auctions that ended with a buyer: every sold row has `bidCount` of 1 or more (in our runs, fixed-price and flea-market sales almost always show 1).

Conditions:

| `condition` | `conditionEn` | `conditionJa` |
|---|---|---|
| `NEW` | New / unused | 未使用 |
| `USED10` | Like new | 未使用に近い |
| `USED20` | No noticeable scratches or stains | 目立った傷や汚れなし |
| `USED40` | Some scratches or stains | やや傷や汚れあり |
| `USED60` | Scratches or stains | 傷や汚れあり |
| `USED80` | Poor overall condition | 全体的に状態が悪い |

Example sold row with `includeDetails`, a store's listing (from a test run on 2026-11-16; the description is shortened here, marked \[…], and only 2 of its 4 image URLs are shown):

```json
{
  "marketplace": "auctions",
  "listingType": "sold",
  "id": "e1252310706",
  "url": "https://auctions.yahoo.co.jp/jp/auction/e1252310706",
  "title": "BANDAI HG 1/144 高機動型ザクII オルテガ専用機 ZAKU II HIGH MOBILITY TYPE ガンプラ プラモデル 未組立 未使用 N11872986",
  "price": 4070,
  "currency": "JPY",
  "taxCharged": true,
  "startPrice": 3500,
  "buyNowPrice": null,
  "bidCount": 2,
  "isFixedPrice": false,
  "startTime": "2026-11-14T13:25:12+09:00",
  "endTime": "2026-11-16T22:18:43+09:00",
  "condition": "NEW",
  "conditionEn": "New / unused",
  "conditionJa": "未使用",
  "categoryId": 2084250344,
  "categoryName": "その他",
  "categoryPath": "おもちゃ、ゲーム > プラモデル > キャラクター > ガンダム > その他",
  "brandId": null,
  "brand": null,
  "sellerId": "8GwLRLXmNdYJGMv671M4xRrPGf8nu",
  "sellerName": "ReRe オークションストア",
  "sellerRatingPercent": 99.5,
  "isStore": true,
  "prefectureCode": "23",
  "prefecture": "愛知県",
  "prefectureEn": "Aichi",
  "isFreeShipping": false,
  "shippingFee": null,
  "shippingFeeType": null,
  "imageUrl": "https://auc-pctr.c.yimg.jp/i/auctions.c.yimg.jp/images.auctions.yahoo.co.jp/image/dr000/auc0211/user/34d8e2b2484dc352c38cc5926de6bfed14a7d94c91c44aaafe61901742bf3188/i-img1200x1200-17946302642000aneeu13818.jpg?pri=l&w=300&h=300&up=0&nf_src=sy&nf_path=images/auc/pc/top/image/1.0.3/na_170x170.png&nf_st=200",
  "watchCount": 2,
  "isFeatured": false,
  "isFleaMarketItem": false,
  "searchKeyword": "ガンプラ",
  "searchCategoryId": null,
  "startUrl": null,
  "scrapedAt": "2026-11-16T13:20:52Z",
  "detailsScraped": true,
  "description": "BANDAI HG 1/144 高機動型ザクII オルテガ専用機 ZAKU II HIGH MOBILITY TYPE ガンプラ プラモデル 未組立 未使用 N11872986\n\n商品情報\n\nメーカー名 BANDAI 作品名 機動戦士ガンダム THE ORIGIN\n\nシリーズ 機動戦士ガンダム\n\nコンディションランク S 未使用品\n\n商品説明\n\n【状態について】\n箱は開封済みで傷みがございますが、未組み立ての状態です。\n[…]",
  "imageUrls": [
    "https://auctions.c.yimg.jp/images.auctions.yahoo.co.jp/image/dr000/auc0211/user/34d8e2b2484dc352c38cc5926de6bfed14a7d94c91c44aaafe61901742bf3188/i-img1200x1200-17946302642000aneeu13818.jpg",
    "https://auctions.c.yimg.jp/images.auctions.yahoo.co.jp/image/dr000/auc0211/user/34d8e2b2484dc352c38cc5926de6bfed14a7d94c91c44aaafe61901742bf3188/i-img1200x1200-17946302642444lacqsk3818.jpg"
  ],
  "sellerRatingGood": 677037,
  "sellerRatingBad": 3428,
  "sellerRatingScore": 673609,
  "shippingMethods": null,
  "shipsWithin": null,
  "shippingPaidBy": "buyer",
  "paymentMethods": null,
  "quantity": 1,
  "bidderCount": 2,
  "itemStatus": "closed",
  "isEarlyClosing": false,
  "isAutomaticExtension": true
}
```

#### Which fields are empty when

| Rows | Always `null` |
|---|---|
| Sold auction rows | `shippingFeeType`, and `shippingFee` unless `includeDetails` finds a flat fee on the item page (Yahoo's sold search shows no fee) |
| Sold rows that are Yahoo! Flea Market sales | as above, plus every item-page field (no auction item page exists; with `includeDetails` they get `detailsScraped: false`). Their `url` points to paypayfleamarket.yahoo.co.jp; their `categoryId` is a Yahoo Auctions category. |
| Live auction rows | `shippingFee` and `shippingFeeType` when the search page states no fee (19 of 100 rows in one test run). For `PREFECTURE` and `SIZE_WEIGHT` fee types the fee depends on the buyer's prefecture or the parcel size; `shippingFee` is the one amount Yahoo's search page gives a visitor who is not logged in. |
| Yahoo! Flea Market mode | `taxCharged`, `startPrice`, `bidCount`, `isStore`, `prefectureCode`, `prefecture`, `prefectureEn`, `isFreeShipping`, `shippingFee`, `shippingFeeType`, `isFeatured`, `searchCategoryId` and every item-page field. `buyNowPrice` equals `price`, `isFixedPrice` is `true`, `watchCount` is the number of likes (いいね), `endTime` is when the listing expires, not a sale time, and `categoryId` is a Yahoo! Flea Market category (its own tree). |
| Rows from an auction item URL | `isFixedPrice`, `shippingFeeType`, `isFeatured`, `searchKeyword`, `searchCategoryId` (the item page has no such data; the *Listing format* filter is therefore not applied to them). `imageUrl` is the first full-size image instead of Yahoo's 300-pixel thumbnail. |
| Without `includeDetails` | every item-page field, `detailsScraped` included; `sellerName` |
| Any row | `sellerName` unless the seller is a store and its item page was read; `brand` when Yahoo's page gives only a `brandId` (an item page fills it in when the item names a brand); `sellerRatingPercent` when Yahoo shows no rating (some sellers, mostly on Yahoo! Flea Market, for example a seller with no ratings yet); `buyNowPrice` when there is no buy-now price; `shippingMethods`, `shipsWithin`, `paymentMethods` when the item page lists none (seen on store pages). `prefectureCode` `48` is used for overseas sellers; Yahoo prints no name for it, so `海外` / `Overseas` is our label. |

With `includeDetails`, item pages are read one after the other:

- An auction row whose item page could not be read (removed, or still failing after 3 retries) is saved with `detailsScraped: false` and the item-page fields empty; `PRICE_SUMMARY` gives the count (so does the status message of a run that ends Succeeded; Apify cuts that message at 500 characters).
- If 10 item pages in a row cannot be read (removed items, HTTP 404, are not counted; an error page or a page without Yahoo's item data is), the run stops and keeps what it saved. The rows of that streak in the batch of 25 being saved are not saved; if the streak began in the previous batch, up to 9 of its rows were already saved with `detailsScraped: false`.
- If the run's time runs out or Yahoo refuses the requests, the rows whose item page was not read yet are not saved (and not charged).

### Price summary (free)

Every run writes the record `PRICE_SUMMARY` (JSON) to its default key-value store: after the first page of a search (at most every 30 seconds while the run works) and at the end, so a run that is cut off still leaves one; a run stopped by an input error writes it with the error in `notes`. It is never added to the dataset and never charged. One entry per search (excerpt from a test run on an earlier build; entries now also have `soldOutSkipped`, the sold-out items a Yahoo! Flea Market search left out, and the record has `requests`, the pages requested and the URLs the robots.txt check refused):

```json
{
  "label": "ガンプラ",
  "kind": "sold",
  "firstPageUrl": "https://auctions.yahoo.co.jp/closedsearch/closedsearch?p=%E3%82%AC%E3%83%B3%E3%83%97%E3%83%A9&b=1",
  "yahoo180Days": {"lowestPrice": 1, "averagePrice": 4020, "highestPrice": 900000, "soldCount": 114757},
  "totalResultsAvailable": 114757,
  "yahooCategories": [{"categoryId": 25464, "name": "おもちゃ、ゲーム", "count": 109042}, {"categoryId": 20060, "name": "コミック、アニメグッズ", "count": 2599}],
  "saved": {
    "count": 150, "minPrice": 55, "maxPrice": 73000, "meanPrice": 4156, "medianPrice": 2400,
    "p25Price": 1100, "p75Price": 4892,
    "byCondition": {"NEW": {"count": 43, "medianPrice": 5000}, "USED40": {"count": 44, "medianPrice": 2475}},
    "oldestEndTime": "2026-11-16T11:31:21+09:00", "newestEndTime": "2026-11-16T19:14:54+09:00"
  },
  "rowsRead": 150, "pagesRead": 3, "filteredOut": {}, "duplicatesSkipped": 0, "stopReason": "maxItems", "note": null
}
```

- `yahoo180Days` is Yahoo's own 180-day summary printed on the first page of a sold search (180日間の落札相場: lowest, average, highest price and the number sold), as Yahoo prints it; Yahoo does not say whether it includes tax. It is `null` for live and flea-market searches and when a search has no results.
- `saved` covers only the rows this run saved for that search (`price`; on live searches the current price). A row found by two searches counts under the first.
- `stopReason` says why the search ended: `maxItems`, `endOfResults`, `depthLimit`, `scanCap`, `soldWithinDays`, `lineReached`, `noNewRows`, `chargeLimit`, `timeout`, `blocked`, `failed`, `layoutChanged`, `noExactMatch` or `notStarted`.
- `note` is a short text on how the search ended when there is more to say: for example how many newer sales wait for the next run, the times of a stretch of sales that was not checked, or a stop at Yahoo's depth limit or after pages without a match. The record's `notes` add the run-wide ones: maximum cost or timeout reached, item pages not read, sold-out Yahoo! Flea Market items left out, start-URL parameters removed. The status message of a run that ends Succeeded gives the same information (naming only the first 3 start URLs), but Apify keeps only the first 500 characters of a status message, so with several searches the later notes are cut there; a run that ends Failed gives the reason it failed instead. `PRICE_SUMMARY` has every search's full `note` and every run-wide note.

### Only newly sold

For schedules (sold mode only): tick **Only newly sold since the last run** and give each schedule its own **State key**.

- The **first run** saves the newest rows (up to *Max listings per search*), oldest first, and records how far it got.
- **Every later run** reads Yahoo's sold search newest first back to the previous run's position (minus a 2-hour overlap, in case Yahoo indexes a sale late), skips every listing it already delivered, and saves the new ones **oldest first**. If there are more new rows than *Max listings per search*, or the run hits its maximum cost or timeout, it saves the oldest ones and the next run continues from there.
- **Size *Max listings per search* to your schedule**: it must be larger than the number of sales a search gets between two runs at the busiest time of day, with room to spare. Busy keywords sell at very different rates through the day: on 2026-11-16 ポケモンカード had about 350 sales an hour at 18:20-19:46 JST and about 1,000 an hour at 22:19-22:32 JST. At that highest rate a 15-minute schedule gets about 250 sales between two runs, so the scheduled-monitoring example above allows 500, about twice that. If *Max listings per search* is smaller than the sales between two runs, each run delivers older sales and `PRICE_SUMMARY` says how many are waiting in that search's `note` (so does the status message of a run that ends Succeeded; Apify cuts that message at 500 characters); once the backlog passes the 15,050 rows Yahoo serves for a search, a stretch of sales is skipped (the `note` gives its times).
- A listing found by two searches of the same run is delivered once, in that run and in later runs of the same input: when one search saves it, the other searches record it as delivered too.
- The progress is saved after every batch of 25 rows in the named key-value store `yahoo-auctions-japan-state` (record `state-<stateKey>`, one line per search). Before each save the record is read again and only this run's searches are replaced.
- A run with nothing new ends Succeeded with "No new sold listings since the last run" and costs nothing in row charges.
- Tested on Apify with ポケモンカード, three runs 6 and 7 minutes apart: 50, then 44, then 42 rows, no row twice, and every sale on a sold-search page fetched right after the third run that had ended since the first run's newest row was in the second or third run's dataset. A fourth run on the same state key, capped at 20, saved the 20 sales that came next. And with ガンプラ and ガンダム (overlapping searches) under one state key, three runs (30 per search, then capped at 2 per search, then 100) saved 60, 4 and 30 rows, none twice.

Nothing is delivered twice, apart from these rare cases:

- A run that crashes between saving rows and saving the progress can deliver that one batch (up to 25 rows) again on its next run.
- Two runs of the same search with the same state key at the same time can deliver the same rows.
- Two schedules sharing a state key each deliver a listing that searches of both find (see *Limits*).
- If more than 20,000 listings delivered under one state key ended within 2 hours of a search's position, the oldest of them are kept only as a time mark: a sale that Yahoo indexes late in that stretch can be missed, and a listing that only another search delivered can be delivered once more.

Limits:

- Sold searches only: live and Yahoo! Flea Market searches, their start URLs and item URLs are refused in this mode.
- Each run re-reads the 2-hour overlap of every search (rows read there are not charged). For ポケモンカード on 2026-11-16, two runs at about 19:30 JST read 13 pages each (616 and 643 rows) in 27-28 seconds, and a run at 22:32 JST read 27 pages (1,330 rows). These are all the rows each run read for that search, new sales included: at about 19:30 JST nearly all of the 616 and 643 rows were the overlap (44 and 42 of them were new), and at 22:32 JST the overlap alone was about 22 pages (234 of the 1,330 rows were new).
- Use one state key per schedule. Two schedules can share a key if they do not search the same thing (each keeps its own progress), but a listing that searches of both schedules find is then delivered once by each. A new state key starts over. Changing the filters of a key does not re-deliver older rows.
- If more listings ended since the previous run than a search can reach (15,050 rows) or *Stop after N pages without a match* stops the reading first, the listings in between are not checked; `PRICE_SUMMARY` gives the times of that gap and what to change in that search's `note` (so does the status message of a run that ends Succeeded; Apify cuts that message at 500 characters). Run busy keywords often, or narrow them.
- If a run cannot read back to the previous position before its timeout, that search saves nothing in that run and tries again next time. Keep the default timeout (1 hour) or run often.

### Pricing

Pay per result: **$4.00 per 1,000 saved rows** on the Free plan, **$3.80** on Bronze, **$3.60** on Silver and **$3.40** on Gold and above. No start fee.

- You pay only for rows saved to the dataset. Rows a filter drops, duplicates (a listing found by two searches is saved once per run), sold-out items and "similar items" that Yahoo! Flea Market search shows, and the price summary are never charged. Item pages (`includeDetails`) cost nothing extra per row.
- A run that saves nothing costs nothing in row charges. Searches with no results, or where nothing matched the filters, end Succeeded with a message saying so; a run that saves nothing because Yahoo refused the requests ends Failed.
- If you set a maximum cost per run, the run stops cleanly when it is reached, keeps every row it saved and says so in `PRICE_SUMMARY` (so does the status message of a run that ends Succeeded; Apify cuts that message at 500 characters). Tested: a run asked for 700 rows stopped at its limit of 515 rows after reading 11 pages.

### Speed

Measured on Apify with 512 MB, no proxy (run time as Apify reports it):

| Input | Rows saved | Requests | Run time |
|---|---|---|---|
| Console example (sold, ガンプラ, 50 rows) | 50 | 1 | 5 s |
| Sold, 2 keywords × 150 | 300 | 7 | 16 s |
| Sold, ポケモンカード, 500 | 500 | 11 | 24 s |
| Live, ガンプラ, 100 | 100 | 2 | 5 s |
| Yahoo! Flea Market, ガンプラ, 150 | 150 | 2 | 7 s |
| Sold with filters (see the example), 50 | 50 | 11 | 23 s |
| Sold, ガンプラ, 200, `includeDetails` | 200 | 5 + 112 item pages | 169 s |
| Sold, ガンプラ, 480, `includeDetails` | 480 | 10 + 299 item pages | 434 s |
| Only newly sold, follow-up run | 44 | 13 | 27 s |

Listing pages are read one at a time with a 1-second pause; item pages one at a time with a 1-second pause after each. With `includeDetails`, expect about 1.5 seconds per auction row (434 s for 299 item pages and 10 listing pages; Yahoo! Flea Market rows need no item page). Item pages are read one at a time because reading 3 at a time drew HTTP 500 errors for every item page after about 45 pages in our tests. At that rate a run with the default 1-hour timeout would have time for about 2,000 item pages (an estimate, not measured). The run stops starting requests about 45 seconds before its timeout (a quarter of the timeout for runs under 3 minutes), cancels a request still running 8 seconds before it, and keeps what it saved.

### Robots.txt, limits and errors

- The Actor carries a copy of the robots.txt files of auctions.yahoo.co.jp, page.auctions.yahoo.co.jp and paypayfleamarket.yahoo.co.jp (fetched on 2026-11-13) and checks every URL against them before requesting it, redirects included, both as written and in the normalised form that is actually sent (`.` and `..` path segments resolved). It never requests a URL they disallow. A parameter they list for a kind of page is never sent to that kind of page, in any letter case, even where an `Allow` line would permit the page itself. That is why sort order, page size and the server-side filters of sold search are not available. (robots.txt lists `aucminprice` and `aucmaxprice` for sold search and category pages but not for keyword search, so live keyword searches do send the price range.)
- Sold mode has no sold Yahoo! Flea Market search of its own (robots.txt disallows `sold=` there); flea-market items sold on Yahoo appear in the sold auction search instead.
- If Yahoo refuses requests (HTTP 401/403/429), the run waits and retries, switches once to Apify's datacenter proxy in the United States (only when you set no proxy), and stops after 5 refusals in a row or 90 seconds without a usable answer, keeping what it saved; after that it sends nothing more. Answers that are not usable pages (a page without Yahoo's data, HTTP 202 or 405) count toward those 90 seconds, and 10 item pages in a row that cannot be read also stop the run. Pages that fail with a server error are retried 3 times.
- Do not choose a proxy country in the EU, EEA or UK: Yahoo! JAPAN stopped offering its services there in 2022 (not tested by this Actor).
- A normal run that Apify restarts (for example after a server migration) starts over and can save rows again; *Only newly sold* runs continue from their saved progress.

### Privacy and legal

- **No bidder data is collected.** Item pages show the highest bidders' nicknames and ratings; the Actor reads only the number of bidders (`bidderCount`). Search pages mask seller names; `sellerName` is filled only for stores (businesses) and only from an item page. Individual sellers appear only as Yahoo's `sellerId`, a pseudonymous account ID rather than a name (Yahoo! Flea Market sellers' IDs are plain account numbers such as `p` + digits, which may lead to the seller's public profile).
- Listing titles and descriptions are written by sellers and may contain anything they chose to write; handle them accordingly.
- You are responsible for using the data in line with LY Corporation's terms of use and applicable law, including Japan's Act on the Protection of Personal Information.

# Actor input Schema

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

Sold: auctions that ended with a buyer in the last 180 days, newest first (Yahoo's 落札相場 search). Live: auctions and fixed-price listings open now. Yahoo! Flea Market: listings for sale now on paypayfleamarket.yahoo.co.jp (sold-out items that its search also shows are left out and not charged). Applies to keywords and category IDs; start URLs keep their own type.

## `keywords` (type: `array`):

One search per keyword, in Japanese or English, exactly as you would type it on Yahoo (for example ガンプラ, ポケモンカード, iPhone 13). Combined with every category ID below when you give both.

## `categoryIds` (type: `array`):

Numeric Yahoo Auctions category IDs (the number after /category/list/ or auccat= in a Yahoo URL, for example 2084250335 for ガンダム plastic models). With keywords: each keyword is searched inside each category. Without keywords: each whole category is searched. Not used for Yahoo! Flea Market, which has its own categories. Keywords are searched as well: delete the example keyword ガンプラ if you want only these.

## `startUrls` (type: `array`):

Yahoo Auctions search, sold-search (closedsearch) and category URLs, Yahoo! Flea Market search URLs, and Yahoo Auctions item URLs (/jp/auction/...). Each URL keeps its own type. Parameters that Yahoo's robots.txt disallows for that kind of page (sort order, page size, and on sold search the price and condition filters), in any letter case, are removed and named in the log; a removed price range or condition is applied after fetching instead. Keywords are searched as well: delete the example keyword ガンプラ if you want only these.

## `maxItemsPerQuery` (type: `integer`):

Most rows to save for each keyword, category, keyword-and-category pair or start URL. Yahoo shows 50 auction rows per page and serves at most the first 15,050 of a search (10,000 on Yahoo! Flea Market); to go deeper, split a busy keyword with category IDs. Every saved row is billed.

## `includeDetails` (type: `boolean`):

Also open every auction's item page for its description, all image URLs, seller rating counts, shipping and payment methods, quantity, number of bidders, status and early-closing / auto-extension flags (and the seller's name when the seller is a store). One extra request per row, same price per row. Yahoo! Flea Market rows keep their listing fields.

## `minPrice` (type: `integer`):

Keep rows whose price (tax included) is at least this. Sold rows: the final price. Live rows: the current price.

## `maxPrice` (type: `integer`):

Keep rows whose price (tax included) is at most this.

## `conditions` (type: `array`):

Keep only these conditions. Empty = all.

## `minBids` (type: `integer`):

Keep rows with at least this many bids. Not used for Yahoo! Flea Market.

## `sellerType` (type: `string`):

Stores are businesses (they almost always charge consumption tax: see the taxCharged field); individuals are private sellers. Not used for Yahoo! Flea Market.

## `listingFormat` (type: `string`):

Auctions with bidding, or fixed-price (定額) listings. Not used for Yahoo! Flea Market (always fixed price), nor for auction item URLs (an item page does not say which it is).

## `includeFleaMarketItems` (type: `boolean`):

Yahoo's sold search also lists items sold on Yahoo! Flea Market (flagged isFleaMarketItem). Untick to leave them out.

## `soldWithinDays` (type: `integer`):

Sold mode only: keep rows that ended in the last N days (1-180). Sold search is newest first, so reading stops at the first older row.

## `titleMustContain` (type: `array`):

Keep rows whose title contains every one of these words (full-width and half-width letters and upper and lower case are treated alike).

## `titleMustNotContain` (type: `array`):

Leave out rows whose title contains any of these words, for example ジャンク (junk) or まとめ (bundle).

## `maxPagesWithoutMatch` (type: `integer`):

Stops a search after this many result pages in a row gave no new row that matched your filters, so a narrow filter cannot read pages for ever. The price summary (PRICE_SUMMARY) says when it happened, except for an Only newly sold run that stops while re-reading the 2-hour overlap, after it has checked every sale that ended after the previous run's position.

## `onlyNewSinceLastRun` (type: `boolean`):

Sold mode only. Each run saves only listings that ended since the previous run with the same state key, oldest first, so a schedule normally pays once per row (a crash between saving and recording the progress can repeat up to 25 rows; see the README). Max listings per search must be larger than the number of sales a search gets between two runs, or the schedule falls behind. The first run saves the newest rows (up to Max listings per search) and records where it stopped.

## `stateKey` (type: `string`):

Name of the saved progress for 'Only newly sold' (letters, digits, - and \_). Use one key per schedule; a new key starts over.

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

No proxy by default (Yahoo answers Apify's servers directly). If Yahoo refuses the direct connection, the run switches once by itself to Apify's datacenter proxy in the United States. Do not pick a European or UK proxy country: Yahoo! JAPAN does not serve visitors from there.

## Actor input object example

```json
{
  "mode": "sold",
  "keywords": [
    "ガンプラ"
  ],
  "maxItemsPerQuery": 50,
  "includeDetails": false,
  "sellerType": "any",
  "listingFormat": "any",
  "includeFleaMarketItems": true,
  "maxPagesWithoutMatch": 10,
  "onlyNewSinceLastRun": false,
  "stateKey": "default",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `listings` (type: `string`):

Listings: one row per sold, live or flea-market listing.

## `priceSummary` (type: `string`):

Price summary per search (free): Yahoo's own 180-day figures and statistics of the saved rows.

# 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 = {
    "mode": "sold",
    "keywords": [
        "ガンプラ"
    ],
    "maxItemsPerQuery": 50,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("piquno/yahoo-auctions-japan-sold-price-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 = {
    "mode": "sold",
    "keywords": ["ガンプラ"],
    "maxItemsPerQuery": 50,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("piquno/yahoo-auctions-japan-sold-price-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "mode": "sold",
  "keywords": [
    "ガンプラ"
  ],
  "maxItemsPerQuery": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call piquno/yahoo-auctions-japan-sold-price-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,piquno/yahoo-auctions-japan-sold-price-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/3rLJbKNPl4suLV6u8/builds/omhGOhw5SGjuaEBMD/openapi.json
