# Japan Sold Comps by Photo: Mercari & Yahoo Auctions (`scrapelabmax/japan-sold-comps-by-photo`) Actor

Upload a photo and get what that item actually sold for in Japan. Searches Mercari Japan sold items and Yahoo! Auctions closed auctions, ranks listings by CLIP visual similarity, and returns JPY + USD prices with a median and price range. No Japanese keywords needed.

- **URL**: https://apify.com/scrapelabmax/japan-sold-comps-by-photo.md
- **Developed by:** [Scrapelab Max](https://apify.com/scrapelabmax) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 71.4% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 matched comps

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

## Japan Sold Comps by Photo: Mercari & Yahoo Auctions

Upload a photo of an item and get what it actually sold for in Japan. The actor searches **Mercari Japan sold items** and **Yahoo! Auctions closed auctions**, ranks every listing by visual similarity to your photo, and returns prices in JPY and USD with a median and a price range.

You do not need to know any Japanese keywords. The actor works out what the item is, searches with the names Japanese sellers actually use, and keeps only the listings that look like your photo.

### What you get

- **Sold prices by photo.** One image link is enough. Up to 20 photos per run.
- **A similarity score on every comp** (0 to 1), so you can discard near matches such as a different colorway or edition.
- **One number to act on.** Median, 25th and 75th percentile, min and max per photo, split by marketplace.
- **JPY and USD**, with the exchange rate and its date in the output.
- **English keywords searched in Japanese.** Type `game boy` and the actor also searches `ゲームボーイ`.
- **Partial results.** If one marketplace fails, you still get the other, and the summary says what failed.

### Example

Input: one photo, nothing else. This is the prefilled example, so you can reproduce it by pressing Start.

<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/f/f4/Game-Boy-FL.jpg/330px-Game-Boy-FL.jpg" alt="Photo of an original Nintendo Game Boy" width="220">

The actor identified it as `任天堂 ゲームボーイ 本体 DMG-01` (Nintendo Game Boy console DMG-01), found 158 sold listings, and kept the 50 that looked most like the photo. It took 39 seconds.

**Price summary (50 sold comps)**

| | Median | 25th to 75th percentile | Range | Comps |
| --- | --- | --- | --- | --- |
| Both marketplaces | ¥5,376 ($33.68) | ¥4,500 to ¥7,000 | ¥2,591 to ¥16,850 | 50 |
| Mercari Japan | ¥6,300 ($39.47) | ¥5,000 to ¥7,750 | ¥3,500 to ¥10,800 | 24 |
| Yahoo! Auctions | ¥4,556 ($28.55) | ¥3,887 to ¥5,875 | ¥2,591 to ¥16,850 | 26 |

**Top 8 comps** (long titles shortened here; the dataset has them in full, with a link to each listing)

| Similarity | Marketplace | Title | Sold price | Sold | Condition | Bids |
| --- | --- | --- | --- | --- | --- | --- |
| 0.951 | Yahoo! Auctions | Nintendo 任天堂 DMG-01 GAMEBOY ゲームボーイ 初代 本体のみ … | ¥4,510 ($28.26) | 2026-11-15 | Poor condition | 4 |
| 0.938 | Yahoo! Auctions | 任天堂 初代ゲームボーイ 本体 DMG-01 レトロゲーム | ¥6,200 ($38.85) | 2026-11-14 | Some scratches or stains | 1 |
| 0.937 | Yahoo! Auctions | N9 任天堂 初代ゲームボーイ DMG-01 本体 Nintendo GAME BOY | ¥5,501 ($34.47) | 2026-11-15 | No noticeable scratches or stains | 12 |
| 0.936 | Mercari Japan | 【ジャンク】【本体美品】任天堂 GBハード ゲームボーイ 本体 グレー DMG-01 … | ¥7,180 ($44.99) | 2026-11-08 | Some scratches or stains | |
| 0.932 | Yahoo! Auctions | Nintendo 任天堂 GAME BOY 初代ゲームボーイ 本体 DMG-01 グレー … | ¥5,250 ($32.90) | 2026-11-16 | Scratches or stains | 14 |
| 0.931 | Mercari Japan | Nintendo GAMEBOY DMG-01 ニンテンドー ゲームボーイ 本体のみ | ¥6,000 ($37.59) | 2026-05-13 | Some scratches or stains | |
| 0.929 | Yahoo! Auctions | 任天堂 初代ゲームボーイ 本体 DMG-01 ジャンク | ¥7,000 ($43.86) | 2026-11-14 | Scratches or stains | 1 |
| 0.928 | Mercari Japan | 初代 Nintendo ゲームボーイ 本体 DMG-01 | ¥7,000 ($43.86) | 2026-10-18 | No noticeable scratches or stains | |

Run on 2026-11-16 at ¥1 = $0.0062658. Prices change as new listings sell, so your numbers will differ.

### Quick start

Paste one photo URL into **Photo URLs** and run. Everything else has a default.

```json
{
    "imageUrls": ["https://upload.wikimedia.org/wikipedia/commons/f/f4/Game-Boy-FL.jpg"]
}
```

Keyword-only mode (no photo, no similarity scores, cheaper):

```json
{
    "keyword": "pokemon card charizard",
    "maxResults": 100
}
```

### Input

| Field | Default | Notes |
| --- | --- | --- |
| `imageUrls` | | Direct links to photos, one item per photo. Up to 20. |
| `imageFile` | | A photo uploaded in the console. |
| `keyword` | | Optional. With a photo it is a hint that replaces the generated keywords. Without a photo the run is keyword-only. English or Japanese. |
| `translateKeywords` | `true` | When the keyword is not Japanese, also search generated Japanese keywords and merge the results. |
| `marketplaces` | both | `mercari_jp`, `yahoo_auctions_jp`. |
| `status` | `sold` | `sold`, `on_sale` or `trading`. The last two are Mercari only; Yahoo! Auctions is skipped for them. |
| `sort`, `order` | `relevance`, `desc` | `relevance`, `newest` or `price`. Applied by the marketplace. |
| `priceMin`, `priceMax` | | JPY. Applied by the marketplace before anything is downloaded. |
| `minSimilarity` | `0.75` | Minimum CLIP similarity for a listing to count as a match. |
| `maxResults` | `50` | Max comps returned (and charged) per photo. |
| `maxCandidatesPerMarketplace` | `100` | Listings fetched per marketplace and compared with the photo. Applies to all keywords combined. |
| `proxyConfiguration` | Japan residential | Fallback only. Searches and your photo download go direct first; the proxy is used if a marketplace or the photo's host blocks, throttles or fails the direct request. Thumbnails are fetched directly. |

Supported image formats: JPEG, PNG, WebP, GIF, AVIF, TIFF and HEIC (iPhone), up to 10 MB.

### Output

The dataset holds two kinds of record, told apart by `type`.

#### One row per comp (`type: "comp"`)

| Field | Notes |
| --- | --- |
| `queryImage` | The input photo this comp belongs to. `null` in keyword-only mode. |
| `marketplace` | `mercari_jp` or `yahoo_auctions_jp`. |
| `itemId`, `itemUrl` | Listing ID and direct link. |
| `title` | Original Japanese title. |
| `priceJpy`, `priceUsd` | Sold price (asking price for unsold listings) and the converted value. |
| `soldDate` | ISO 8601. See accuracy limits below. |
| `condition` | When the site shows it, in English. |
| `bidCount` | Yahoo! Auctions only. |
| `imageUrl` | Main thumbnail URL. The actor stores no images. |
| `similarity` | 0 to 1, higher is closer. `null` in keyword-only mode. |
| `searchKeyword` | The keyword that found this comp. |
| `scrapedAt` | Timestamp. |
| `status` | `sold`, `on_sale` or `trading`. |

```json
{
    "type": "comp",
    "queryImage": "https://upload.wikimedia.org/wikipedia/commons/f/f4/Game-Boy-FL.jpg",
    "marketplace": "yahoo_auctions_jp",
    "itemId": "n1251492924",
    "itemUrl": "https://auctions.yahoo.co.jp/jp/auction/n1251492924",
    "title": "N9 任天堂 初代ゲームボーイ DMG-01 本体 Nintendo GAME BOY",
    "priceJpy": 5501,
    "priceUsd": 34.47,
    "soldDate": "2026-11-15T12:31:08.000Z",
    "condition": "Some scratches or stains",
    "bidCount": 12,
    "imageUrl": "https://auc-pctr.c.yimg.jp/...",
    "similarity": 0.946,
    "searchKeyword": "ゲームボーイ 初代 本体",
    "scrapedAt": "2026-11-16T21:40:02.118Z",
    "status": "sold"
}
```

#### One summary per photo (`type: "summary"`)

Summaries are free. They are also stored together under the `OUTPUT` key of the key-value store.

| Field | Notes |
| --- | --- |
| `queryImage`, `mode` | Which photo, and `photo` or `keyword`. |
| `keywords`, `keywordSource` | The keywords searched, and whether they were `generated`, a `hint`, or a plain `keyword`. |
| `sold` | `count`, `medianJpy`, `p25Jpy`, `p75Jpy`, `minJpy`, `maxJpy` and the same in USD. Computed from **sold** comps only. |
| `byMarketplace` | The same stats per marketplace. |
| `returnedComps`, `candidatesFetched`, `candidatesScored` | How many listings were returned, fetched and compared. |
| `rejectedBelowThreshold`, `droppedOverLimit`, `thumbnailFailures` | Why candidates were left out. |
| `fx` | `rate` (USD per JPY), `date`, `source`. |
| `error` | `null`, or `{ code, message }` explaining why the photo produced no comps. |
| `warnings` | Non-fatal problems, such as one marketplace failing. |

Error codes you may see in `error.code`:

| Code | Meaning |
| --- | --- |
| `NO_MATCHES` | Listings were found but none looked similar enough. Lower `minSimilarity` or add a keyword hint. |
| `NO_CANDIDATES` | The search returned nothing. Try a keyword hint or widen the price range. |
| `KEYWORDS_UNAVAILABLE` | The item in the photo could not be identified. Add a keyword hint. |
| `IMAGE_UNAVAILABLE` | The photo URL could not be downloaded (directly or through the fallback proxy) or is not an image. |
| `ALL_MARKETPLACES_FAILED` | Every selected marketplace failed. See `warnings`. |
| `BUDGET_EXHAUSTED` | Your max charge for the run was reached before this photo. |

### How it works

1. The photo is turned into two or three Japanese search keywords by a small vision model. A keyword hint, when given, replaces this step.
2. Each marketplace is searched with those keywords, with your status, sort and price filters applied on the marketplace side.
3. Each candidate's main thumbnail is compared with your photo using CLIP image embeddings.
4. Candidates at or above `minSimilarity` are returned, most similar first, with a price summary.

A photo with the default settings takes about 30 to 60 seconds.

### Similarity

Scores come from CLIP ViT-B/32 image embeddings. As a guide from live listings: the same product photographed differently usually scores 0.8 to 0.95, and a different item in the same category 0.5 to 0.7. CLIP is good at "same kind of object" and weaker at fine differences such as card editions, colorways, sizes or first print versus reprint. Use the score to filter, and check the listing links for anything you plan to act on.

### Accuracy limits

- **Mercari sold date is approximate.** Mercari search results carry no sold timestamp, so `soldDate` is the listing's last update time, which moves when the item sells.
- **Mercari price is the listing price at sale.** It includes shipping when the seller pays shipping, which is the norm on Mercari.
- **Yahoo! Auctions final prices exclude shipping**, and closed auctions are only searchable for a limited window (roughly the last 180 days).
- **Yahoo! Auctions is closed auctions only.** `on_sale` and `trading` apply to Mercari.
- **USD values use one daily rate** for the whole run, not the rate on each sold date.

### Pricing

Pay per event. You are never charged for summaries, or for a photo that could not be searched.

| Event | Price |
| --- | --- |
| Photo search | $0.05 per photo |
| Matched comp | $0.005 per comp ($5 per 1,000) |
| Keyword comp (keyword-only mode) | $0.002 per comp ($2 per 1,000) |
| Actor start | $0.00005 per GB of run memory (about $0.0002 per run) |

A typical run with one photo and 40 matched comps costs about $0.25. `maxResults` caps comps per photo, and the actor respects the max charge you set for a run: it stops returning comps, and skips remaining photos, once the limit is reached.

Identifying a photo, and converting a non-Japanese keyword, calls Apify's [OpenRouter Actor](https://apify.com/apify/openrouter) with your run's token. Apify bills that to your account separately at the model's cost: roughly half a cent per photo on paid plans, and ten times that on the free plan. To avoid it, give a Japanese keyword, or turn off **Also search in Japanese** for keyword-only runs.

### Data handling

The actor reads public search results only. It does not log in, stores no images, and keeps no seller or buyer details. Review each marketplace's terms before building on this data.

### Related

Same photo, another market: [eBay Sold Items by Image & Keyword](https://apify.com/scrapelabmax/ebay-sold-image-scraper).

# Actor input Schema

## `imageUrls` (type: `array`):

One or more direct links to photos of the item, one item per photo. Up to 20 photos per run (including an uploaded file). JPEG, PNG, WebP, GIF, AVIF, TIFF or HEIC, up to 10 MB each.

## `imageFile` (type: `string`):

Upload one photo from your device instead of (or in addition to) pasting a URL.

## `keyword` (type: `string`):

English or Japanese. With a photo, this is a hint that replaces the automatically generated keywords (use it when the photo alone is ambiguous). Without a photo, the actor runs in keyword-only mode and returns comps without similarity scores.

## `translateKeywords` (type: `boolean`):

When your keyword is not Japanese, also search with generated Japanese keywords (the names Japanese sellers actually use) and merge the results. Listings titled only in Japanese are otherwise missed.

## `marketplaces` (type: `array`):

Which sites to search. If one fails, results from the other are still returned.

## `status` (type: `string`):

Sold is the default and the only status used for the price summary. On sale and Trading apply to Mercari Japan only; Yahoo! Auctions is skipped for them.

## `sort` (type: `string`):

Order in which the marketplaces return candidates. Yahoo! Auctions closed search has no relevance order and uses most recently ended instead.

## `order` (type: `string`):

Applies to Newest and Price.

## `priceMin` (type: `integer`):

Only listings at or above this price in yen. Applied by the marketplace before anything is downloaded.

## `priceMax` (type: `integer`):

Only listings at or below this price in yen.

## `minSimilarity` (type: `number`):

CLIP image similarity (0 to 1) a listing's main photo must reach to count as a match. Raise it to exclude near matches such as a different colorway; lower it if too few comps come back.

## `maxResults` (type: `integer`):

Maximum number of comps returned (and charged) for each photo or keyword query.

## `maxCandidatesPerMarketplace` (type: `integer`):

How many listings to fetch from each marketplace and compare against the photo. The cap applies to all keywords combined. Higher finds more comps but takes longer.

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

Fallback proxy for marketplace searches and for downloading your photo. Requests are sent directly first, and this proxy is used only if a marketplace or the photo's host blocks or fails the direct request. Listing thumbnails are always fetched directly. Defaults to Japan residential exits.

## Actor input object example

```json
{
  "imageUrls": [
    "https://upload.wikimedia.org/wikipedia/commons/f/f4/Game-Boy-FL.jpg"
  ],
  "translateKeywords": true,
  "marketplaces": [
    "mercari_jp",
    "yahoo_auctions_jp"
  ],
  "status": "sold",
  "sort": "relevance",
  "order": "desc",
  "minSimilarity": 0.75,
  "maxResults": 50,
  "maxCandidatesPerMarketplace": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "JP"
  }
}
```

# Actor output Schema

## `comps` (type: `string`):

No description

## `summaries` (type: `string`):

No description

## `allRecords` (type: `string`):

No description

# 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 = {
    "imageUrls": [
        "https://upload.wikimedia.org/wikipedia/commons/f/f4/Game-Boy-FL.jpg"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapelabmax/japan-sold-comps-by-photo").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 = { "imageUrls": ["https://upload.wikimedia.org/wikipedia/commons/f/f4/Game-Boy-FL.jpg"] }

# Run the Actor and wait for it to finish
run = client.actor("scrapelabmax/japan-sold-comps-by-photo").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 '{
  "imageUrls": [
    "https://upload.wikimedia.org/wikipedia/commons/f/f4/Game-Boy-FL.jpg"
  ]
}' |
apify call scrapelabmax/japan-sold-comps-by-photo --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapelabmax/japan-sold-comps-by-photo"
        }
    }
}
```

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/cpbcgxmxOYBaJVgc4/builds/Fnlt7juifpuERSlM6/openapi.json
