# Mercari Japan Scraper – Pay Only for New Listings (`nextscrape/mercari-japan-scraper`) Actor

Mercari Japan (メルカリ) listings and sold prices by keyword or search URL. Schedule it as a monitor: each run returns only listings it has not returned before, and you pay only for those. No login, no browser. Product data only, no seller personal data.

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

## Pricing

from $2.00 / 1,000 items returned

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/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 – Pay Only for New Listings

Get listings and sold prices from **Mercari Japan (メルカリ, jp.mercari.com)** by keyword or by pasting a search URL.

Turn on **monitor mode** and schedule the Actor every few minutes: each run returns only the listings it has not returned before, and **you pay only for those**. A run that finds nothing new costs only the start fee.

- No login, no Mercari account, no browser: fast and light
- Search by keyword, or paste any `jp.mercari.com/search` URL with your filters
- On sale, sold, or both (sold = sold out + in transaction), for price research
- Filter by price, condition and excluded words; include or skip Mercari Shops (business sellers)
- Optional details: description, category path, shipping method, ships-from prefecture, shipping days, likes, comment count
- Product data only: no seller names, profiles, ratings or buyer data

### What people use it for

- **Reselling and sourcing**: watch new listings for trading cards, games, cameras, anime goods and fashion brands, and get them into a sheet, Slack or your own app within minutes.
- **Price research**: pull recent sold prices for an item to see what it really sells for in Japan.
- **Market tracking**: follow how many items are listed, and at what prices, over time.

### How much does it cost?

Pay per event. There is no monthly fee.

| Event | Price |
|---|---|
| Actor start (once per run) | $0.001 |
| Item returned | $0.002 ($2.00 per 1,000 items) |
| Item details (only when **Include item details** is on) | + $0.002 per item |

Examples:

| What you run | Cost |
|---|---|
| 1,000 sold items for price research | about $2.00 |
| 200 items with details | about $0.80 |
| A monitor run that finds nothing new | $0.001 |
| One keyword monitored every 5 minutes for a month (8,640 runs), 2 new listings per run on average | about $43 ($8.64 for starts + $34.56 for 17,280 new items) |

Items that could not be fetched are not returned and not charged. If details fail for an item, the item is still returned and the details fee is not charged. You can cap each run with the **maximum cost per run** setting; the Actor stops cleanly when it reaches the cap.

### How to use

1. Add one or more **search keywords** (Japanese works best, e.g. `ポケモンカード`, `ニンテンドースイッチ`), or paste **search URLs** from jp.mercari.com after setting filters there.
2. Choose **status** (On sale / Sold / All), **sort**, price range and condition. These filters apply to keywords; URLs keep their own filters.
3. Set **Max items per search**.
4. Run. Results appear in the dataset; export them as JSON, CSV or Excel, or read them through the API.

#### Monitor mode (new listings only)

1. Turn on **Only new items (monitor mode)** and keep **Sort** at *Newest first*.
2. Create a **Schedule** in Apify Console (for example every 5 minutes).
3. The first run returns the current items. Every later run returns only items it has not returned before, and stops as soon as it reaches items it has already seen, so most runs make a single request.
4. To get alerts, add an integration (Slack, email, webhook, Make, Zapier, n8n) that fires when a run finishes and reads its dataset.

Good to know:

- Mercari's *Newest first* order is by **last update**, so an older listing that was just edited (for example, price-dropped) also shows up as new. Compare `createdAt` and `updatedAt` if you only want brand-new listings.
- An item is returned once. If its price drops later, it is not returned again.
- Set **Max items per search** high enough to cover the listings that appear between two runs. For the first run, a small value (for example 30) keeps the first bill small.
- Use **Monitor name** to keep separate "already seen" lists for the same search. The lists are stored in a key-value store named `mercari-jp-monitor` in your account; delete it to start over.

### Input examples

Sold prices for price research:

```json
{
  "searchQueries": ["ポケモンカード 151"],
  "status": "sold_out",
  "priceMin": 3000,
  "conditions": ["new_unused", "like_new"],
  "excludeKeyword": "ジャンク",
  "maxItemsPerSearch": 200
}
```

New-listing monitor (schedule this every few minutes):

```json
{
  "searchQueries": ["ニンテンドースイッチ 本体", "ライカ M6"],
  "status": "on_sale",
  "sort": "newest",
  "priceMax": 50000,
  "maxItemsPerSearch": 60,
  "onlyNewItems": true
}
```

A search URL copied from the browser, with item details:

```json
{
  "searchUrls": ["https://jp.mercari.com/search?keyword=iPhone%2015&status=on_sale&price_max=80000&item_condition_id=1%2C2&sort=created_time&order=desc"],
  "maxItemsPerSearch": 50,
  "includeDetails": true
}
```

### Output example

```json
{
  "id": "m54323777027",
  "url": "https://jp.mercari.com/item/m54323777027",
  "title": "エレズン C 056/080 インフェルノX ポケカ",
  "price": 300,
  "currency": "JPY",
  "status": "on_sale",
  "condition": "like_new",
  "conditionJa": "未使用に近い",
  "categoryId": 1289,
  "brand": null,
  "shippingPaidBy": "seller",
  "thumbnailUrl": "https://static.mercdn.net/thumb/item/webp/m54323777027_1.jpg?1794099815",
  "imageUrls": ["https://static.mercdn.net/item/detail/webp/photos/m54323777027_1.jpg?1794099815"],
  "itemType": "mercari",
  "shopId": null,
  "createdAt": "2026-11-08T01:03:35.000Z",
  "updatedAt": "2026-11-08T01:03:35.000Z",
  "searchQuery": "ポケモンカード",
  "scrapedAt": "2026-11-08T01:04:06.082Z"
}
```

With **Include item details**, each item also has:

```json
"details": {
  "description": "…",
  "categoryPath": ["ゲーム・おもちゃ・グッズ", "Nintendo Switch", "本体(Nintendo Switch Lite)"],
  "shippingMethod": "らくらくメルカリ便",
  "shipsFrom": "東京都",
  "shipsWithinDays": { "min": 2, "max": 3 },
  "likes": 6,
  "comments": 1
}
```

| Field | Meaning |
|---|---|
| `price` | Price in Japanese yen, as a number |
| `status` | `on_sale`, `trading` (sold, in transaction) or `sold_out` |
| `condition` | `new_unused`, `like_new`, `good`, `fair`, `poor`, `bad` (`conditionJa` is Mercari's Japanese label) |
| `shippingPaidBy` | `seller` (shipping included) or `buyer`; `null` for Mercari Shops |
| `itemType` | `mercari` (individual seller) or `shops` (Mercari Shops) |
| `createdAt` / `updatedAt` | When listed / last updated. For sold items, `updatedAt` is close to when it sold |
| `searchQuery` | The keyword or URL that found the item |

### Built to keep running

Monitoring is only useful if it does not stop, so the Actor is built around that:

- Every request is retried up to 4 times with increasing waits, each time with a fresh session and a new proxy IP.
- If one search fails, the other searches in the same run still finish. The run is marked failed only when every search failed, so a failed run always means something you should look at.
- In monitor mode the "already seen" list is saved after each page. A run that is interrupted does not send you (or bill you for) the same items again.
- No browser is used. A typical run finishes in a few seconds on 256 MB of memory.

### Limits and good to know

- Up to 3,000 items per search per run.
- Sold searches are not strictly ordered by sale date (that is how Mercari returns them).
- Details are not available for Mercari Shops items in this version.
- Titles and descriptions are in Japanese, as written by sellers.
- The Actor reads public listing data and waits between requests. It does not log in, buy, message, download images or collect seller personal data.
- A Japanese residential proxy is the default and recommended setting.

### Support

Found a problem or need a field? Open an issue on the Actor's **Issues** tab. Fixes for changes on Mercari's side come first.

This Actor is an independent tool and is not affiliated with Mercari, Inc.

# Actor input Schema

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

Keywords to search on Mercari Japan. Japanese works best (e.g. ポケモンカード, ニンテンドースイッチ). Each keyword is a separate search.

## `searchUrls` (type: `array`):

Paste search URLs from jp.mercari.com/search with your filters already set. Filters in the URL are used as-is; the filters below apply only to keywords.

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

On sale, sold (sold out + in transaction), or both. Use 'Sold' for price research.

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

Order of results. Monitor mode works best with 'Newest first'.

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

Only items at or above this price in yen.

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

Only items at or below this price in yen.

## `conditions` (type: `array`):

Leave empty for any condition.

## `excludeKeyword` (type: `string`):

Skip items containing this word (e.g. ジャンク for junk).

## `includeShops` (type: `boolean`):

Mercari Shops are business sellers. Turn off to get only individual sellers' listings.

## `maxItemsPerSearch` (type: `integer`):

Stop each search after this many items (1–3000).

## `includeDetails` (type: `boolean`):

Also fetch description, full category path, shipping method, ships-from prefecture, shipping days, likes and comment count. One extra request and one extra charge per item. Not available for Mercari Shops items.

## `onlyNewItems` (type: `boolean`):

Remember items already returned and output only new ones on the next run. Schedule this Actor every few minutes to get alerts for new listings; you pay only for new items. The first run returns current items.

## `monitorKey` (type: `string`):

Optional. Use a different name to keep separate 'already seen' lists for the same search (e.g. one per task).

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

Japanese residential proxy is recommended.

## Actor input object example

```json
{
  "searchQueries": [
    "ポケモンカード"
  ],
  "status": "on_sale",
  "sort": "newest",
  "includeShops": true,
  "maxItemsPerSearch": 20,
  "includeDetails": false,
  "onlyNewItems": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "JP"
  }
}
```

# Actor output Schema

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

Mercari Japan items (listings or sold items) returned by this run. In monitor mode, only items not returned before.

# 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": [
        "ポケモンカード"
    ],
    "maxItemsPerSearch": 20,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "JP"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("nextscrape/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": ["ポケモンカード"],
    "maxItemsPerSearch": 20,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "JP",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("nextscrape/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": [
    "ポケモンカード"
  ],
  "maxItemsPerSearch": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "JP"
  }
}' |
apify call nextscrape/mercari-japan-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nextscrape/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/DSwXl1HIivccONNk0/builds/00TCKuyyvrJVcGXTE/openapi.json
