# eBay Sold Listings Scraper - Price Research & Analytics (`scrapeworks/ebay-sold-price-analytics`) Actor

Scrape eBay SOLD & completed listings in bulk and get instant price analytics - average, median, min and max sold price per keyword - plus every sold comp (title, sold price, sold date, condition, seller) as clean JSON. No eBay API key or login required.

- **URL**: https://apify.com/scrapeworks/ebay-sold-price-analytics.md
- **Developed by:** [Nicolas van Arkens](https://apify.com/scrapeworks) (community)
- **Categories:** E-commerce, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.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.

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

## eBay Sold Listings Scraper — Price Research & Analytics

**Find out what anything actually sells for on eBay.** Give this actor one or more
keywords (or eBay search URLs) and it scrapes eBay's **SOLD & completed** listings in
bulk, then returns both the raw sold comps **and** a ready-made price-analytics summary
for each keyword: how many sold, the **average, median, minimum and maximum sold price**,
the currency, the date range, and a breakdown by condition and buying format.

No eBay API key, developer account, or login required — you just type keywords.

> Built for resellers, flippers, eBay sellers, dropshippers, estate sellers, repair
> shops and collectors who need real, recent **sold-price** data — not asking prices.

---

### What you get

**Per keyword, one `summary` row** (the analytics):

| field | meaning |
|---|---|
| `searchTerm` | the keyword (or URL keyword) researched |
| `soldCount` | how many sold listings were sampled |
| `pricedCount` | how many had a usable numeric sold price |
| `currency` | dominant currency of the sample (e.g. `$`) |
| `avgSoldPrice` | average sold price |
| `medianSoldPrice` | median sold price (the most robust "going rate") |
| `minSoldPrice` / `maxSoldPrice` | cheapest / dearest sold |
| `stdDevSoldPrice` | price spread (how consistent the market is) |
| `earliestSoldDate` / `latestSoldDate` | date range of the sample (ISO `YYYY-MM-DD`) |
| `conditionBreakdown` | counts by condition (New / Used / Refurbished / …) |
| `formatBreakdown` | counts by buying format (Buy It Now / Auction) |

**Plus, for every sold listing, one `listing` row** (turn off with
`includeListingRows: false` if you only want the summary):

| field | meaning |
|---|---|
| `title` | listing title |
| `soldPrice` / `currency` | the price it sold for |
| `soldDate` | when it sold (ISO `YYYY-MM-DD`) — plus `soldDateText` |
| `condition` | item condition |
| `buyingFormat` / `bids` | Buy It Now or Auction (with bid count) |
| `seller` / `sellerFeedback` | seller and feedback % |
| `url` | direct link to the sold listing |
| `image` | thumbnail URL |

---

### Input

```json
{
  "searchTerms": ["nintendo switch oled", "apple airpods pro 2"],
  "domain": "ebay.com",
  "maxResultsPerQuery": 200,
  "conditionFilter": "any",
  "buyingFormat": "any",
  "includeListingRows": true,
  "proxyConfiguration": { "useApifyProxy": true }
}
````

- **`searchTerms`** — a **list** of products to research. Each is searched separately
  against SOLD listings and summarised on its own. Pass as many as you like in one run.
- **`directUrls`** — optional: paste full eBay `/sch/i.html?...` URLs (your own
  category / price-range / filter links). The actor **auto-forces the SOLD filter** on
  every URL, then paginates and summarises it.
- **`domain`** — which eBay marketplace (US, UK, DE, AU, CA, FR, IT, ES, NL, IE, IN).
- **`maxResultsPerQuery`** — how many sold listings to sample per keyword before
  computing the stats (deep pagination, up to 240/page). 200–500 gives a solid sample.
- **`conditionFilter`** — restrict comps to New / Used / Open box / Refurbished.
- **`buyingFormat`** — restrict to Buy It Now or Auction sales.
- **`includeListingRows`** — keep the individual sold rows (default) or return only the
  summary.

#### Output sample (summary row)

```json
{
  "rowType": "summary",
  "searchTerm": "nintendo switch oled",
  "domain": "ebay.com",
  "soldCount": 200,
  "pricedCount": 196,
  "currency": "$",
  "avgSoldPrice": 248.51,
  "medianSoldPrice": 245.0,
  "minSoldPrice": 180.0,
  "maxSoldPrice": 340.0,
  "stdDevSoldPrice": 27.84,
  "earliestSoldDate": "2026-05-02",
  "latestSoldDate": "2026-06-14",
  "conditionBreakdown": { "Brand New": 88, "Pre-Owned": 104, "Unknown": 8 },
  "formatBreakdown": { "Buy It Now": 171, "Unknown": 29 }
}
```

#### Output sample (listing row)

```json
{
  "rowType": "listing",
  "listingId": "126512345678",
  "title": "Nintendo Switch OLED Model White Console - Excellent",
  "url": "https://www.ebay.com/itm/126512345678",
  "condition": "Pre-Owned",
  "soldPrice": 245.0,
  "soldPriceText": "$245.00",
  "currency": "$",
  "soldDate": "2026-06-12",
  "soldDateText": "Sold Jun 12, 2026",
  "buyingFormat": "Buy It Now",
  "seller": "gametraders_us",
  "sellerFeedback": "99.4% positive",
  "image": "https://i.ebayimg.com/images/g/abcAAOSw.../s-l500.jpg"
}
```

***

### Use cases

- **Price your listing right** — sell faster by matching the real median sold price.
- **Sourcing & arbitrage** — check resale value before you buy at a thrift store, estate
  sale, auction, or wholesale lot.
- **Comps for buying** — know the fair market price before you bid.
- **Trend tracking** — run the same keywords on a schedule and watch the median move.

### FAQ

**Is this asking prices or actual sold prices?** Actual **sold** prices — the actor only
reads eBay's SOLD & completed listings (`LH_Sold=1&LH_Complete=1`).

**Do I need an eBay API key or developer account?** No. It reads eBay's public
sold-listings pages, so there is nothing to authorise.

**How far back does it go?** eBay publicly shows roughly the last few hundred sold items
per search; `maxResultsPerQuery` controls how many of those you sample.

**Why is a proxy recommended?** eBay blocks datacenter traffic. The actor defaults to
Apify Proxy; **RESIDENTIAL** proxy is strongly recommended for reliable, complete results.

**Which marketplaces are supported?** ebay.com, .co.uk, .de, .com.au, .ca, .fr, .it,
.es, .nl, .ie and .in. Prices come back in that marketplace's local currency.

# Actor input Schema

## `searchTerms` (type: `array`):

One or more products/phrases to research on eBay (e.g. 'nintendo switch oled', 'vintage omega seamaster'). Each term is searched against SOLD & completed listings only, paginated deep up to 'Max sold listings per query', and summarised into price analytics. Add as many keywords as you like in a single run.

## `directUrls` (type: `array`):

Optional: paste full eBay search-results URLs (an /sch/i.html?... link with your own category / price range / filters already applied). The actor automatically forces the SOLD + completed filter on every URL, then paginates and summarises it just like a keyword. Use this when you want eBay's own advanced filters.

## `domain` (type: `string`):

Which eBay site to research. Sold prices are returned in that site's local currency. Most-used is ebay.com (US).

## `maxResultsPerQuery` (type: `integer`):

Maximum SOLD listings to sample for EACH keyword/URL before computing analytics. The actor paginates automatically (up to 240 listings per page). eBay shows roughly the last few hundred sold items per search; 200-500 gives a solid price sample.

## `conditionFilter` (type: `string`):

Only analyse sold listings of this condition (e.g. 'New' for sealed comps, 'Used' for second-hand value). 'Any' returns everything.

## `buyingFormat` (type: `string`):

Restrict the sold comps to a buying format. 'Any' includes both fixed-price and auction sales.

## `includeListingRows` (type: `boolean`):

If on (default), every sold listing is returned as its own row (title, sold price, sold date, condition, seller, link) alongside the per-query analytics summary row. Turn off to return ONLY the analytics summary row for each keyword.

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

Proxy used to reach eBay. eBay blocks datacenter traffic, so RESIDENTIAL Apify Proxy is strongly recommended for reliable results. Defaults to Apify Proxy.

## Actor input object example

```json
{
  "searchTerms": [
    "nintendo switch oled"
  ],
  "domain": "ebay.com",
  "maxResultsPerQuery": 200,
  "conditionFilter": "any",
  "buyingFormat": "any",
  "includeListingRows": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "searchTerms": [
        "nintendo switch oled"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeworks/ebay-sold-price-analytics").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 = {
    "searchTerms": ["nintendo switch oled"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("scrapeworks/ebay-sold-price-analytics").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 '{
  "searchTerms": [
    "nintendo switch oled"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call scrapeworks/ebay-sold-price-analytics --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scrapeworks/ebay-sold-price-analytics",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "eBay Sold Listings Scraper - Price Research & Analytics",
        "description": "Scrape eBay SOLD & completed listings in bulk and get instant price analytics - average, median, min and max sold price per keyword - plus every sold comp (title, sold price, sold date, condition, seller) as clean JSON. No eBay API key or login required.",
        "version": "0.1",
        "x-build-id": "ZpCtm3NHzR8j6bYvH"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/scrapeworks~ebay-sold-price-analytics/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-scrapeworks-ebay-sold-price-analytics",
                "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/scrapeworks~ebay-sold-price-analytics/runs": {
            "post": {
                "operationId": "runs-sync-scrapeworks-ebay-sold-price-analytics",
                "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/scrapeworks~ebay-sold-price-analytics/run-sync": {
            "post": {
                "operationId": "run-sync-scrapeworks-ebay-sold-price-analytics",
                "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": {
                    "searchTerms": {
                        "title": "Search keywords",
                        "uniqueItems": true,
                        "type": "array",
                        "description": "One or more products/phrases to research on eBay (e.g. 'nintendo switch oled', 'vintage omega seamaster'). Each term is searched against SOLD & completed listings only, paginated deep up to 'Max sold listings per query', and summarised into price analytics. Add as many keywords as you like in a single run.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "directUrls": {
                        "title": "eBay search URLs (optional, power users)",
                        "uniqueItems": true,
                        "type": "array",
                        "description": "Optional: paste full eBay search-results URLs (an /sch/i.html?... link with your own category / price range / filters already applied). The actor automatically forces the SOLD + completed filter on every URL, then paginates and summarises it just like a keyword. Use this when you want eBay's own advanced filters.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "domain": {
                        "title": "eBay marketplace",
                        "enum": [
                            "ebay.com",
                            "ebay.co.uk",
                            "ebay.de",
                            "ebay.com.au",
                            "ebay.ca",
                            "ebay.fr",
                            "ebay.it",
                            "ebay.es",
                            "ebay.nl",
                            "ebay.ie",
                            "ebay.in"
                        ],
                        "type": "string",
                        "description": "Which eBay site to research. Sold prices are returned in that site's local currency. Most-used is ebay.com (US).",
                        "default": "ebay.com"
                    },
                    "maxResultsPerQuery": {
                        "title": "Max sold listings per query",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Maximum SOLD listings to sample for EACH keyword/URL before computing analytics. The actor paginates automatically (up to 240 listings per page). eBay shows roughly the last few hundred sold items per search; 200-500 gives a solid price sample.",
                        "default": 200
                    },
                    "conditionFilter": {
                        "title": "Item condition",
                        "enum": [
                            "any",
                            "new",
                            "used",
                            "open_box",
                            "refurbished"
                        ],
                        "type": "string",
                        "description": "Only analyse sold listings of this condition (e.g. 'New' for sealed comps, 'Used' for second-hand value). 'Any' returns everything.",
                        "default": "any"
                    },
                    "buyingFormat": {
                        "title": "Buying format",
                        "enum": [
                            "any",
                            "buy_it_now",
                            "auction"
                        ],
                        "type": "string",
                        "description": "Restrict the sold comps to a buying format. 'Any' includes both fixed-price and auction sales.",
                        "default": "any"
                    },
                    "includeListingRows": {
                        "title": "Include individual sold-listing rows",
                        "type": "boolean",
                        "description": "If on (default), every sold listing is returned as its own row (title, sold price, sold date, condition, seller, link) alongside the per-query analytics summary row. Turn off to return ONLY the analytics summary row for each keyword.",
                        "default": true
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Proxy used to reach eBay. eBay blocks datacenter traffic, so RESIDENTIAL Apify Proxy is strongly recommended for reliable results. Defaults to Apify Proxy.",
                        "default": {
                            "useApifyProxy": true
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
