# Mercari Japan Search Scraper — Prices & Product Data (`fruitful_quintessence/mercari-japan-search-scraper`) Actor

Scrape Mercari Japan (メルカリ) search results: item name, price in JPY, condition, brand, thumbnails, seller info and item URL. No login or API key needed - works via real browser network capture. Perfect for JDM parts, used car parts, watches, anime figures and reseller price research.

- **URL**: https://apify.com/fruitful\_quintessence/mercari-japan-search-scraper.md
- **Developed by:** [atushi ino](https://apify.com/fruitful_quintessence) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Mercari Japan Search Scraper

Scrape search results from [Mercari Japan (メルカリ)](https://jp.mercari.com), Japan's largest C2C marketplace. Returns item name, price, condition, brand, thumbnails, and direct item URLs.

### Why this works

Mercari's search page is a fully client-side rendered Next.js app. The underlying search API (`POST https://api.mercari.jp/v2/entities:search`) requires a `DPoP` security header that the page's own JavaScript generates automatically — it cannot be called with plain HTTP requests.

This Actor drives a real headless Chromium browser with Playwright, lets the page issue its API calls, and captures the JSON responses via network interception. **No API keys, no login, no cookies required.**

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `searchKeyword` | string | CBR250RR | Keyword to search (**required**) |
| `maxItems` | integer | 100 | Max items to collect |
| `maxPages` | number | 10 | Max result pages (~120 items/page) |
| `sort` | select | SORT\_SCORE | Relevance / Newest / Recently Updated / Price |
| `priceMin` | integer | 0 | Min price in JPY |
| `priceMax` | integer | 0 | Max price in JPY |
| `proxyConfiguration` | proxy | Apify auto | Proxy for cloud runs |

### Output

One dataset item per listing:

```json
{
  "id": "m92852841305",
  "name": "Honda CBR250RR MC51",
  "price": "7777",
  "status": "ITEM_STATUS_ON_SALE",
  "condition": "5",
  "brand": "Honda",
  "categoryId": "6917",
  "sellerId": "102046822",
  "thumbnail": "https://static.mercdn.net/thumb/item/webp/m92852841305_1.jpg",
  "itemUrl": "https://jp.mercari.com/item/m92852841305",
  "created": "2026-08-13T12:28:34+00:00",
  "updated": "2026-08-13T12:28:34+00:00"
}
```

### Use cases

- **Price research / arbitrage** — monitor what similar items actually sell for
- **Market intelligence** — track inventory levels, condition distribution, and seller activity for a product
- **Reseller sourcing** — find underpriced listings by keyword + price range
- **Brand monitoring** — watch new listings for specific brands

### Pricing

$0.00005 per run + $0.002 per item (100 items ≈ $0.20).

### Limitations

- **Proxy**: Do NOT enable the Apify auto-proxy — it causes page-load timeouts. Mercari works directly from Apify datacenter IPs. If you use a proxy, use residential proxies only.
- Item count is limited by search ranking (Mercari returns up to ~3,400 results per keyword).
- Images are thumbnail URLs; use the `itemUrl` for full details.

### Changelog

- **0.1** — Production release. SPA-based pagination (click 次へ + React hydration wait + retry), full-page browsing mode, total-timeout guard. Verified: 359 items / 3 pages, no duplicates.
- **0.0** — Initial release. Search by keyword, sort, price range; pagination; network-capture based extraction.

# Actor input Schema

## `searchKeyword` (type: `string`):

Keyword to search on Mercari (e.g. CBR250RR, iPhone 15, 腕時計)

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

Maximum number of items to scrape (default 100)

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

Maximum number of result pages to crawl (default 10, ~120 items/page)

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

Sort order for search results

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

Minimum price filter in JPY (0 = no limit)

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

Maximum price filter in JPY (0 = no limit)

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

IMPORTANT: Mercari works best WITHOUT proxy. Apify auto-proxy causes timeouts. Leave default (disabled) unless you have residential proxies.

## Actor input object example

```json
{
  "searchKeyword": "CBR250RR",
  "maxItems": 100,
  "maxPages": 10,
  "sort": "SORT_SCORE",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `id` (type: `string`):

Mercari item ID (m...) or null for ad items

## `name` (type: `string`):

Item title

## `price` (type: `string`):

Price in Japanese Yen

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

Sale status (ITEM\_STATUS\_ON\_SALE etc)

## `condition` (type: `string`):

Item condition ID (1=new, 5=poor)

## `brand` (type: `string`):

Brand name if available

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

Mercari category ID

## `sellerId` (type: `string`):

Seller account ID

## `thumbnail` (type: `string`):

Thumbnail image URL

## `itemUrl` (type: `string`):

Link to the item page

## `created` (type: `string`):

Unix timestamp of listing creation

# 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 = {
    "searchKeyword": "CBR250RR",
    "maxItems": 100,
    "maxPages": 10,
    "sort": "SORT_SCORE",
    "priceMin": 0,
    "priceMax": 0,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("fruitful_quintessence/mercari-japan-search-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 = {
    "searchKeyword": "CBR250RR",
    "maxItems": 100,
    "maxPages": 10,
    "sort": "SORT_SCORE",
    "priceMin": 0,
    "priceMax": 0,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("fruitful_quintessence/mercari-japan-search-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 '{
  "searchKeyword": "CBR250RR",
  "maxItems": 100,
  "maxPages": 10,
  "sort": "SORT_SCORE",
  "priceMin": 0,
  "priceMax": 0,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call fruitful_quintessence/mercari-japan-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fruitful_quintessence/mercari-japan-search-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/whSePszWpMtfeLYBp/builds/C39uuYlCTg98qS49U/openapi.json
