# Mercari Scraper (`redomic/mercari-sold-comps`) Actor

Search Mercari Japan for live listings and sold prices. Each row carries the JPY price, item status, condition, timestamps, seller id and auction fields. Detail mode adds the description, category path and public seller rating; monitor mode reports new, changed and removed listings.

- **URL**: https://apify.com/redomic/mercari-sold-comps.md
- **Developed by:** [Redomic](https://apify.com/redomic) (community)
- **Categories:** E-commerce, Marketing, Developer tools
- **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 results

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 Scraper: Japan Listings, Sold Comps and Price Changes

Mercari scraper for buyers who need what an item actually sold for in Japan. One row is one Mercari item with a stable id, a JPY price, its sale status, condition, seller id, posting and update times, and a direct item URL. Set `soldOnly` to search sold and in-trade listings directly, so a keyword returns real transaction prices instead of asking prices. Use the rows to price stock, check a supplier's catalogue, or build a price history in your own sheet or database. Monitor mode checks a query on a schedule and returns only the items that are new, repriced, sold or gone since the last run.

### Who uses it

- Cross border resellers who need Japanese sold prices before they buy stock for resale.
- Sourcing teams that watch a category daily and want the items whose price moved, not another full listing dump.
- Price intelligence analysts who keep a history of asking prices, sale status and auction bids by keyword or brand.

### Why this Actor

Buyers of this kind of tool ask for the same things. Here is what this one does.

- Sold comps in one search. Set `soldOnly` and Mercari's own sold search answers the keyword, so you get the prices buyers paid without watching a listing for weeks first. Completed sales and sales in progress are both returned, and each row keeps the status the site publishes.
- A history you keep. Monitor mode stores the last seen price and status for each item in a named store in your account. Each scheduled run reports new, changed and removed items. A listing that goes from on sale to sold keeps its last JPY price and its update time, so you can build a sold comp record over weeks.
- Consistent seller fields. Detail mode returns the public seller id, display name, good, neutral and bad rating counts, listing count, registration date and ships from prefecture. It does not collect messages, contact details or profile internals.
- Detail at the base event. One detail row carries the description, full category path, condition, shipping method, shipping payer, shipping time, likes, comment count and all published photo URLs.
- Incremental runs keyed on update time. Mercari bumps a listing when it is edited. The monitor compares the item's updated time, not its creation time, so an old listing that gets repriced still shows up as changed.
- Auctions kept apart from fixed price. Auction items carry a separate bid count, current bid, start price and end time. The price field stays the fixed price the site publishes.
- A price check you can see. Every row is compared with the other results in its Mercari category from the same run. A compact camera at 3,000 JPY or an Air Max at 2,000 JPY that sits far below its category median is marked `priceSanity: low_for_category` with the median shown, so you can judge whether it is a comp or a part before you use it.
- Switching costs nothing. The Actor accepts the common input names used by other Mercari tools: keyword, queries, startUrls, limit, priceMin, priceMax, status, fetchDetails and incremental mode through `mode: monitor`.
- An honest data policy. Only public pages are read. No login, no credentials, no private messages. There is no partnership or authorization agreement with Mercari, and nothing here should be read as legal advice. Check your own rights before commercial use.

### What you get

A search run for `camera` on 25 November 2026 returned 120 listings. The first five, exactly as the Actor returned them:

| ID | Title | Price | Price check | Status | Condition | Seller ID | Updated at |
|---|---|---|---|---|---|---|---|
| m95735345163 | 44.0 MEGA PIXELS コンパクトデジタルカメラ 本体 | 3000 | low_for_category | on_sale | 目立った傷や汚れなし | 150797936 | 2026-11-23T17:46:34Z |
| m93528140817 | (未使用)ムサシ 乾電池式どこでもセンサーカメラ C-BT7000 配線不要 | 4950 | ok | on_sale | 未使用に近い | 671340819 | 2026-11-23T22:06:09Z |
| m96256188112 | 【新品】Kodak Charmera TYPE 02 赤 | 4990 | ok | on_sale | 新品、未使用 | 516403877 | 2026-11-24T18:49:33Z |
| m60083163376 | こびとづかん トイカメラ 20周年記念 | 1900 | ok | on_sale | 新品、未使用 | 997610361 | 2026-11-24T10:45:35Z |
| m20592064077 | KODAK Film Camera ULTRA F9 本体 | 2800 | ok | on_sale | 未使用に近い | 868600762 | 2026-11-24T12:38:10Z |

Every row also carries `priceCurrency` as `JPY`, `postedAt`, `categoryId`, `brand`, `shippingPayer`, `shippingMethodId`, `thumbnailUrl`, `photoUrls`, `itemType` and the query that found it. Detail rows add `description`, `categoryPath`, `rootCategoryName`, `sellerName`, the seller rating counts, `sellerSalesCount`, `sellerSince`, `shipsFrom`, `shippingMethod`, `shippingDuration`, `likes`, `commentCount`, `availability`, `isSold` and `soldAt`. Auction rows add `isAuction`, `auctionId`, `auctionBidCount`, `auctionCurrentBid`, `auctionStartPrice` and `auctionEndsAt`. Here is one auction from the same run:

```json
{
  "id": "m45562394899",
  "title": "Canon EOS Kiss X2 ダブルズームキット",
  "priceAmount": 15000,
  "isAuction": true,
  "auctionBidCount": 1,
  "auctionCurrentBid": 15000,
  "auctionStartPrice": 15000,
  "auctionEndsAt": "2026-11-25T11:27:00Z"
}
```

Two keywords in one run share the cap instead of the first one using it all. A run for `canon eos` and `nikon z` with `maxItems: 10` returned five rows for each keyword. The first row of each:

| Query | ID | Title | Price (JPY) | Status | Updated at |
|---|---|---|---|---|---|
| canon eos | m10575034967 | Canon EOS 10 QD EF35-105mm 動作確認済 液晶滲みあり | 3580 | on_sale | 2026-11-23T22:50:43Z |
| nikon z | m70490965124 | NIKKOR Z 50mm f/1.4 単焦点レンズ | 47000 | on_sale | 2026-11-24T09:39:14Z |

A sold-only search for the same keyword returned 120 comps. Here is one of its sold rows, exactly as the Actor returned it:

```json
{
  "id": "2JYJvgAhz25bsAn3hjzrYW",
  "title": "【動作確認済】Panasonic LUMIX FX07 コンパクトデジカメ　7.2MP グロスゴールド　 (3395-4)",
  "priceAmount": 8370,
  "priceCurrency": "JPY",
  "status": "sold_out",
  "condition": "やや傷や汚れあり",
  "sellerId": "488002977",
  "updatedAt": "2026-11-24T07:26:57Z",
  "source": "search"
}
```

Here is a detail row returned for the first camera above:

```json
{
  "id": "m95735345163",
  "sellerName": "ミル",
  "sellerRatingGood": 7,
  "sellerRatingNormal": 0,
  "sellerRatingBad": 0,
  "shipsFrom": "未定",
  "shippingMethod": "ゆうゆうメルカリ便",
  "shippingDuration": "1~2日で発送",
  "categoryPath": ["テレビ・オーディオ・カメラ", "カメラ", "デジタルカメラ"],
  "likes": 30,
  "commentCount": 6,
  "availability": "in_stock"
}
```

#### Price sanity

Every item row carries `priceSanity`. The Actor compares an item with the other results in the same Mercari category from that run once at least five are present, and marks items priced at or below 30% of the category median. Here is the 3,000 JPY camera from the first table with the figures behind its flag:

```json
{
  "id": "m95735345163",
  "title": "44.0 MEGA PIXELS コンパクトデジタルカメラ 本体",
  "priceAmount": 3000,
  "priceCurrency": "JPY",
  "priceSanity": "low_for_category",
  "categoryMedianPrice": 22350,
  "priceVsCategoryPct": -87
}
```

A 2,000 JPY Air Max from an Air Max search was marked the same way against a 6,950 JPY category median. Rows with no price, a currency other than JPY or an amount outside the JPY range get `missing_price`, `currency_mismatch` or `out_of_range` instead. All rows are returned by default. Set `onlySanePrices: true` to leave flagged rows out; the status record then says how many were dropped. A detail run on a single item has no category to compare against, so only the currency and range checks apply there.

### Modes

| Mode | What it does | What you pay for |
|---|---|---|
| `search` | Up to 120 listings per keyword from the public search page; with `soldOnly`, 120 sold and in-trade comps. | Each result row. |
| `detail` | Full item page for each URL or id you supply. | Each result row. |
| `monitor` | Diff of a keyword against the last run for that keyword and filters. | Only new and changed rows. Removed and unchanged rows are free. |

Status records never enter the dataset and are never charged. They live in the run's `STATUS` record, one row per input plus a summary. A dead item, a blocked page or a keyword with no matches gets a reason there instead of a silent empty run. Items found by two queries in one run are returned once and charged once.

### Price

$0.0025 per result in search and detail mode. That is $2.50 for 1,000 rows. A search run capped at `maxItems: 100` costs $0.25 when it fills the cap. Monitor mode charges the same rate per new or changed item only. A daily run that finds 12 changed listings costs $0.03. A quiet monitor run costs nothing.

### How to run it

- `{"query": "camera", "soldOnly": true}` returns up to 100 sold and in-trade comps for one keyword. The form starts here.
- `{"query": "camera", "maxItems": 100}` returns up to 100 listings of any status, live ones first.
- `{"mode": "detail", "itemUrls": ["m95735345163"]}` opens one item page and returns its full detail row.
- `{"mode": "monitor", "query": "nintendo switch"}` schedules a diff. Put it on a daily Apify schedule and connect a webhook or a Google Sheets integration to the dataset.

### Input

| Field | Default | What it does |
|---|---|---|
| `mode` | `search` | `search`, `detail` or `monitor`. |
| `query` | `camera` in the form and in code when omitted | Keyword to search. |
| `queries` | empty | Several keywords. Duplicates are removed. |
| `keyword` | empty | Alias for `query`; empty falls back to `query` or `camera`. |
| `itemUrls` | empty | Item URLs or bare ids for detail mode; empty opens the sample item `m95735345163`. |
| `startUrls` | empty | Mercari item or search URLs pasted from another tool. |
| `maxItems` | `100` | Cap on result rows for the run, at most 1000. With several keywords the cap is shared so each keyword with results keeps a row. |
| `statusFilter` | `sold_out` in the form, `all` when omitted | Keep `on_sale`, `trading`, `sold_out` or all. `sold_out` searches sold and in-trade listings directly. Pick `all` in the form for live listings. |
| `soldOnly` | `false` | One-field shortcut for `statusFilter: sold_out`. |
| `priceMin` | `0` | Drop rows below this JPY price. |
| `priceMax` | `0` | Drop rows above this price. Zero is no limit; it must not be below `priceMin`. |
| `onlySanePrices` | `false` | Leave out rows whose price is far below other items in the same Mercari category, or has no valid JPY amount. With this off, the rows are still returned with a `priceSanity` flag. |
| `fetchDetails` | `false` | Open each search result as well and merge the detail fields. |
| `proxy` | Apify Proxy on | Proxy settings used for every page request. |

### Output fields

`id`, `url`, `title`, `priceAmount`, `priceCurrency`, `priceSanity`, `status`, `sellerId`, `condition`, `conditionId`, `categoryId`, `brand`, `shippingPayer`, `shippingPayerId`, `shippingMethodId`, `postedAt`, `updatedAt`, `thumbnailUrl`, `photoUrls`, `itemType`, `isAuction`, `auctionId`, `auctionBidCount`, `auctionCurrentBid`, `auctionStartPrice`, `auctionEndsAt`, `query`, `source`.

`priceSanity` is `ok`, `low_for_category`, `missing_price`, `currency_mismatch`, `out_of_range` or `invalid_price`. Flagged rows also carry `categoryMedianPrice` and `priceVsCategoryPct` when their Mercari category has at least five rows in the run; those two fields are left off when there is no category to compare against.

Detail rows add `description`, `sellerName`, `sellerRatingGood`, `sellerRatingNormal`, `sellerRatingBad`, `sellerSalesCount`, `sellerSince`, `shipsFrom`, `categoryName`, `rootCategoryName`, `categoryPath`, `shippingMethod`, `shippingDuration`, `likes`, `commentCount`, `availability`, `isSold` and `soldAt`. Sold-only rows carry the same fields as search rows, with `status` set to `sold_out` or `trading`. Monitor rows add `changeType`, `previousPrice` and the `new`, `changed`, `removed` counts in the status record.

### FAQ

**Is there a Mercari API?** Mercari does not sell a public search API for this data. The Actor reads the same public pages the site serves to a browser and returns the fields as flat rows. There is no key to set up.

**Do I get contact details or seller messages?** No. You get the public seller id and display name, their published rating counts and the prefecture the item ships from. Comment text, messages, email addresses and profile internals are not collected.

**Why are there no sold items in a search run?** The public search page lists items that are on sale. Add `soldOnly: true` and the Actor searches Mercari's sold results instead, which returns completed sales and sales in progress. Monitor mode is still the way to build a history over time: keep the rows whose status turns to sold. The Actor never invents a sale date. `soldAt` is the last update time reported by the page.

**Can fields be empty?** Yes, when Mercari does not publish them. A seller with no public name, an item with no brand or an item with no shipping end date leaves that field empty rather than filled with a guess. Every empty or failed input is named in the `STATUS` record.

**Is this legal?** The Actor reads public pages without a login and does not collect private personal data. It is not affiliated with, endorsed by or authorized by Mercari. What you may do with the data depends on your use and your jurisdiction, so get your own advice before using it commercially.

### メルカリについて

日本語の検索キーワードもそのまま使えます。例: `{"query": "カメラ", "mode": "search"}`。価格は日本円の数値で、`priceCurrency` は `JPY` です。公開ページだけを読み、ログインや個人情報は必要ありません。

### Use it from AI agents (MCP) and Python

**AI agents.** Add this Actor as a tool in Claude, Cursor, VS Code or any MCP client through the Apify MCP server. The agent reads the input schema, so a plain request is enough.

```json
{
  "mcpServers": {
    "mercari-sold-comps": {
      "url": "https://mcp.apify.com?tools=redomic/mercari-sold-comps",
      "headers": {
        "Authorization": "Bearer <YOUR_APIFY_TOKEN>"
      }
    }
  }
}
```

**Python.** `pip install apify-client`, then:

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("redomic/mercari-sold-comps").call(run_input={"query": "camera", "mode": "search", "maxItems": 20})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

### More from us

- [Allabolag Scraper - Swedish Company Data](https://apify.com/redomic/allabolag-company-scraper): Scrape allabolag.se for Swedish company financials, industry, status and board role titles by search, org number or URL
- [Ashby Jobs Scraper with Salaries](https://apify.com/redomic/ashby-jobs-monitor): Ashby jobs scraper for any startup careers board (OpenAI, Ramp, Notion and thousands more), with salary ranges as numbers: min, max, currency, period, plus equity and bonus flags
- [ATS Jobs Search: Workday, Greenhouse, Lever & Ashby API](https://apify.com/redomic/ats-jobs-search): Search 750,000+ open jobs from 23,000+ companies on Workday, Greenhouse, Lever, Ashby, SmartRecruiters, Workable and 3 more ATS in one run
- [Blocket Scraper: Car Monitor](https://apify.com/redomic/blocket-se-scraper): Blocket scraper for car dealers and flippers: export Bil and Torget rows with price, make, model, year, mileage and seller
- [Closed Jobs Tracker: Expired Jobs & Time to Fill](https://apify.com/redomic/closed-jobs-tracker): Search jobs taken down at 22,000+ companies we check daily: the day each closed, how many days it was open (a time-to-fill proxy when the posting date is known) and closures by company
- [Expired Jobs API: Dated Closures From 8 ATS](https://apify.com/redomic/expired-jobs-daily): One run returns dated expired jobs: company, title, firstSeen, lastSeen, closedOn, absentObservations, URL and an asOf/n/historyCeilingDays receipt
- [FMCSA Carrier Scraper](https://apify.com/redomic/fmcsa-carriers): An FMCSA scraper for freight brokers and trucking-insurance sellers
- [Free-Work Jobs Scraper](https://apify.com/redomic/free-work-jobs-scraper): Free-Work jobs scraper for French IT recruiters: freelance informatique missions with TJM day rates, annual pay, skills and remote mode
- [Google Jobs Scraper - Job Postings API](https://apify.com/redomic/google-jobs): Google Jobs and job postings scraper: get job title, company, location, posted date, salary, full description and every apply link for any search
- [Google Trends API: Trending Now & Interest Over Time](https://apify.com/redomic/google-trends): Trending-now searches and new-trends alerts/monitoring per country with the news behind them, plus interest over time, interest by region, and related and rising queries for any keyword
- [GovDeals Scraper](https://apify.com/redomic/govdeals-scraper): Search and monitor GovDeals government surplus auctions for fleet trucks, equipment and more
- [Greenhouse Jobs Monitor & Scraper](https://apify.com/redomic/greenhouse-jobs-monitor): Monitor Greenhouse jobs from any company careers board (Airbnb, Stripe, Discord and thousands more)
- [Job Postings Dataset: 750k+ Open Jobs, Updated Daily](https://apify.com/redomic/job-postings-dataset): 750,000+ open jobs from 23,000+ company career sites (Workday, Greenhouse, Lever, Ashby and 5 more ATS), updated daily with first-seen and closed dates
- [Lever Jobs Scraper & Salaries](https://apify.com/redomic/lever-jobs-monitor): Lever jobs scraper for any company's careers page (Palantir, Spotify, Zoox, Shield AI and thousands more): flat rows with title, team, location, workplace, commitment, apply link, salary as numbers and the full description merged
- [Marktplaats Scraper - Dutch Classifieds](https://apify.com/redomic/marktplaats-nl): A marktplaats scraper for resellers, car dealers and analysts: export listings from Marktplaats.nl with title, price in EUR, condition, seller, location and images
- [Myntra Product Scraper](https://apify.com/redomic/myntra-scraper): Myntra scraper for product prices, MRP, discounts, ratings and stock
- [Otodom Scraper: Poland Property Listings & Price Monitor](https://apify.com/redomic/otodom-scraper): Scrape Otodom.pl property listings in Poland
- [Otomoto.pl Scraper](https://apify.com/redomic/otomoto-scraper): Scrape Otomoto.pl Polish car listings: one run returns used-car rows with price, make, model, year, mileage, fuel, gearbox, seller and URL
- [Personio Jobs Scraper](https://apify.com/redomic/personio-jobs): Scrape open jobs from Personio company career pages (jobs.personio.de/.com XML feeds)
- [Salary Data API: Pay Ranges by Job Title & Level](https://apify.com/redomic/salary-data): Get salary benchmarks (p10-p90, annualised, with n) and pay ranges from 199,000 employer-posted jobs at 9,600+ companies, updated daily
- [SIRET Company Scraper](https://apify.com/redomic/siret-company-scraper): Build B2B lead lists and support KYB due diligence with official SIRENE/RNE data as spreadsheet rows: SIRET lookup, NAF code, address, directors and financials
- [SUUMO Scraper - Japan Property Listings](https://apify.com/redomic/suumo-scraper): Scrape SUUMO Japan property listings from search URLs for rentals (賃貸) and sales
- [Talabat Scraper — Menus, Prices & Delivery Fees](https://apify.com/redomic/talabat-scraper): Restaurant and menu data from Talabat's 8 MENA markets as flat rows
- [Tecnoempleo Jobs Scraper](https://apify.com/redomic/tecnoempleo-jobs): Scrape Tecnoempleo IT job offers in Spain by keyword, province or remote mode
- [Ulta Scraper](https://apify.com/redomic/ulta-scraper): Scrape Ulta Beauty products by search or category with prices, ratings, reviews, and availability
- [Wolt Restaurant Scraper](https://apify.com/redomic/wolt-restaurant-scraper): One run returns Wolt restaurants with ratings, ETA, delivery fees, prices and full menus as clean flat rows
- [Workday Jobs Scraper](https://apify.com/redomic/workday-jobs): Search and monitor public Workday (myworkdayjobs.com) job postings

# Changelog

This Actor's version history is a separate document: https://apify.com/redomic/mercari-sold-comps/changelog.md

# Actor input Schema

## `mode` (type: `string`):

search: listings for a keyword. detail: full item pages. monitor: only new, changed and removed listings since the last run.

## `query` (type: `string`):

Japanese or English keyword to search on Mercari Japan. Used when queries is empty.

## `queries` (type: `array`):

Several keywords, searched one after another. Items found twice are returned once and charged once.

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

Hard upper limit on result rows for the whole run. Never raised above 1000.

## `statusFilter` (type: `string`):

Keep only items in this state. sold_out searches Mercari's sold and in-trade results directly; the other states filter the public search page, which lists items on sale.

## `soldOnly` (type: `boolean`):

Shortcut for statusFilter: sold_out. Returns prices from sold and in-trade listings instead of live asking prices.

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

Alias for query, accepted from other scrapers' inputs. Empty uses the query or the camera fallback.

## `itemUrls` (type: `array`):

Mercari item pages or bare ids such as m95735345163. Used in detail mode; empty uses the sample item.

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

Mercari item or search URLs pasted from another Actor. The keyword and the filters are read from them.

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

Drop rows priced below this value.

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

Drop rows priced above this value. Zero means no upper limit.

## `onlySanePrices` (type: `boolean`):

Drop rows priced far below other items in the same Mercari category and rows with a missing, non-JPY or impossible price. With this off, those rows are still returned with a priceSanity flag.

## `fetchDetails` (type: `boolean`):

Open each search result as well, adding description, category path, seller rating and shipping.

## `includeComments` (type: `boolean`):

Reserved for future use. Comment count is always returned; comment text never is.

## `proxy` (type: `object`):

Proxy settings. Apify Proxy is required when Mercari challenges the datacenter IP.

## Actor input object example

```json
{
  "mode": "search",
  "query": "camera",
  "queries": [],
  "maxItems": 100,
  "statusFilter": "sold_out",
  "soldOnly": false,
  "keyword": "",
  "itemUrls": [],
  "startUrls": [],
  "priceMin": 0,
  "priceMax": 0,
  "onlySanePrices": false,
  "fetchDetails": false,
  "includeComments": false,
  "proxy": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

All result rows from the default dataset.

# 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 = {
    "query": "camera",
    "queries": [],
    "statusFilter": "sold_out",
    "keyword": "",
    "itemUrls": [],
    "startUrls": [],
    "proxy": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("redomic/mercari-sold-comps").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 = {
    "query": "camera",
    "queries": [],
    "statusFilter": "sold_out",
    "keyword": "",
    "itemUrls": [],
    "startUrls": [],
    "proxy": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("redomic/mercari-sold-comps").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 '{
  "query": "camera",
  "queries": [],
  "statusFilter": "sold_out",
  "keyword": "",
  "itemUrls": [],
  "startUrls": [],
  "proxy": {
    "useApifyProxy": true
  }
}' |
apify call redomic/mercari-sold-comps --silent --output-dataset

```

## MCP server setup

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

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/FhBu9gNtmW3VocZf8/builds/qPETYJQe8hoycLzxJ/openapi.json
