# Yahoo Auctions Japan Sold Price Data — Comps & Price Summary (`histonoby/yahoo-auctions-japan-sold-price`) Actor

Yahoo Auctions Japan sold price comps: median, quartiles and trimmed mean of recent sold listings per keyword, split by auction vs fixed-price and by category, plus the sold listings themselves.

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

## Pricing

from $20.00 / 1,000 price summary rows

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/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 Data — Comps & Price Summary

**Get Yahoo Auctions Japan sold price comps in one run: median, quartiles and trimmed mean of recent sold listings for any keyword, split by auction vs fixed-price and by category — plus the sold listings themselves.**

Built for cross-border resellers and used-market researchers who source in Japan and sell on eBay and elsewhere: trading cards, figures, cameras, watches, phones, and anything else that sells on ヤフオク!.

### What you get

For every keyword, the Actor reads the most recent **sold** (closed) listings on Yahoo Auctions Japan and outputs two kinds of records, each in its own dataset (shown as **Price summary** and **Sold listings** on the run's Output tab):

#### 1. `price-summary` — the comps (main product)

Stored in the run's **default dataset**, so `GET /v2/datasets/{defaultDatasetId}/items` (or the run's Export button) returns the comps only.

| Field | Meaning |
|---|---|
| `keyword` | Your search keyword |
| `categoryFilter` | The `categoryId` you used, or `null` |
| `scopeType` | `overall` (all rows), `saleType` (auction vs fixed-price) or `category` |
| `scopeValue` | `all`, `auction` / `fixed`, or the category as `parent > category` (e.g. `デジタル一眼 > ニコン` vs `マニュアルフォーカス > ニコン`; the full path is used if that is still ambiguous) |
| `scopeCategoryId` | Category ID for `category` rows |
| `periodStart`, `periodEnd` | Oldest and newest end time among the analyzed listings |
| `soldCount` | Number of sold listings in this row |
| `medianPriceJPY`, `p25PriceJPY`, `p75PriceJPY` | Median and quartiles |
| `trimmedMeanPriceJPY` | Mean after dropping the lowest and highest 5 % (robust to ¥1 sales and extreme outliers) |
| `meanPriceJPY`, `minPriceJPY`, `maxPriceJPY` | Plain mean, min and max |

Rows produced per keyword:

- one `overall` row (always),
- one row per sale type present: `auction` (won by bidding) and `fixed` (sold at a fixed / buy-it-now price, including flea-market style listings). These behave differently, so they are reported separately,
- when results span several categories (no `categoryId` given), one row per category with at least 5 sold listings (top 10). Tiny categories are folded into `overall` instead of being billed as separate rows.

#### 2. `sold-listing` — the underlying sold listings (optional)

Stored in a separate dataset named **`listings`** (run → Storage → Dataset dropdown, or the **Sold listings** link on the Output tab). Via the API, the run object gives a ready-made items URL in `output.soldListings` and the dataset ID in `storageIds.datasets.listings`.

`auctionId`, `title`, `soldPriceJPY`, `bids`, `endDate`, `categoryId`, `categoryName`, `categoryPath` (e.g. `家電、AV、カメラ > カメラ、光学機器 > デジタルカメラ > デジタル一眼 > ニコン`), `saleType` (`auction` | `fixed`), `itemUrl`.

#### Example

```json
{
  "recordType": "price-summary",
  "keyword": "iPhone 13",
  "categoryFilter": "2084317599",
  "scopeType": "overall",
  "scopeValue": "all",
  "scopeCategoryId": null,
  "periodStart": "2026-11-17T20:27:58+09:00",
  "periodEnd": "2026-11-20T19:48:56+09:00",
  "soldCount": 200,
  "medianPriceJPY": 35000,
  "meanPriceJPY": 39033,
  "trimmedMeanPriceJPY": 37744,
  "minPriceJPY": 600,
  "maxPriceJPY": 139800,
  "p25PriceJPY": 28000,
  "p75PriceJPY": 43575
}
```

### Input

| Field | Default | Notes |
|---|---|---|
| `keywords` (required) | — | One summary per keyword. Japanese keywords give the best coverage. |
| `categoryId` | none | **Strongly recommended.** Restricts results to one Yahoo Auctions category (the `auccat=` number in a category page URL, e.g. `2084317599` = iPhone). Without it, accessories get mixed in: in our test, "iPhone 13" without a category had a median of about ¥2,500 (cases and films), versus about ¥35,000–38,500 inside the iPhone category. |
| `excludeKeywords` | none | Drop listings whose title contains any of these words, e.g. `ケース`, `箱のみ`, `ジャンク`. Case- and full/half-width-insensitive. |
| `maxResultsPerKeyword` | 100 | Newest sold listings to analyze, 1–1,000. |
| `includeSummary` | true | Output `price-summary` rows. |
| `includeRawListings` | true | Output `sold-listing` rows. Turn off if you only need the comps. |

### Things to know before you run it

**Set a `categoryId` for the thing you want to price.** A keyword alone matches accessories, boxes and parts too, and they pull the median down. Real example from our test runs (1,000 sold listings each): "ロレックス" with no category had an overall median of **¥21,751**, because hundreds of boxes, bands and accessories were mixed in; the watch-body category alone had a median of **¥581,526**. The `category` summary rows show this split, and each row's `scopeCategoryId` is the `categoryId` to use in your next run.

**(a) The time period depends on how many results you ask for.** Results are always the newest sold listings first, and there is no date-range input. `periodStart`/`periodEnd` tell you exactly which period was covered. For very popular keywords, 1,000 listings may cover only a few hours (e.g. "ポケモンカード" sells roughly 50 items every 10 minutes); for niche items, 100 listings may cover several months. Raise `maxResultsPerKeyword`, or narrow the keyword/category, to cover a longer period.

**(b) No seller information is output, by design.** Seller names, seller IDs, ratings and other user data are never included in any record. The output is about items and prices only.

**(c) Only robots.txt-compliant requests are made.** The Actor only requests Yahoo Auctions' public closed-search page (`/closedsearch/closedsearch`) using the query parameters permitted by the site's robots.txt (keyword, page offset and category). It does not log in, does not use cookies or accounts, and does not use proxies. Requests are sent one at a time, at least one second apart. If the site refuses a request (HTTP 403/429 or a CAPTCHA), the run stops instead of trying to get around it; data already collected is kept.

**(d) Search depth limit of about 15,000 listings.** Yahoo Auctions' search returns at most about 15,000 results per query (offset limit 15,000). Since this Actor caps each keyword at 1,000 listings, you will normally never hit it.

Other notes:

- Prices are the final sold prices in JPY as shown in search results (tax/shipping handling follows Yahoo Auctions' listing).
- Duplicate listings that can appear when new sales shift the result pages are removed by `auctionId`.
- A small run report (`RUN_REPORT`) is saved in the key-value store with per-keyword counts, timing and stop reasons.

### Pricing

Pay per event — you only pay for results:

- `price-summary` row: $0.02 (= $20 per 1,000 rows)
- `sold-listing` row: $0.005 (= $5 per 1,000 rows)
- Actor start: $0.0001 per run

A typical comps run (1 keyword, `categoryId` set, summaries only) produces 2–3 summary rows, i.e. about $0.06. If you set a maximum cost for the run, summary rows are produced before listing rows, so the comps are delivered first.

**Free plan: a 1,000-listing run can slightly exceed the $5 per-run limit.** With `maxResultsPerKeyword` at 1,000 and raw listings on, one keyword costs about $5.1–5.3 in events (1,000 × $0.005 plus the summary rows). On the free plan the maximum cost per run is $5, so the run stops at that limit: **all summary rows are still output** (they are computed from all 1,000 listings), but the last few percent of `sold-listing` rows are left out. The run's status message and `RUN_REPORT` show how many rows were actually output. To get every row, use a paid plan with a higher maximum cost per run, split the keywords across separate runs, or lower `maxResultsPerKeyword` (e.g. 900). If you only need the comps, set `includeRawListings` to `false`.

### Disclaimer

This Actor is not affiliated with, endorsed by, or sponsored by Yahoo Japan / LY Corporation. You are responsible for using the data in line with the applicable terms and laws.

# Actor input Schema

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

Search keywords (Japanese works best), e.g. "ポケモンカード", "PSA10 ピカチュウ", "iPhone 13". Each keyword gets its own price summary.

## `categoryId` (type: `string`):

Yahoo Auctions category ID to restrict results to, e.g. 2084317599 for iPhone. Find it in the URL of a Yahoo Auctions category page (auccat=…). Without it, accessories such as cases and boxes are mixed into the comps. Applies to all keywords.

## `excludeKeywords` (type: `array`):

Drop sold listings whose title contains any of these words (case-insensitive, full/half-width insensitive), e.g. "ケース", "箱のみ", "ジャンク".

## `maxResultsPerKeyword` (type: `integer`):

Most recent sold listings to analyze per keyword (newest first). More results = longer time period covered. Hard maximum 1,000.

## `includeSummary` (type: `boolean`):

Output price-summary rows (overall, auction vs fixed-price, per category).

## `includeRawListings` (type: `boolean`):

Output one row per sold listing (title, sold price, bids, end date, category, URL).

## Actor input object example

```json
{
  "keywords": [
    "iPhone 13"
  ],
  "maxResultsPerKeyword": 100,
  "includeSummary": true,
  "includeRawListings": true
}
```

# Actor output Schema

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

Price summary rows (default dataset): median, quartiles, trimmed mean per keyword, sale type and category.

## `soldListings` (type: `string`):

Sold listing rows (separate dataset "listings"): title, sold price, bids, sale type, end date, category and item URL.

## `runReport` (type: `string`):

Per-keyword report: pages fetched, rows kept, excluded and duplicate rows, rows output, stop reason.

# 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 = {
    "keywords": [
        "iPhone 13"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("histonoby/yahoo-auctions-japan-sold-price").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 = { "keywords": ["iPhone 13"] }

# Run the Actor and wait for it to finish
run = client.actor("histonoby/yahoo-auctions-japan-sold-price").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 '{
  "keywords": [
    "iPhone 13"
  ]
}' |
apify call histonoby/yahoo-auctions-japan-sold-price --silent --output-dataset

```

## MCP server setup

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

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/kgxltR7eHfRBr1cQI/builds/QjufMlLvjPCBYtrBy/openapi.json
