# eBay Sold Prices & Sales Comps Finder (`xyrelith-data/ebay-sold-listings-scraper`) Actor

Collect completed eBay sales for price research: sold price, sale age, seller, condition, shipping and item specifics by keyword, seller or item link across eight marketplaces. Includes a percentile price summary per query.

- **URL**: https://apify.com/xyrelith-data/ebay-sold-listings-scraper.md
- **Developed by:** [Xyrelith Data](https://apify.com/xyrelith-data) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## eBay Sold Prices & Sales Comps Finder

Turn recent eBay sales into a clean price dataset. Give the actor a keyword, a seller name or an
item link, and it returns one row per completed sale with the price the buyer paid, how long ago the
sale happened, the seller, and optional condition, shipping and item-specific details. A second row
per query summarizes the market: count, minimum, maximum, mean, median and four price percentiles.

The actor needs no eBay login, no cookies and no developer key. It works on all eight major eBay
marketplaces and returns prices in each site's own currency.

### What you get

Each sale row carries:

- item ID, title and link
- sold price as text and as a number, plus the currency
- sale age bucket (`Past month`, `Past 6 months`, `Past year`) and the earliest possible sale date
- exact sale date when the listing page still shows it
- seller username, positive feedback percentage and feedback count
- buyer feedback rating for that order
- condition, condition ID, buying format, bid count and Best Offer flag (detail pass)
- shipping cost, free-shipping flag and price plus shipping (detail pass)
- item location, returns policy, image, brand, model, MPN, GTIN and the full item specifics table
  (detail pass)
- the query that found the row and the marketplace

Each summary row carries the number of sales, min, max, mean, median, 10th/25th/75th/90th
percentile price, average shipping, sellers scanned and listing pages read.

### How it works

eBay now asks signed-out visitors to sign in before showing its Sold Items search. The actor never
tries to bypass that. Instead it reads two surfaces eBay still serves publicly: the seller feedback
profiles, where every completed order is listed with the amount paid and its age, and the public
listing pages, where condition, shipping, returns and item specifics live.

For a keyword the actor first reads the live search results to find sellers who list that keyword
today, then reads each seller's feedback filtered by the keyword. Named sellers and item links skip
the discovery step and go straight to the feedback or listing page. This keeps the whole pipeline
cookieless and independent of eBay accounts.

### Input

| Field | Default | What it does |
|---|---|---|
| `mode` | `search` | `search`, `sellers`, `items` or `urls` |
| `searchQueries` | – | Keywords, one per line |
| `sellerUsernames` | – | Seller names or feedback-profile links |
| `itemIds` | – | Item numbers or item links |
| `startUrls` | – | Pasted search, category, seller or item links |
| `marketplace` | `US` | US, GB, DE, AU, CA, FR, IT or ES |
| `categoryIds` | – | Optional category numbers for keyword discovery |
| `condition` | `any` | Any, new, open box, used, refurbished or for parts |
| `buyingFormat` | `all` | All, auction, Buy It Now or Best Offer |
| `minPrice` | – | Lowest sold price in the marketplace currency |
| `maxPrice` | – | Highest sold price in the marketplace currency |
| `soldWithinDays` | `90` | Sale window from 1 to 365 days |
| `excludeKeywords` | – | Drop titles containing these words |
| `freeShippingOnly` | `false` | Keep listings with free shipping |
| `returnsAccepted` | `false` | Keep listings that accept returns |
| `itemLocation` | `any` | Any, domestic or worldwide |
| `sortBy` | `recent` | Recent, lowest price or highest price |
| `includeItemDetails` | `false` | Read listing pages for condition, shipping, specifics and images |
| `maxItemDetails` | `100` | Safety cap on listing-page reads per run |
| `maxItems` | `200` | Total sale rows for the run |
| `maxSearchPages` | `2` | Live-search pages scanned for sellers |
| `maxSellers` | `25` | Sellers read per keyword |
| `feedbackPages` | `2` | Feedback pages read per seller |

The smallest useful run checks one keyword, reads two sellers and one feedback page per seller.
Turn on `includeItemDetails` when you need condition, shipping or item specifics; it is switched on
automatically when a detail-based filter is set.

### Examples

Keyword search on the US site:

```json
{
  "mode": "search",
  "searchQueries": ["iphone 13 128gb"],
  "marketplace": "US",
  "soldWithinDays": 30,
  "maxItems": 100
}
```

One seller, all recent sales, with details:

```json
{
  "mode": "sellers",
  "sellerUsernames": ["musicmagpie"],
  "marketplace": "GB",
  "includeItemDetails": true,
  "feedbackPages": 3,
  "maxItems": 50
}
```

An item link and a pasted search link together:

```json
{
  "mode": "urls",
  "startUrls": [
    "https://www.ebay.com/itm/325928599348",
    "https://www.ebay.co.uk/sch/i.html?_nkw=nintendo+switch+oled&LH_Sold=1&LH_Complete=1"
  ],
  "maxItems": 30
}
```

### Use cases

- Check what a phone, camera, card or console actually sold for before buying stock.
- Build a median and percentile price band for a product model and refresh it on a schedule.
- Compare the same keyword across the US, UK and German marketplaces in local currency.
- Read a named reseller's recent sales to understand their inventory and pricing.
- Look up one item number to confirm its final price and sale window.

### Limits you should know

eBay publishes the age of a feedback sale as a bucket, not an exact day. Every row therefore
carries `soldDateRange` and `soldNotBefore`; an exact `soldDate` is filled only when the listing page
itself is an ended single-quantity listing that still shows the sale date. Multi-quantity sales have
no per-unit date.

Keyword coverage means sellers who list that keyword today. A seller who sold the item months ago
and no longer lists it will not be found by a keyword search; use the seller mode for that. The
feedback route sees completed sales only, so completed-but-unsold listings and a sell-through rate
are not available. For Best Offer sales, eBay shows the asking price rather than the accepted offer
amount, and the actor marks the row with `isBestOffer`. The sale window follows eBay's buckets: a
90-day request keeps sales from the past month and the past six months.

### FAQ

**Do I need an eBay account, cookies or an API key?** No. The actor reads public pages only.

**Why is there no sell-through rate?** eBay's completed search is behind a sign-in wall and feedback
only records sales that happened. Sell-through needs the unsold ended listings too, which are no
longer public.

**Why do some rows lack shipping or condition?** Those fields live on the listing page. Set
`includeItemDetails` to read them, or relax the detail-based filters.

**Can I run the same keyword on several marketplaces?** Yes. Run the actor once per marketplace, or
paste one search link per marketplace in `urls` mode.

**Does the actor return seller contact details or buyer names?** No. Buyer identities are masked by
eBay and contact details are out of scope.

**How do I get more rows for a rare item?** Raise `maxSellers` and `feedbackPages`, add related
keywords, or use `sellers` mode with the sellers you already know.

# Actor input Schema

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

Search by keyword, read named sellers, look up item links, or route pasted eBay URLs.

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

One keyword search per line, exactly as you would type it on eBay. Each query finds sellers listing the keyword today, then reads their recent completed sales.

## `sellerUsernames` (type: `array`):

eBay usernames or feedback-profile links. Reads each seller's recent sales; combine with a keyword to keep only matching sales.

## `itemIds` (type: `array`):

eBay item numbers or item links. Reads the listing page and the seller's sales for that item.

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

Search, category, sold-search, seller or item links. Sold-search links are read through seller discovery because eBay now asks signed-out visitors to sign in.

## `marketplace` (type: `string`):

eBay site to read. Prices are returned in the site's currency.

## `categoryIds` (type: `array`):

Optional eBay category numbers, for example 9355 for cell phones. Applies to keyword seller discovery.

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

Keep only sales whose listing shows this condition. Requires a listing-page detail read for the matching rows.

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

Keep only auction, Buy It Now or Best Offer sales. Read from the listing page when available.

## `minPrice` (type: `number`):

Lowest sold price to keep, in the marketplace currency. Leave empty for no minimum.

## `maxPrice` (type: `number`):

Highest sold price to keep, in the marketplace currency. Leave empty for no maximum.

## `soldWithinDays` (type: `integer`):

Keep sales within this window. eBay publishes the sale age in buckets, so the actor keeps every bucket that fits the window.

## `excludeKeywords` (type: `array`):

Drop sales whose title contains any of these words, for example case, lot or broken.

## `freeShippingOnly` (type: `boolean`):

Keep only sales whose listing offers free shipping. Requires a listing-page detail read.

## `returnsAccepted` (type: `boolean`):

Keep only sales whose listing accepts returns. Requires a listing-page detail read.

## `itemLocation` (type: `string`):

Domestic keeps items located in the marketplace country; worldwide keeps every location.

## `sortBy` (type: `string`):

Order of the sale rows in the dataset. Price sorts use the sold price.

## `includeItemDetails` (type: `boolean`):

Add condition, shipping, returns, location, brand, MPN, GTIN and item specifics from each listing page. Slower but richer rows.

## `maxItemDetails` (type: `integer`):

Safety cap on listing-page reads per run when details or detail filters are on.

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

Stop after this many sale rows across the whole run.

## `maxSearchPages` (type: `integer`):

How many pages of live keyword results to scan for sellers, 60 listings per page.

## `maxSellers` (type: `integer`):

How many sellers found for a keyword are read. More sellers means more coverage and more requests.

## `feedbackPages` (type: `integer`):

How many pages of a seller's matching feedback to read, 25 sales per page.

## Actor input object example

```json
{
  "mode": "search",
  "searchQueries": [
    "iphone 13"
  ],
  "marketplace": "US",
  "condition": "any",
  "buyingFormat": "all",
  "soldWithinDays": 90,
  "freeShippingOnly": false,
  "returnsAccepted": false,
  "itemLocation": "any",
  "sortBy": "recent",
  "includeItemDetails": false,
  "maxItemDetails": 100,
  "maxItems": 3,
  "maxSearchPages": 2,
  "maxSellers": 2,
  "feedbackPages": 1
}
```

# Actor output Schema

## `sales` (type: `string`):

One row per completed sale, with price, sale age, seller and optional listing details.

## `summaries` (type: `string`):

One summary per query with count, min, max, mean, median and percentile sold prices.

# 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 = {
    "mode": "search",
    "searchQueries": [
        "iphone 13"
    ],
    "marketplace": "US",
    "condition": "any",
    "buyingFormat": "all",
    "soldWithinDays": 90,
    "freeShippingOnly": false,
    "returnsAccepted": false,
    "itemLocation": "any",
    "sortBy": "recent",
    "includeItemDetails": false,
    "maxItemDetails": 100,
    "maxItems": 3,
    "maxSearchPages": 2,
    "maxSellers": 2,
    "feedbackPages": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("xyrelith-data/ebay-sold-listings-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 = {
    "mode": "search",
    "searchQueries": ["iphone 13"],
    "marketplace": "US",
    "condition": "any",
    "buyingFormat": "all",
    "soldWithinDays": 90,
    "freeShippingOnly": False,
    "returnsAccepted": False,
    "itemLocation": "any",
    "sortBy": "recent",
    "includeItemDetails": False,
    "maxItemDetails": 100,
    "maxItems": 3,
    "maxSearchPages": 2,
    "maxSellers": 2,
    "feedbackPages": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("xyrelith-data/ebay-sold-listings-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 '{
  "mode": "search",
  "searchQueries": [
    "iphone 13"
  ],
  "marketplace": "US",
  "condition": "any",
  "buyingFormat": "all",
  "soldWithinDays": 90,
  "freeShippingOnly": false,
  "returnsAccepted": false,
  "itemLocation": "any",
  "sortBy": "recent",
  "includeItemDetails": false,
  "maxItemDetails": 100,
  "maxItems": 3,
  "maxSearchPages": 2,
  "maxSellers": 2,
  "feedbackPages": 1
}' |
apify call xyrelith-data/ebay-sold-listings-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xyrelith-data/ebay-sold-listings-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/fmFSlCWgAtL3eQOQd/builds/ToZUfahAApPX3l8fG/openapi.json
