# Mercari Sold Comps - Real Sold Prices, Not Asking Prices (`webdata_labs/mercari-sold-comps-scraper`) Actor

\[💵 $2.00 / 1K] Know what items actually sold for on Mercari, not what sellers are asking. Search any keyword or brand and get the median sold price, a suggested max buy price, and every sold comp - so you never overpay sourcing inventory. CSV/JSON.

- **URL**: https://apify.com/webdata\_labs/mercari-sold-comps-scraper.md
- **Developed by:** [Open Web Team](https://apify.com/webdata_labs) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 1,000 comp rows

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Sold Comps Scraper - Real Sold Prices, Not Asking Prices

**Know what items actually *sold* for on Mercari before you buy or list.**

This Actor searches Mercari **sold listings** for any keyword or brand, pulls each sold comp (sold price, original price, discount, brand, size, condition, URL), and rolls them into reseller pricing intelligence: **median / average / min / max sold price** and a **suggested max buy price** - exported as CSV or JSON. Sold comps tell you the truth; active asking prices do not.

### ✅ What you get / ❌ what this isn't

| ✅ This Actor gives you | ❌ This Actor is not |
|---|---|
| Confirmed **sold** comps with real sold prices | Not a list of optimistic active asking prices |
| Median / average / min / max sold price per query | Not raw listings you still have to do math on |
| A **suggested max buy price** for your target margin | Not after-fee net proceeds |
| Brand, size, condition, discount, and URL per comp | Not private account or buyer data |

### 🔎 Why use this Actor

- Get **real sold prices**, not optimistic active listings.
- See median, average, min, and max sold price for any query in one summary row.
- Get a **suggested max buy price** so you protect your margin at the source.
- Every comp includes brand, size, condition, and discount off original.
- Export CSV-ready data for sourcing spreadsheets, Whatnot prep, or accounting.
- No login required.

### 👥 Who it's for

Resellers and flippers who need to know resale value before they spend. Common jobs:

- Decide what to pay at a thrift store, estate sale, or wholesale lot.
- Price your own Mercari listings against what comparable items actually sold for.
- Compare resale value across brands and sizes before sourcing.
- Build a sourcing cheat sheet of median resale values by keyword.

### ⚙️ How to check Mercari sold prices

1. Open the Actor on Apify.
2. Enter a `query` (keyword or brand), for example `lululemon align leggings`.
3. Set `maxResults` (50-200 gives stable stats).
4. Set `targetMarginPercent` to get a suggested max buy price.
5. Optionally pass `queries` to run several searches in one go.
6. Click **Start**.
7. Download the dataset as CSV, JSON, or Excel, or pull it from the Apify API.

### 📥 Input

```json
{
  "query": "lululemon align leggings",
  "maxResults": 100,
  "targetMarginPercent": 50
}
````

| Field | Meaning |
|---|---|
| `query` | Keyword or brand to search Mercari sold listings |
| `queries` | Optional list to run several searches in one go |
| `maxResults` | Sold comps per query (50-200 gives stable stats) |
| `targetMarginPercent` | Margin headroom used for `suggestedMaxBuyPrice` |

### 📤 Output

**Pricing summary** (default view) - one row per query:

| query | soldCompsFound | medianSoldPrice | averageSoldPrice | minSoldPrice | maxSoldPrice | suggestedMaxBuyPrice |
|---|---|---|---|---|---|---|
| lululemon align leggings | 40 | 29.38 | 35.36 | 10.00 | 96.00 | 14.69 |

**Sold comps** - individual sold listings with `name`, `soldPrice`, `originalPrice`, `discountPercent`, `brand`, `size`, `condition`, and `url`.

#### Quick preview

| Input | Output |
|---|---|
| `lululemon align leggings`, maxResults `100` | median **$29**, range **$10-$96**, 100 sold comps with size and condition |
| `nike dunk low`, targetMarginPercent `50` | median sold + **suggested max buy price** at 50% margin |

### 💵 How much does it cost?

You pay per result row plus Apify platform usage. A 100-comp query is cheap and fast. Cost scales with `maxResults` and the number of `queries` you batch into one run.

### 🔁 Run it on the Apify platform

Schedule recurring price checks, call it from the Apify API, export to CSV/JSON/Excel, or wire it into Make, Zapier, or webhooks to keep a sourcing sheet current.

### ⚠️ Limits and caveats

- Reads only public Mercari sold-listing data.
- A few queries with very few sales may return a small comp count; the summary is honest about `soldCompsFound`.
- `suggestedMaxBuyPrice` ignores marketplace fees, shipping, and condition. Treat it as a starting point, not advice.

### 🧩 Related Actors

- **Poshmark Sold Comps Scraper** - compare resale values across platforms.
- **Lead List Deduplicator & Normalizer** - clean any lists you build.

### ❓ FAQ

**Does it return real sold prices?** Yes - it reads Mercari's public sold listings, not active asking prices.

**Can I research several brands at once?** Yes - pass a `queries` list to run multiple searches in one run.

**Does it scrape private data?** No. It reads only public sold-listing data and does not log in.

### 🛠️ Support

If a run fails or a field is missing, open an Actor issue with the run URL, the input you used, and the field or behavior you expected.

# Actor input Schema

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

Keyword or brand to search Mercari sold listings, e.g. 'lululemon align leggings' or 'nike dunk low'.

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

Run several searches in one go. Each query produces its own pricing summary plus sold comps.

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

How many sold listings to pull per query. 50-200 gives stable pricing stats. Capped for reliability.

## `targetMarginPercent` (type: `integer`):

Share of the median sold price you want to keep as margin. Used only to compute 'suggestedMaxBuyPrice' (a naive rule of thumb that ignores fees and shipping).

## `delayMs` (type: `integer`):

Time to let the search page settle before reading data. Increase only if runs return no comps.

## Actor input object example

```json
{
  "query": "lululemon align leggings",
  "queries": [],
  "maxResults": 100,
  "targetMarginPercent": 50,
  "delayMs": 2500
}
```

# Actor output Schema

## `summary` (type: `string`):

No description

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

No description

## `results` (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 = {
    "query": "lululemon align leggings",
    "queries": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("webdata_labs/mercari-sold-comps-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 = {
    "query": "lululemon align leggings",
    "queries": [],
}

# Run the Actor and wait for it to finish
run = client.actor("webdata_labs/mercari-sold-comps-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": "lululemon align leggings",
  "queries": []
}' |
apify call webdata_labs/mercari-sold-comps-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=webdata_labs/mercari-sold-comps-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Mercari Sold Comps - Real Sold Prices, Not Asking Prices",
        "description": "[💵 $2.00 / 1K] Know what items actually sold for on Mercari, not what sellers are asking. Search any keyword or brand and get the median sold price, a suggested max buy price, and every sold comp - so you never overpay sourcing inventory. CSV/JSON.",
        "version": "0.1",
        "x-build-id": "mowKHzi4ihfkVAqaH"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/webdata_labs~mercari-sold-comps-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-webdata_labs-mercari-sold-comps-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/webdata_labs~mercari-sold-comps-scraper/runs": {
            "post": {
                "operationId": "runs-sync-webdata_labs-mercari-sold-comps-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/webdata_labs~mercari-sold-comps-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-webdata_labs-mercari-sold-comps-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "query": {
                        "title": "Search query",
                        "type": "string",
                        "description": "Keyword or brand to search Mercari sold listings, e.g. 'lululemon align leggings' or 'nike dunk low'.",
                        "default": "lululemon align leggings"
                    },
                    "queries": {
                        "title": "Multiple queries (optional)",
                        "type": "array",
                        "description": "Run several searches in one go. Each query produces its own pricing summary plus sold comps.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxResults": {
                        "title": "Max sold comps per query",
                        "minimum": 1,
                        "maximum": 600,
                        "type": "integer",
                        "description": "How many sold listings to pull per query. 50-200 gives stable pricing stats. Capped for reliability.",
                        "default": 100
                    },
                    "targetMarginPercent": {
                        "title": "Target margin %",
                        "minimum": 0,
                        "maximum": 95,
                        "type": "integer",
                        "description": "Share of the median sold price you want to keep as margin. Used only to compute 'suggestedMaxBuyPrice' (a naive rule of thumb that ignores fees and shipping).",
                        "default": 50
                    },
                    "delayMs": {
                        "title": "Page settle delay (ms)",
                        "minimum": 0,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Time to let the search page settle before reading data. Increase only if runs return no comps.",
                        "default": 2500
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
