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

Scrape eBay sold comps across 11 marketplaces without an eBay account or API key. Get unique sold listings with final price, sold date, condition, shipping and seller, plus a median, mean, min, max and percentile summary per keyword or GTIN/UPC/MPN. Export JSON/CSV.

- **URL**: https://apify.com/datascraperes/ebay-sold-comps-scraper.md
- **Developed by:** [DataScraperES](https://apify.com/datascraperes) (community)
- **Categories:** E-commerce, Automation, 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 $1.75 / 1,000 sold listings

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

Get confirmed eBay sold listings and a ready-to-use price summary across 11 marketplaces. **One structured Dataset item per sold listing**, plus a comp summary with median, mean, range and percentiles for every keyword or product identifier.

### What this Actor does

eBay Sold Comps Scraper collects public sold listings from eBay's own app response, without an eBay login or a browser. It searches keywords or product identifiers (GTIN, UPC, ISBN, MPN), supports condition, price, buying-format and free-shipping filters, and returns deduplicated sold listings in the selected marketplace's currency. It also writes a comp summary so you can value a product without building a pivot table.

### Use cases

- Build sold-price comps for resale, flipping or inventory valuation.
- Compare recent sold prices for the same product across marketplaces.
- Monitor demand and price ranges for a keyword or product identifier over scheduled runs.
- Get a median, mean, min, max and percentile summary for each query.
- Export a clean dataset for spreadsheets, dashboards or pricing models.

### How to use

1. Open the Actor in Apify Console.
2. In **Start here**, enter one or more search keywords, or paste product identifiers. Replace the example `iphone 15 pro` with your product.
3. Choose the marketplace and keep **Maximum sold listings per keyword** at 5 for a first run.
4. Click **Start** and open the Dataset when the run finishes. Export it as JSON, CSV, Excel, XML, RSS or HTML.

The example searches across all conditions and formats, with a maximum price of 3,000 in the selected marketplace currency. Clear the price bounds to search without a price filter.

### Input

Enter at least one **Search keyword** or **Product identifier**. Up to 10 unique values of each type are searched separately; every output row records the query that produced it. The default limit is 50 unique sold listings per query, up to 1,000.

```json
{
  "keywords": ["iphone 15 pro"],
  "productIdentifiers": [],
  "marketplace": "US",
  "maxResultsPerKeyword": 5,
  "condition": "any",
  "minPrice": 0,
  "maxPrice": 3000,
  "buyingFormat": "any",
  "freeShipping": false,
  "soldWithinDays": 90
}
```

| Field | Type | Required | Description |
|---|---|---:|---|
| `keywords` | array | Yes\* | One to ten search terms. |
| `productIdentifiers` | array | Yes\* | Up to ten GTIN, UPC, ISBN or MPN values. \*At least one keyword or identifier is required. |
| `marketplace` | string | No | `US`, `GB`, `DE`, `FR`, `IT`, `ES`, `CA`, `AU`, `NL`, `IE` or `PL`; default `US`. |
| `maxResultsPerKeyword` | integer | No | Unique sold listings per keyword, 1–1,000; default 50. |
| `condition` | string | No | `any`, `new` or `used`; default `any`. |
| `minPrice` / `maxPrice` | integer or null | No | Price bounds in the marketplace currency. |
| `buyingFormat` | string | No | `any`, `auction` or `buy_it_now`; default `any`. |
| `freeShipping` | boolean | No | Keep only free-shipping listings; default false. |
| `soldWithinDays` | integer | No | Best-effort sold-date window, 1–90 days; default 90. |

Only unique listings saved to the Dataset are billed. Duplicate results across keywords or pages are skipped.

### Comp summary

After the run, the key-value store contains `COMP_SUMMARY` (also nested under
`SUMMARY.compSummary`). It reports, for the whole run and for each query:

- `count`, `median`, `mean`, `min`, `max`, `p25`, `p75`
- `currency`
- `soldDateFrom`, `soldDateTo`

The summary uses only unique listings saved in that run, so it matches the
Dataset. It is included in the same `sold-listing` event; no extra charge.

### Output

Results are saved to the run's default Dataset. Each item is one unique sold listing. Missing values are `null` rather than guessed. This is a real item from a US search for `iphone 15 pro`:

```json
{
  "resultId": "US:257860843757",
  "itemId": "257860843757",
  "marketplace": "US",
  "title": "Apple iPhone 15 Pro A2848 1TB Natural Titanium Mint condition Factory Unlocked",
  "url": "https://www.ebay.com/itm/257860843757",
  "soldPrice": 588.69,
  "currency": "USD",
  "soldPriceText": "$588.69",
  "soldDate": "2026-11-19",
  "soldDateText": "Sold  Nov 19, 2026",
  "bidCount": null,
  "condition": "Pre-Owned",
  "buyingFormat": "buy_it_now",
  "shippingText": "Shipping not specified",
  "sellerUsername": "daotech",
  "sellerFeedbackPercent": 99.8,
  "sellerFeedbackScore": null,
  "itemLocation": "United States",
  "imageUrl": "https://i.ebayimg.com/images/g/xhYAAeSwui5q~xT7/s-l225.jpg",
  "keyword": "iphone 15 pro",
  "page": 1,
  "scrapedAt": "2026-11-20T09:51:20.995863+00:00"
}
```

### Pricing

This Actor uses pay-per-event billing. The billable event is **one unique sold listing saved to the Dataset**. Check the Actor's **Pricing** tab for the current price. Duplicate rows, empty results and failed requests are not charged.

### Related Actors

| Actor | Best for |
|---|---|
| [Vinted Scraper | Listings & Prices by Market](https://apify.com/datascraperes/vinted-scraper) | Second-hand listing and price research on Vinted. |
| [Wallapop Scraper | Spain Listings & Sellers](https://apify.com/datascraperes/wallapop-marketplace-scraper) | Spanish classified listings and seller data. |
| [Shopify Products Scraper | Prices & Variants](https://apify.com/datascraperes/shopify-products-scraper) | New-product catalog and variant pricing. |
| [Craigslist Scraper | Listings, Prices & Details](https://apify.com/datascraperes/craigslist-scraper) | Local classified listings and prices. |

### Limits and data quality

- **11 marketplaces tested:** US, GB, DE, FR, IT, ES, CA, AU, NL, IE and PL. Currency follows the marketplace.
- **Sold dates are best-effort.** eBay's sold list is not strictly date-sorted; `soldWithinDays` filters the dates it can read and keeps listings whose date is unavailable.
- **Best Offer:** eBay does not always disclose the accepted offer amount. `soldPrice` is the price displayed by eBay.
- **Availability changes.** eBay can change or restrict the public sold response at any time; a run may return fewer results than a previous one.
- **Interrupted runs.** Open the Dataset for saved listings and check `SUMMARY` in the key-value store to see whether collection completed. When available, the summary includes the saved listings and the reason the run stopped.
- **Card fields are not always present.** Seller username, feedback and shipping wording can be empty on some layouts and are returned as `null`.
- **No login and no user data.** The Actor reads public sold listings; it does not access a buyer or seller account.

### Frequently asked questions

#### Do I need an eBay account?

No. The Actor uses public eBay app data and does not require an eBay login.

#### Are these real sold prices?

They are the sold prices eBay displays for sold listings. When a sale closed through an accepted Best Offer, eBay may not publish the negotiated amount.

#### Why did I get fewer listings than the limit?

The limit is a cap, not a guarantee. Availability, the marketplace, filters and eBay's current result set can all reduce the number of unique sold listings.

#### Can I search several marketplaces at once?

Each run uses one marketplace. Run the Actor once per marketplace, or schedule separate runs, to compare countries.

### Responsible use

You are responsible for using the Actor lawfully and in line with eBay's terms, applicable privacy rules and local regulations. The Actor collects public listing data and does not access private accounts or buyer information.

### Support

Open an issue in the Actor's **Issues** tab and include the input used and the run ID. Do not include credentials or personal data.

Find Python, JavaScript, cURL, and CSV export examples in the [public GitHub integration repository](https://github.com/datacrawler-edu/ebay-sold-comps-api).

# Actor input Schema

## `keywords` (type: `array`):

One or more eBay search terms. Each keyword is searched separately and every result records the keyword that produced it. Use up to 10 terms.

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

eBay marketplace to search. Results use that marketplace's local currency.

## `maxResultsPerKeyword` (type: `integer`):

Stop after this many unique sold listings for each keyword. This is a limit, not a guarantee: fewer matching listings may be available. Only unique listings saved to the Dataset are charged.

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

Optional eBay condition filter. Any keeps all conditions.

## `minPrice` (type: `integer`):

Optional minimum price in the marketplace currency. Leave blank for no minimum.

## `maxPrice` (type: `integer`):

Optional maximum price in the marketplace currency. Leave blank for no maximum. Must not be below the minimum.

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

Optional filter for auctions or fixed-price (Buy It Now) sales.

## `freeShipping` (type: `boolean`):

Keep only sold listings marked as free shipping by eBay.

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

Best-effort date window from the sold date shown by eBay. eBay's sold list is not strictly date-sorted; the Actor filters the dates it can read and keeps listings whose date is unavailable.

## `productIdentifiers` (type: `array`):

Optional GTIN, UPC, ISBN or MPN values. Each identifier is searched like a keyword and every result records the identifier that produced it.

## Actor input object example

```json
{
  "keywords": [
    "iphone 15 pro"
  ],
  "marketplace": "US",
  "maxResultsPerKeyword": 5,
  "condition": "any",
  "minPrice": 0,
  "maxPrice": 3000,
  "buyingFormat": "any",
  "freeShipping": false,
  "soldWithinDays": 90,
  "productIdentifiers": []
}
```

# Actor output Schema

## `soldListings` (type: `string`):

The complete, deduplicated set of sold listings produced by this run, displayed with the Sold comps dataset view.

# 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 = {
    "keywords": [
        "iphone 15 pro"
    ],
    "marketplace": "US",
    "maxResultsPerKeyword": 5,
    "condition": "any",
    "minPrice": 0,
    "maxPrice": 3000,
    "buyingFormat": "any",
    "freeShipping": false,
    "soldWithinDays": 90,
    "productIdentifiers": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("datascraperes/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 = {
    "keywords": ["iphone 15 pro"],
    "marketplace": "US",
    "maxResultsPerKeyword": 5,
    "condition": "any",
    "minPrice": 0,
    "maxPrice": 3000,
    "buyingFormat": "any",
    "freeShipping": False,
    "soldWithinDays": 90,
    "productIdentifiers": [],
}

# Run the Actor and wait for it to finish
run = client.actor("datascraperes/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 '{
  "keywords": [
    "iphone 15 pro"
  ],
  "marketplace": "US",
  "maxResultsPerKeyword": 5,
  "condition": "any",
  "minPrice": 0,
  "maxPrice": 3000,
  "buyingFormat": "any",
  "freeShipping": false,
  "soldWithinDays": 90,
  "productIdentifiers": []
}' |
apify call datascraperes/ebay-sold-comps-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datascraperes/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/Uzf1HbFCMUizaG87U/builds/8X9wCEYWDjYs7oDUS/openapi.json
