# Yahoo Auctions Japan Scraper (在售一覧) (`stone_jadex/yahoo-auctions-jp-scraper`) Actor

Public Yahoo Auctions Japan (auctions.yahoo.co.jp) listings from search results: current price (JPY), buy-now price when present, bid count, seller, time left / end time, category, images, and optional detail page. No start fee.

- **URL**: https://apify.com/stone_jadex/yahoo-auctions-jp-scraper.md
- **Developed by:** [Stone Jade](https://apify.com/stone_jadex) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.38 / 1,000 list-tier 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 Scraper

**Yahoo Auctions Japan Scraper** (`Stone_JadeX/yahoo-auctions-jp-scraper`) extracts structured, open (在售 / active) auction listings from public **Yahoo! Auctions Japan** (`auctions.yahoo.co.jp` and `page.auctions.yahoo.co.jp`) search results and optional individual auction detail pages. Designed for lean, low-memory runs (256 MB default) with **no start fee**, it parses structured `__NEXT_DATA__` JSON directly from public pages and emits clean JPY prices, bid counts, buy-now (`即決`) pricing, seller metadata, end times, category hierarchies, and image URLs.

***

### Overview and use cases

Yahoo! Auctions Japan is Japan's largest online auction marketplace for vintage cameras, luxury watches, collectibles, electronics, auto parts, and secondhand goods. Rather than scraping fragile DOM cards alone, this Actor extracts Next.js state payloads (`__NEXT_DATA__` → `props.pageProps.initialState.search.items.listing` and `item.detail.item`) with an automatic HTML link fallback when embedded state is absent.

#### Key capabilities

- **Two-tier extraction (`list` vs `detail`)**: Run fast, low-bandwidth search-page scans (`scrapeDetails: false`) for bulk pricing and bid monitoring (~50 listings per page via `b=1`, `b=51`, `b=101`), or enable `scrapeDetails: true` / pass direct `/jp/auction/{id}` URLs to enrich lots with unmasked seller names, full image galleries, and tax-included prices.
- **Clean numeric & JPY handling**: `currentPriceYen` and `buyNowPriceYen` are parsed as clean numbers in `JPY`; auctions without a buy-now option return `null` rather than `0`.
- **Transparent seller masking protection**: Yahoo Auctions Japan often masks seller names on search cards (`********` or partial `abc***`). This Actor never emits raw mask strings as `seller`; instead, `seller` is set to `null` and `sellerMasked` is set to `true` on list rows until unmasked via a detail page.
- **Built-in deduplication & safety caps**: Deduplicates on solid auction IDs (`^[a-zA-Z][0-9]{6,}$`, such as `w1236223632`), enforces a minimum `1,200 ms` request interval, drops raw HTML immediately after parsing to stay inside 256 MB memory, and writes a structured `OUTPUT` summary plus trailing `run-notice` row whenever a run stops early.

#### Common use cases

- **Camera, watch, and collectibles arbitrage**: Monitor live bids (`bidCount`), buy-now prices (`buyNowPriceYen`), and remaining time (`timeLeft`, `endTime`) across Japanese keywords (`camera`, `lens`, `watch`, or Japanese search queries).
- **Reseller and proxy-bidding sourcing**: Filter for undervalued active lots, inspect `itemCondition` codes (such as `USED40`), and verify store vs individual sellers (`isStore`).
- **Category & price-distribution analytics**: Collect historical snapshots of active market depth, watchlist demand (`watchCount`), and category taxonomies (`category`, `categoryId`) in JPY.

***

### Input configuration and examples

All inputs are optional. When `startUrls` is omitted or empty, the Actor falls back to three built-in search seeds (`camera`, `lens`, and `watch` on `auctions.yahoo.co.jp`) and stops after `maxItems` (default `50`).

#### Input parameters

| Field | Type | Default | Constraints / Options | Description |
| --- | --- | --- | --- | --- |
| `startUrls` | `array` | Camera, lens & watch seeds | `auctions.yahoo.co.jp` / `page.auctions.yahoo.co.jp` URLs | Optional search URLs (e.g. `https://auctions.yahoo.co.jp/search/search?p=camera&b=1`, category/list URLs) or direct auction detail URLs (`https://page.auctions.yahoo.co.jp/jp/auction/{id}`). Accepts strings or `{ "url": "..." }` objects. |
| `maxItems` | `integer` | `50` | `1` – `2000` | Maximum number of unique auction rows to save and charge before stopping. |
| `maxPages` | `integer` | `null` | `1` – `2000` | Optional ceiling on search result pages fetched per list seed (~50 auctions per page). |
| `startPage` | `integer` | `1` | `1` – `2000` | First search page to fetch when a search `startUrl` does not already include a `b=` offset parameter. |
| `scrapeDetails` | `boolean` | `false` | `true` / `false` | Also accepts alias `includeDetails`. Visits each discovered `/jp/auction/{id}` page to retrieve unmasked `seller`, full `images`, and tax-included `currentPriceYen`. If a detail fetch fails, the list row is retained with `detailError` and charged at the `listing` tier. |
| `requestDelayMs` | `integer` | `1200` | `≥ 1200` (max `60000`) | Also accepts alias `requestIntervalMs`. Minimum milliseconds between request starts across all concurrent slots. If `robots.txt` specifies a higher `Crawl-delay`, the interval increases automatically. |
| `concurrency` | `integer` | `1` | `1` – `3` | Maximum in-flight HTTP requests. Results are still emitted in deterministic page order. |
| `maxRunSeconds` | `integer` | `3600` | `≥ 30` (max `86400`) | Soft deadline in seconds; stops cleanly and persists `OUTPUT` and any `run-notice` before reaching the platform timeout minus a 20 s cushion. |
| `proxyConfiguration` | `object` | `{"useApifyProxy": false}` | Apify Proxy config | Direct connection by default. Residential proxies are discouraged as default and should only be used with `useProxyFallback: true`. |
| `useProxyFallback` | `boolean` | `false` | `true` / `false` | Keep requests direct until repeated HTTP `403` or `429` responses trigger switching to the configured proxy. |
| `allowDetailOnResidential` | `boolean` | `false` | `true` / `false` | When using a `RESIDENTIAL` proxy group, detail-page requests still go direct unless this flag is enabled. Residential proxy traffic is hard-capped at a developer-fixed **5 MB** (`RESIDENTIAL_MAX_MB = 5`, not user-configurable). |

#### Example 1: Fast list-tier search scan (recommended for price discovery)

Collect up to 100 active mirrorless camera and vintage watch listings starting from page 1 using list-only mode:

```json
{
  "startUrls": [
    { "url": "https://auctions.yahoo.co.jp/search/search?p=olympus&b=1" },
    { "url": "https://auctions.yahoo.co.jp/search/search?p=seiko&b=1" }
  ],
  "maxItems": 100,
  "maxPages": 2,
  "startPage": 1,
  "scrapeDetails": false,
  "requestDelayMs": 1200,
  "concurrency": 1,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

#### Example 2: Detail-enriched auction tracking with direct lot URLs

Enrich search results or inspect specific auction IDs (`w1236223632`) to obtain unmasked seller names, full image arrays, and tax-included pricing, with proxy fallback enabled only if blocks occur:

```json
{
  "startUrls": [
    { "url": "https://page.auctions.yahoo.co.jp/jp/auction/w1236223632" },
    { "url": "https://auctions.yahoo.co.jp/search/search?p=leica&b=1" }
  ],
  "maxItems": 25,
  "scrapeDetails": true,
  "requestDelayMs": 1500,
  "concurrency": 1,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["SHADER"]
  },
  "useProxyFallback": true
}
```

***

### Output schema and dataset reference

Results are pushed to the default Apify dataset, with built-in Console table views (`Overview` and `Run notices`). A complete run summary is also saved in the default Key-Value Store under the `OUTPUT` record.

#### Illustrative JSON output example (detail-enriched record)

Below is an illustrative dataset record showing the exact field shape produced when `scrapeDetails: true` enriches a search card (values adapted from the `w1236223632` fixture):

```json
{
  "auctionId": "w1236223632",
  "title": "OLYMPUS OZ105R 説明書付 簡易動作OK フィルムコンパクト フィルムカメラ コンパクトカメラ",
  "currentPriceYen": 6600,
  "buyNowPriceYen": null,
  "bidCount": 1,
  "seller": "モバイルセブンヤフー店",
  "sellerMasked": false,
  "sellerId": "6y5BPHKS4YBJaGk6ZXW5YZvvmnzpN",
  "timeLeft": "17h 54m",
  "endTime": "2026-10-26T20:58:14+09:00",
  "category": "カメラ、光学機器 > フィルムカメラ > コンパクトカメラ",
  "categoryId": "2084005100",
  "images": [
    "https://auctions.c.yimg.jp/images.auctions.yahoo.co.jp/image/dr000/auc0207/user/6fef6797aa60b2226ee04111554f8af81bfca434f8871fa7c0b8e8fd84cc4b8e/i-img1200x1200-17834032595012yscijd27.jpg",
    "https://auctions.c.yimg.jp/images.auctions.yahoo.co.jp/image/dr000/auc0207/user/6fef6797aa60b2226ee04111554f8af81bfca434f8871fa7c0b8e8fd84cc4b8e/i-img1200x1200-17834032596392btylbf27.jpg"
  ],
  "url": "https://auctions.yahoo.co.jp/jp/auction/w1236223632",
  "watchCount": 2,
  "itemCondition": "USED40",
  "isStore": true,
  "currency": "JPY",
  "page": 1,
  "position": 1,
  "listUrl": "https://auctions.yahoo.co.jp/search/search?p=camera&b=1",
  "tier": "detail",
  "scrapedAt": "2026-11-21T00:00:00.000Z"
}
```

On list-only runs (`tier: "list"`), `seller` may be `null` with `sellerMasked: true` when Yahoo Auctions masks the display name on the search card, and `images` usually holds the primary thumbnail URL.

When a run is truncated or stops early (`maxItems`, `max-charge-reached`, `run-time-limit`, `proxy-budget`, `errors`, `cloudflare-challenge`, or `empty-page`), a single trailing uncharged notice row is appended to the dataset:

```json
{
  "recordType": "run-notice",
  "truncatedAfter": 50,
  "reason": "maxItems"
}
```

#### Dataset field reference

| Field | Type | List tier | Detail tier | Description |
| --- | --- | --- | --- | --- |
| `auctionId` | `string \| null` | Yes | Yes | Stable Yahoo Auctions ID (letter prefix + ≥6 digits, e.g. `w1236223632`); used for cross-seed deduplication. |
| `title` | `string \| null` | Yes | Yes | Auction title published on the search card or detail page (`null` on minimal HTML fallback). |
| `currentPriceYen` | `number \| null` | Yes | Yes | Current bid or asking price in JPY; detail records prefer tax-included price (`taxinPrice`) when available. |
| `buyNowPriceYen` | `number \| null` | Yes | Yes | Buy-now (`即決`) price in JPY when offered; `null` when the auction has no buy-now option. |
| `bidCount` | `number \| null` | Yes | Yes | Current bid count published for the auction. |
| `seller` | `string \| null` | Partial | Yes | Public seller or store display name. Set to `null` if masked (`*` / `＊`) on the list card without detail enrichment. |
| `sellerMasked` | `boolean \| null` | Yes | Yes | Always `true` or `false` on auction rows. Indicates whether the source masked the seller name (`********` or `abc***`). |
| `sellerId` | `string \| null` | Yes | Yes | Public `userId` / `aucUserId` identifier when published. |
| `timeLeft` | `string \| null` | Yes | Yes | Formatted remaining time (e.g. `17h 54m`, `2d 3h`, `1m 30s`) or end-status label. |
| `endTime` | `string \| null` | Yes | Yes | Scheduled auction end timestamp (normally ISO 8601 with `+09:00` JST offset). |
| `category` | `string \| null` | Yes | Yes | Full breadcrumb category path joined by `>`. |
| `categoryId` | `string \| null` | Yes | Yes | Leaf Yahoo Auctions category ID as a string. |
| `images` | `array<string> \| null` | Yes | Yes | Deduplicated public image URLs with query strings stripped (`[]` if none parsed). |
| `url` | `string \| null` | Yes | Yes | Canonical public auction detail URL (`https://page.auctions.yahoo.co.jp/jp/auction/{id}` or `auctions.yahoo.co.jp`). |
| `watchCount` | `number \| null` | Yes | Yes | Watchlist counter (`watchListNum` / `watchCount`) when published. |
| `itemCondition` | `string \| null` | Yes | Yes | Published condition code (for example `USED40`, `NEW`, etc.). |
| `isStore` | `boolean \| null` | Yes | Yes | Whether the seller is a registered store (`true`/`false`), or `null` if unreported. |
| `currency` | `string \| null` | Yes | Yes | Currency code (`JPY`). |
| `page` | `integer \| null` | Yes | Optional | 1-based search page number (`null` for direct detail seed URLs). |
| `position` | `integer \| null` | Yes | Optional | 1-based position within the parsed search page (`null` for direct detail seed URLs). |
| `listUrl` | `string \| null` | Yes | Yes | Search or seed URL from which the auction was discovered. |
| `tier` | `string \| null` | `"list"` | `"detail"` | Record extraction tier (`"list"` or `"detail"`). |
| `scrapedAt` | `string \| null` | Yes | Yes | ISO 8601 UTC timestamp captured when the page was fetched. |
| `detailError` | `string \| null` | Optional | — | Present only when `scrapeDetails: true` failed to fetch/parse the detail page; list row is preserved and billed as `listing`. |
| `recordType` | `string \| null` | Notice only | Notice only | Equals `"run-notice"` on the trailing summary notice row; omitted on normal auction rows. |
| `truncatedAfter` | `integer \| null` | Notice only | Notice only | Total auction rows saved before truncation on a `run-notice` row. |
| `reason` | `string \| null` | Notice only | Notice only | Stop reason on a `run-notice` row (`maxItems`, `max-charge-reached`, `run-time-limit`, `proxy-budget`, `errors`, `cloudflare-challenge`, `empty-page`). |

#### Key-Value Store (`OUTPUT`)

In addition to dataset items, the Actor writes a JSON run summary to the `OUTPUT` key in the default Key-Value Store containing `startedAt`, `finishedAt`, normalized `input`, `pricing`, per-seed `seeds` stats, `pushed` counts (`listing` and `listing-detail`), `duplicatesSkipped`, `pagesFetched`, `siteTotalEntries`, `errors`, `stopReason`, `truncated`, `unavailableFields`, `http` transfer counters, `robots` metadata, `robotsDisallowedHits`, `listSource` (`nextData` vs `htmlFallback`), and `notes`.

***

### Pricing and Store tier discounts

This Actor uses **Pay-Per-Event (PPE)** billing in **USD** with **no start fee** (`apify-actor-start` and `apify-default-dataset-item` are never charged). You are charged only for successfully saved auction records; trailing `run-notice` rows and failed `0`-item runs incur **$0.00**.

#### Live event pricing & Store subscription discounts

| Event name | Description | Free | Bronze (5% off) | Silver (10% off) | Gold (15% off) | Platinum (15% off) | Diamond (15% off) |
| --- | --- | ---: | ---: | ---: | ---: | ---: | ---: |
| `listing` | One auction parsed from a public search page (no detail visit) | **$0.00045** ($0.45 / 1k) | **$0.0004275** ($0.4275 / 1k) | **$0.000405** ($0.405 / 1k) | **$0.0003825** ($0.3825 / 1k) | **$0.0003825** ($0.3825 / 1k) | **$0.0003825** ($0.3825 / 1k) |
| `listing-detail` | One auction enriched from its public detail page (charged **instead of** `listing`, never both) | **$0.00045** ($0.45 / 1k) | **$0.0004275** ($0.4275 / 1k) | **$0.000405** ($0.405 / 1k) | **$0.0003825** ($0.3825 / 1k) | **$0.0003825** ($0.3825 / 1k) | **$0.0003825** ($0.3825 / 1k) |

- **No double-charging**: When `scrapeDetails: true` succeeds, only `listing-detail` ($0.00045 Free tier) is charged — `listing` is not added on top. If a detail fetch fails, the Actor keeps the list row, adds `detailError`, and charges only `listing`.
- **Example cost calculation**: Collecting 1,000 auctions on the Free plan costs **$0.45** in Actor event charges (with no start fee); on Gold, Platinum, or Diamond plans, 1,000 auctions cost **$0.3825**.
- **Market comparison**: Compared with `sigma-dev`'s Yahoo Auctions scraper ($0.0009 per result plus a $0.05 start fee = **$0.95** per 1,000 results), this Actor costs **$0.45** per 1,000 results with **no start fee** (~53% lower on 1,000 results).

Platform compute, optional Apify Proxy bandwidth, and dataset/key-value storage usage are billed separately by Apify according to your account plan. Check the Actor's **Pricing** tab on Apify Store for current live rates before launching large runs.

***

### API integration (JavaScript and Python)

You can trigger runs and download auction datasets programmatically using the official Apify API clients. Replace `YOUR_APIFY_TOKEN` with your personal Apify API token.

#### JavaScript (`apify-client`)

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

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });

const run = await client.actor('Stone_JadeX/yahoo-auctions-jp-scraper').call({
    startUrls: [
        { url: 'https://auctions.yahoo.co.jp/search/search?p=camera&b=1' },
    ],
    maxItems: 50,
    scrapeDetails: false,
    requestDelayMs: 1200,
    concurrency: 1,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const item of items) {
    if (item.recordType === 'run-notice') continue;
    console.log(item.auctionId, item.currentPriceYen, item.title);
}
```

#### Python (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run = client.actor("Stone_JadeX/yahoo-auctions-jp-scraper").call(
    run_input={
        "startUrls": [
            {"url": "https://auctions.yahoo.co.jp/search/search?p=camera&b=1"}
        ],
        "maxItems": 50,
        "scrapeDetails": False,
        "requestDelayMs": 1200,
        "concurrency": 1,
    }
)

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    if item.get("recordType") == "run-notice":
        continue
    print(item["auctionId"], item.get("currentPriceYen"), item.get("title"))
```

***

### Technical architecture, limitations, and FAQ

#### How extraction and pacing work

- **`__NEXT_DATA__` primary parser + HTML fallback**: Each search page (`/search/search?p=...&b=1/51/101`) and auction detail page (`/jp/auction/{id}`) is parsed via the embedded `<script id="__NEXT_DATA__">` JSON payload (`search.items.listing` and `item.detail.item`). If `__NEXT_DATA__` is unavailable on a search page, the parser falls back to extracting validated auction ID links matching `/jp/auction/([a-zA-Z][0-9]{6,})`.
- **Memory discipline (256 MB)**: HTML strings are immediately dereferenced right after parsing so large search pages do not accumulate in the V8 heap.
- **Rate limiting and proxy safeguards**: Request starts are globally serialized by `requestDelayMs` (minimum `1,200 ms`) across concurrent workers (up to `3`). HTTP `403`, `412`, and `429` trigger escalating `30 s` / `60 s` backoff; Cloudflare challenge pages (`403` with `Just a moment` / `_cf_chl_opt`) abort cleanly and flush partial results rather than attempting to bypass anti-bot challenges. Residential proxies are never enabled by default and are strictly capped at `5 MB` per run.

#### Scope, robots.txt handling, and compliance

- **Active listings only**: Only currently active (在售) public auctions are targeted; closed/sold search is not supported (it is also robots-Disallow'd);
- **Warn-only `robots.txt` policy**: Paths like `/closedsearch`, `/members/`, `/sell/`, `/user/`, and `/alert/` are Disallow'd; the Actor does not use closed search. Open `/search/search` and `/jp/auction/{id}` are used. If a requested URL matches a Disallow rule (including later result pages), it is still requested, logged as a warning and counted in `robotsDisallowedHits`.
- **Authentication walls refused**: Login, account, sign-in, and `mypage` URLs are unconditionally refused before any HTTP request is made.

#### Is it legal to scrape Yahoo Auctions Japan?

This Actor collects only publicly visible auction listings (`auctions.yahoo.co.jp` and `page.auctions.yahoo.co.jp`) without logging in, bypassing paywalls, or accessing private bidder/account information (`sellerMasked: true` is respected whenever the public page hides a seller display name, and private contact forms are never touched). However, you are solely responsible for ensuring that your use of the extracted data complies with Yahoo! JAPAN's Terms of Service, applicable copyright/database laws, and any privacy regulations in your jurisdiction.

#### Frequently asked questions

**Why is `seller` `null` on some list results?**
Yahoo Auctions Japan frequently masks store or individual seller names (`********` or `abc***`) on public search result pages. To avoid returning misleading placeholder stars, the Actor sets `seller: null` and `sellerMasked: true`. Enable `scrapeDetails: true` (or pass direct `/jp/auction/{id}` URLs) to extract the unmasked seller name when published on the detail page.

**Why does a run return fewer items than `maxItems`?**
`maxItems` (up to `2,000`) is an upper ceiling, not a guarantee. Fewer rows occur when a search has fewer available auctions, duplicate IDs appear across multiple seeds, a `maxPages` / `maxRunSeconds` / proxy budget limit is reached, or a `403` challenge stops the run early (recorded in `OUTPUT` and a trailing `run-notice` item).

**Can I scrape sold/closed auction prices?**
No — closed/sold history (`/closedsearch`) is intentionally excluded from this Actor's scope.

**What happens if a detail page fails when `scrapeDetails: true`?**
The Actor preserves the search-card row, attaches a `detailError` string, and bills only the `listing` event rather than failing the whole run.

***

### Changelog

- **2026-11-21**: Major Store documentation upgrade (complete 11-field input table + 2 JSON examples, full 27-field dataset reference, live PPE pricing + Bronze–Diamond tier discounts, JS/Python `ApifyClient` quickstarts, compliance/FAQ) and `.actor/input_schema.json` polish with `sectionCaption` groupings and explicit `prefill` defaults.
- **2026-10-26**: Initial `0.1.0` build — public Yahoo Auctions Japan search and detail scraper using `__NEXT_DATA__` (`search.items.listing` / `item.detail.item`) with HTML fallback, solid auction ID validation (`w1236223632`), `listing` / `listing-detail` PPE at `$0.00045` (no start fee), `1,200 ms` minimum pacing, 256 MB memory footprint, and fixed 5 MB residential proxy budget cap.

# Changelog

This Actor's version history is a separate document: https://apify.com/stone_jadex/yahoo-auctions-jp-scraper/changelog.md

# Actor input Schema

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

Optional. A Yahoo Auctions Japan search such as https://auctions.yahoo.co.jp/search/search?p=camera\&b=1 (paging via b=1/51/101) or an auction URL https://page.auctions.yahoo.co.jp/jp/auction/{id}. Empty input uses camera + lens + watch search seeds from the probe.

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

Stop after this many auctions.

## `maxPages` (type: `integer`):

Optional. Each search page has about 50 auctions (b offset steps of 50).

## `startPage` (type: `integer`):

First search page when the start URL does not already set b=.

## `scrapeDetails` (type: `boolean`):

Adds unmasked seller name, extra images, and tax-included price when the list card is thin. Charged as listing-detail instead of listing. Prefer list-only to stay within the cost gate. If a detail page fails, the list row is kept and charged as listing.

## `requestDelayMs` (type: `integer`):

At least 1.2 seconds between request starts (Japan site is rate-sensitive). A Crawl-delay in robots.txt can only raise this.

## `concurrency` (type: `integer`):

How many search or detail pages may be requested at once. Rows are saved in page order. At least 1.2 seconds still pass between request starts.

## `maxRunSeconds` (type: `integer`):

Stops cleanly and writes the OUTPUT record before this limit.

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

Direct connection by default. Do not default to residential. A residential proxy is a fallback only (turn on useProxyFallback) and is capped at a fixed 5 MB per run.

## `useProxyFallback` (type: `boolean`):

When a proxy is configured, stay on a direct connection until repeated HTTP 403 or 429 responses, then switch to that proxy. A residential proxy is meant to be used this way, as a fallback — never as the default.

## `allowDetailOnResidential` (type: `boolean`):

Detail pages stay on a direct connection when the proxy group is residential. Turn this on only if those detail pages should use the residential proxy too.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://auctions.yahoo.co.jp/search/search?p=camera&b=1"
    }
  ],
  "maxItems": 50,
  "startPage": 1,
  "scrapeDetails": false,
  "requestDelayMs": 1200,
  "concurrency": 1,
  "maxRunSeconds": 3600,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "useProxyFallback": false,
  "allowDetailOnResidential": false
}
```

# Actor output Schema

## `results` (type: `string`):

Auction rows from public Yahoo Auctions Japan search and detail pages, with one trailing run-notice row when the run is truncated or stops early.

## `summary` (type: `string`):

Saved and charged counts, seed and error details, HTTP and robots statistics, stop reason, truncated flag, unavailable fields and notes for the run.

# 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 = {
    "startUrls": [
        {
            "url": "https://auctions.yahoo.co.jp/search/search?p=camera&b=1"
        }
    ],
    "maxItems": 50,
    "startPage": 1,
    "scrapeDetails": false,
    "requestDelayMs": 1200,
    "concurrency": 1,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("stone_jadex/yahoo-auctions-jp-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 = {
    "startUrls": [{ "url": "https://auctions.yahoo.co.jp/search/search?p=camera&b=1" }],
    "maxItems": 50,
    "startPage": 1,
    "scrapeDetails": False,
    "requestDelayMs": 1200,
    "concurrency": 1,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("stone_jadex/yahoo-auctions-jp-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 '{
  "startUrls": [
    {
      "url": "https://auctions.yahoo.co.jp/search/search?p=camera&b=1"
    }
  ],
  "maxItems": 50,
  "startPage": 1,
  "scrapeDetails": false,
  "requestDelayMs": 1200,
  "concurrency": 1,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call stone_jadex/yahoo-auctions-jp-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,stone_jadex/yahoo-auctions-jp-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/dUMwN9vpcy4qCsuyK/builds/0qojMVsfKzPbmVWK1/openapi.json
