# eBay Sold Comps & Realized Price Scraper (`axery/ebay-sold-comps-scraper`) Actor

Scrape eBay sold items and completed listings to get real market prices, median comps, and 90th percentile price bands. Fast HTTP-only.

- **URL**: https://apify.com/axery/ebay-sold-comps-scraper.md
- **Developed by:** [Axery](https://apify.com/axery) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 ebay sold item extracteds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## eBay Sold Comps & Realized Price Scraper 🏷️

Extract verified **sold items** and **completed listings** from eBay across multiple countries (US, UK, CA, DE, FR, AU). Calculate **reseller-grade price bands** (minimum price, median price, 90th percentile, and average) to gauge true market value without relying on unproven asking prices.

***

### ⚡ Key Features

- **Actual Realized Prices**: Scrapes items that were actually bought and paid for, not just listed.
- **Price Band Intelligence**: Computes **Min**, **Median**, **P90 (90th Percentile)**, and **Average** prices directly for each search query.
- **Multi-Country Marketplaces**: Supports US (`ebay.com`), UK (`ebay.co.uk`), Canada (`ebay.ca`), Germany (`ebay.de`), France (`ebay.fr`), and Australia (`ebay.com.au`).
- **Auction vs Buy It Now**: Identifies bidding history or instant purchase type.
- **Condition & Shipping**: Tracks condition (Brand New, Pre-Owned) and shipping costs.
- **Zero Headless Overhead**: Ultra-fast, lightweight HTTP scraper (256 MB RAM friendly).

***

### 📥 Input Parameters

| Field | Type | Description | Default |
| :--- | :--- | :--- | :--- |
| `query` | String | **Required**. Search keyword (e.g. `pokemon charizard vmax`, `air jordan 1 retro`). | `"pokemon charizard vmax"` |
| `maxItems` | Integer | Maximum sold items to extract (1 - 200). | `50` |
| `country` | String | eBay marketplace (`US`, `UK`, `CA`, `DE`, `FR`, `AU`). | `"US"` |
| `condition` | String | Condition filter: `ALL`, `NEW`, or `USED`. | `"ALL"` |
| `proxyConfiguration` | Object | Proxy settings (Apify Residential proxy recommended). | `RESIDENTIAL` |

***

### 📤 Output Format

Each item pushed to the default dataset contains:

```json
{
  "itemId": "386928192819",
  "title": "Pokemon Card Charizard VMAX Darkness Ablaze 020/189 Ultra Rare",
  "price": "$45.00",
  "priceNumeric": 45.00,
  "currency": "USD",
  "soldDate": "Sold Sep 10, 2026",
  "shipping": "Free shipping",
  "condition": "Pre-Owned",
  "isAuction": false,
  "bids": null,
  "itemUrl": "https://www.ebay.com/itm/386928192819",
  "imageUrl": "https://i.ebayimg.com/thumbs/images/g/.../s-l500.jpg",
  "seller": "cardseller99 (4520) 99.8%",
  "query": "pokemon charizard vmax",
  "country": "US"
}
```

The Key-Value Store key `PRICE_BANDS` provides aggregated market intelligence:

```json
{
  "min": 19.99,
  "median": 42.50,
  "p90": 85.00,
  "average": 46.12,
  "sampleCount": 50
}
```

# Actor input Schema

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

Product name, model, card name, or collectible to search for sold comps.

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

Maximum number of sold items to extract (1 to 200).

## `country` (type: `string`):

Target eBay site.

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

Filter by item condition.

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

Proxy settings. Apify Residential Proxy is strongly recommended for eBay.

## Actor input object example

```json
{
  "query": "pokemon charizard vmax",
  "maxItems": 50,
  "country": "US",
  "condition": "ALL",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

Dataset containing sold listings and price analytics.

# 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": "pokemon charizard vmax"
};

// Run the Actor and wait for it to finish
const run = await client.actor("axery/ebay-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": "pokemon charizard vmax" }

# Run the Actor and wait for it to finish
run = client.actor("axery/ebay-sold-comps-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 '{
  "query": "pokemon charizard vmax"
}' |
apify call axery/ebay-sold-comps-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,axery/ebay-sold-comps-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/dxSARYP0gt2hQApIL/builds/BNmbG5Rgx3BA01Jgc/openapi.json
