# Mercari Japan Scraper (`flourishing_jimmy/mercari-japan-scraper`) Actor

Fast Mercari Japan product & price scraper. Extract 14 clean fields across pages with zero proxies, all-inclusive pricing, and JSON/CSV/Excel/API export.

- **URL**: https://apify.com/flourishing_jimmy/mercari-japan-scraper.md
- **Developed by:** [Lawrence Jim](https://apify.com/flourishing_jimmy) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.99 / 1,000 scraped 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

## Mercari Japan Scraper

Collect public listings from Mercari Japan keywords, search pages and category links. Follow multiple result pages in one run and export one row per listing ID.

- **Start in seconds.** The input form opens with a Nintendo Switch search and a 20-listing limit.
- **Fast, proxy-free browsing.** The Actor reuses a single headless page and reads listing data while skipping image, media and font downloads.
- **Clean exports.** Get integer JPY prices, sale status, Japanese condition labels and timestamped listing links in JSON, CSV, Excel or through the Apify API.
- **One all-in pricing tier.** Each unique listing saved uses the `listing-scraped` event. In the all-inclusive Store pricing configuration, platform usage is included in the published result rate.

#### Real listing result

This record came from the Nintendo Switch sample run. The seller ID has been masked.

```json
{
  "itemId": "m33586259237",
  "title": "HORI ホリパッド TURBO for Nintendo Switch 2",
  "priceJpy": 3500,
  "currency": "JPY",
  "status": "on_sale",
  "condition": "目立った傷や汚れなし",
  "categoryId": "7009",
  "thumbnailUrl": "https://static.mercdn.net/thumb/item/webp/m33586259237_1.jpg?1795225793",
  "imageUrl": "https://static.mercdn.net/item/detail/webp/photos/m33586259237_1.jpg?1795225793",
  "itemUrl": "https://jp.mercari.com/item/m33586259237",
  "sellerId": "[redacted]",
  "createdAt": "2026-11-21T01:49:53Z",
  "updatedAt": "2026-11-21T02:26:19Z",
  "scrapedAt": "2026-11-21T02:27:38Z"
}
```

### Inputs

| Input | Type | Default | Use |
| --- | --- | --- | --- |
| `searchQueries` | Array of strings | `["Nintendo Switch"]` when no sources are supplied | Search in Japanese or English. Clear the sample when supplying URLs only. |
| `startUrls` | Array of strings | Empty | Accepts public `https://jp.mercari.com/search` URLs with a keyword or `category_id`, plus public `https://jp.mercari.com/s/…` category links. |
| `status` | String | `on_sale` | Filter with `on_sale`, `sold_out` or `all`. |
| `sortBy` | String | `newest` | Sort with `newest`, `price_asc`, `price_desc` or `popular`. |
| `priceMin`, `priceMax` | Integers | Unset | Inclusive price limits in JPY. |
| `maxItems` | Integer | `30` | Maximum unique rows across all pages and sources. The Store form is prefilled with `20`. |

The Actor resolves short category links to the corresponding category search before applying filters. It follows Mercari's public pagination links and deduplicates results across pages and inputs. Invalid URLs and empty searches generate warnings. A primary access restriction stops collection gracefully and preserves results already saved.

### Output fields

| Field | Value |
| --- | --- |
| `itemId` | Mercari listing ID used for deduplication. |
| `title` | Original listing title. |
| `priceJpy`, `currency` | Integer listing price and the fixed currency code `JPY`. |
| `status`, `condition` | Sale status and Japanese condition label. |
| `categoryId`, `sellerId` | Public category and seller identifiers, stored as strings. |
| `thumbnailUrl`, `imageUrl` | Preview thumbnail and first listing photo provided by the search response. |
| `itemUrl` | Canonical Mercari listing link. |
| `createdAt`, `updatedAt`, `scrapedAt` | Listing creation, update and collection time in ISO 8601 UTC. |

Rows missing a required field are skipped so every exported row has a complete set of columns.

### Pricing and integrations

Under the all-inclusive Store configuration, the Pricing tab shows one price per saved listing, with compute and storage included. Private development runs use Apify platform billing until the Store pricing is activated.

Use the Apify API or connect the dataset to **n8n**, **Make**, spreadsheets or AI workflows. Typical uses include secondhand price comparison, TCG price tracking and alerts for new listings in a category.

# Actor input Schema

## `searchQueries` (type: `array`):

Japanese or English keywords. Clear the example when running URLs alone.

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

Use https://jp.mercari.com/search with a keyword or category_id, or a public https://jp.mercari.com/s/… category link.

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

Filter search results by sale status.

## `sortBy` (type: `string`):

Choose the order used on Mercari search pages.

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

Optional minimum listing price for searches.

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

Optional maximum listing price for searches.

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

Maximum unique listings saved across all sources and pages.

## Actor input object example

```json
{
  "searchQueries": [
    "Nintendo Switch"
  ],
  "status": "on_sale",
  "sortBy": "newest",
  "maxItems": 20
}
```

# Actor output Schema

## `items` (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 = {
    "searchQueries": [
        "Nintendo Switch"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("flourishing_jimmy/mercari-japan-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 = {
    "searchQueries": ["Nintendo Switch"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("flourishing_jimmy/mercari-japan-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 '{
  "searchQueries": [
    "Nintendo Switch"
  ],
  "maxItems": 20
}' |
apify call flourishing_jimmy/mercari-japan-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,flourishing_jimmy/mercari-japan-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/9Aco3jXplfsivRNBa/builds/4haQY6hUYFuglFtK2/openapi.json
