# eBay Sold Listings Scraper: Completed, Best Offer & Seller (`zenonnnnnn/ebay-sold-listings-comps`) Actor

Scrape verified eBay Sold & Completed listings by keyword, seller (\_ssn), category or price across 8 sites (.com, .co.uk, .de, .ca, .com.au, .fr, .it, .es). Detects Best Offer deals, strips parts/box noise & computes free Fair Market Value (FMV) comps ($1.50/1K).

- **URL**: https://apify.com/zenonnnnnn/ebay-sold-listings-comps.md
- **Developed by:** [xu zenon](https://apify.com/zenonnnnnn) (community)
- **Categories:** E-commerce, Business, Marketing
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.50 / 1,000 sold listing records

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/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 Listings Scraper: Completed Sales, Best Offer, Seller & Comps API

[![Apify MCP Server](https://img.shields.io/badge/MCP_Server-Ready-blue)](https://mcp.apify.com/?tools=Zenonnnnnn/ebay-sold-listings-comps) [![Pricing](https://img.shields.io/badge/PPE-$1.50_%2F_1K_Sold_Items-success)](#transparent-pay-per-event-pricing) [![Proxy](https://img.shields.io/badge/Residential_Proxy-$0_Required_\(Optional\)-brightgreen)](#why-choose-this-over-legacy--single-site-ebay-scrapers)

Extract verified **eBay Sold & Completed listings** (`LH_Sold=1 & LH_Complete=1`) by **keyword**, **competitor seller username (`_ssn`)**, **numeric category ID (`_sacat`)**, **price range**, or **buying format** (`auction`, `buy_it_now`, `accepts_offers`). Detects negotiated **Best Offer** deals, strips broken/empty-box noise, and calculates **Fair Market Value (FMV)** quartile comps & daily sales velocity across **8 regional eBay sites** (`.com`, `.co.uk`, `.de`, `.ca`, `.com.au`, `.fr`, `.it`, `.es`).

- **AI Agent MCP Server**: `https://mcp.apify.com/?tools=Zenonnnnnn/ebay-sold-listings-comps` | **Workflow Recipes & Examples**: [apify-b2b-intelligence-examples](https://github.com/Violettttee/apify-b2b-intelligence-examples)

### Why Choose This Over Legacy / Single-Site eBay Scrapers?

| Feature / Buying Criteria | Legacy eBay Sold Scrapers (`$2.50–$4.00/1K`) | **`ebay-sold-listings-comps` (`$1.50/1K`)** |
| :--- | :--- | :--- |
| **Proxy Overhead** | Heavy browser sessions burning paid residential GBs | **Pure-HTTP Brotli Engine (`$0` residential proxy required for standard runs)** |
| **Seller & Category Audits** | Keyword-only or brittle browser pagination | **Native `seller` (`_ssn` + `_saslop=1` even with empty `queries`), `categoryId` (`_sacat`), `minPrice`/`maxPrice` & `buyingFormat`** |
| **2026 DOM & Query Rewrite Guard** | Polluted by `"Results matching fewer words"` tail junk | **2026 `s-card`/`s-item` parser + Rewrite-Boundary Truncation (`0%` tail noise)** |
| **Best Offer & Landed Cost** | Scrapes asking price only; misses shipping & UK/EU fees | **Flags strikethrough `best_offer_accepted` + `totalLandedPrice` + Buyer Protection Fee** |
| **Parts / Empty-Box Filtering** | Broken units & `"box only"` skew average comps by 30%+ | **17-rule multilingual noise cleaner (`for parts`, `empty box`, `icloud locked`, `defekt`)** |
| **Fair Market Value (FMV) Stats** | Raw rows only (or `$0.10` extra per pricing report) | **Free `COMPS_SUMMARY`: Median, 10% Trimmed Mean, P25/P75/IQR & Sales/Day (`$0` extra)** |
| **Blocked / Empty Run Billing** | Charges Actor-start fees even on 0-result or blocked runs | **`$0.00` start fee & `$0.00` charged on 0-result queries or `/splashui/challenge` pages** |

***

### Quickstart: MCP Server, Python & Clay / n8n Webhook

#### 1. Connect to Claude Desktop, Cursor, Windsurf or OpenAI Agents (MCP)

```json
{
  "mcpServers": {
    "ebay-sold-comps": {
      "url": "https://mcp.apify.com/?tools=Zenonnnnnn/ebay-sold-listings-comps",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_API_TOKEN"
      }
    }
  }
}
```

#### 2. Python (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_API_TOKEN")
run = client.actor("Zenonnnnnn/ebay-sold-listings-comps").call(
    run_input={
        "queries": ["macbook air m3 16gb", "psa 10 charizard 151"],
        "seller": "",            # Optional: audit a specific eBay seller username (even with queries=[])
        "categoryId": "",        # Optional: numeric eBay category ID (_sacat), e.g. "9355"
        "buyingFormat": "all",   # "all" | "auction" | "buy_it_now" | "accepts_offers"
        "minPrice": 200,         # Optional minimum price (_udlo)
        "maxPrice": 2500,        # Optional maximum price (_udhi)
        "marketplace": "ebay.com",
        "condition": "used",
        "daysBack": 30,
        "maxItemsPerQuery": 120,
        "filterNoise": True,
        "includeCompsSummaryInDataset": True,
    }
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["recordType"], item.get("title") or item.get("query"), item.get("soldPrice") or item.get("medianSoldPrice"))
```

#### 3. n8n / Clay.com / Make HTTP Webhook (1-Call Sync JSON)

`POST https://api.apify.com/v2/acts/Zenonnnnnn~ebay-sold-listings-comps/run-sync-get-dataset-items?token=YOUR_APIFY_API_TOKEN`

```json
{
  "queries": ["{{sku_or_product_name}}"],
  "marketplace": "ebay.com",
  "maxItemsPerQuery": 60,
  "filterNoise": true,
  "includeCompsSummaryInDataset": true
}
```

> More ready-to-import Clay tables, n8n workflows, and Python notebooks: **[github.com/Violettttee/apify-b2b-intelligence-examples](https://github.com/Violettttee/apify-b2b-intelligence-examples)**

***

### Core Valuation & Scraping Capabilities

1. **True Sold & Completed Comps (`LH_Sold=1 & LH_Complete=1`)**
   Automatically enforces newest-first completed sales (`_sop=13`) at high card density (`_ipg=240`) with Brotli/Gzip compression—minimizing bandwidth and run latency.
2. **Rewrite-Boundary Truncation (Zero Irrelevant Tail Pollution)**
   Detects eBay's `srp-river-answer--REWRITE_START` / `"Results matching fewer words"` / `"Shop on eBay"` boundaries and stops extraction *before* unrelated fallback items corrupt your comps.
3. **Strikethrough Best-Offer & Format Classification**
   Distinguishes `auction`, `buy_it_now`, and `best_offer_accepted` (identifying strikethrough `originalListedPrice` when an offer was accepted) alongside `bidCount`.
4. **Total Landed Price & UK/EU Buyer Protection Fee Awareness**
   Normalizes `soldPrice`, `shippingPrice`, and `totalLandedPrice` (`soldPrice + shippingPrice`), and flags private-seller **Buyer Protection Fee** inclusion notices on `ebay.co.uk`, `ebay.fr`, and `ebay.it`.
5. **Incremental Early-Stop (`daysBack` / `sinceDate`)**
   Because results are sorted newest-first, pagination stops the instant listings fall prior to your target date—saving runtime and event charges on daily/weekly repricing schedules.
6. **Zero-Extra-Cost Fair Market Value (`COMPS_SUMMARY`)**
   Computes per-query **Median**, **10% Trimmed Mean**, **Mean**, **P25 / P75 / IQR**, **Min / Max**, and **Estimated Sales Per Day** velocity, saved to the `COMPS_SUMMARY` Key-Value Store (and optionally to the Dataset) at **$0.00 extra charge**.

***

### Supported eBay Marketplaces (8 Regions)

| Marketplace | Currency | Country / Region |
| :--- | :--- | :--- |
| `ebay.com` | `USD` | United States |
| `ebay.co.uk` | `GBP` | United Kingdom (includes Buyer Protection Fee detection) |
| `ebay.de` | `EUR` | Germany |
| `ebay.ca` | `CAD` | Canada |
| `ebay.com.au` | `AUD` | Australia |
| `ebay.fr` | `EUR` | France (includes Buyer Protection Fee detection) |
| `ebay.it` | `EUR` | Italy (includes Buyer Protection Fee detection) |
| `ebay.es` | `EUR` | Spain |

***

### Output Examples

#### Dataset Item (`sold_item`)

```json
{
  "recordType": "sold_item",
  "query": "macbook air m3 16gb",
  "marketplace": "ebay.com",
  "itemId": "286194028411",
  "title": "Apple MacBook Air 13\" M3 Chip 16GB RAM 512GB SSD Midnight - Excellent",
  "soldPrice": 899.0,
  "originalListedPrice": 949.0,
  "currency": "USD",
  "shippingPrice": 0.0,
  "totalLandedPrice": 899.0,
  "soldDate": "2026-11-29",
  "listingFormat": "best_offer_accepted",
  "bestOfferAccepted": true,
  "bidCount": null,
  "condition": "Pre-Owned",
  "itemUrl": "https://www.ebay.com/itm/286194028411",
  "imageUrl": "https://i.ebayimg.com/images/g/abcAAOSw.../s-l500.jpg",
  "sellerInfo": {
    "username": "tech_vault_usa",
    "feedbackCount": 1420,
    "positiveFeedbackPct": 99.7,
    "sellerType": "private_or_standard"
  },
  "buyerProtectionFeeNotice": null
}
```

#### Key-Value Store `COMPS_SUMMARY` (Free Statistical Valuation Report)

```json
{
  "generatedAt": "2026-12-03T05:20:00Z",
  "totalCleanItems": 84,
  "summaries": [
    {
      "recordType": "comps_summary",
      "query": "macbook air m3 16gb",
      "marketplace": "ebay.com",
      "currency": "USD",
      "sampleSize": 84,
      "noiseFilteredCount": 9,
      "medianSoldPrice": 885.0,
      "trimmedMeanPrice": 889.42,
      "meanSoldPrice": 892.15,
      "p25Price": 842.5,
      "p75Price": 935.0,
      "iqr": 92.5,
      "minPrice": 740.0,
      "maxPrice": 1099.0,
      "medianTotalLandedPrice": 895.0,
      "bestOfferSharePct": 26.19,
      "auctionSharePct": 19.05,
      "earliestSoldDate": "2026-11-19",
      "latestSoldDate": "2026-12-02",
      "dateSpanDays": 14.0,
      "estimatedSalesPerDay": 6.0
    }
  ]
}
```

***

### Transparent Pay-Per-Event Pricing

- **`sold-item` (`$0.0015` / item = `$1.50 / 1,000`)**: Charged **only** per valid, deduplicated sold item pushed to the Dataset after noise cleaning.
- **`$0.00` Actor Start Fee & Anti-Bot Protection**: Empty queries, network retries, and `/splashui/challenge` pages are automatically detected and **never billed**.
- **`$0.00` `COMPS_SUMMARY` Analytics**: Fair Market Value quartiles, trimmed means, and velocity metrics are always computed free of charge.

# Actor input Schema

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

Keywords to search in eBay Sold & Completed listings (e.g., 'macbook m3 16gb', 'psa 10 charizard'). Can be left empty when 'seller' or 'categoryId' is specified.

## `seller` (type: `string`):

Optional eBay seller username to filter Sold & Completed listings (via \_ssn=<seller>&\_saslop=1). Leave 'queries' empty to audit all recent sold items from a single competitor seller!

## `categoryId` (type: `string`):

Optional numeric eBay Category ID filter (\_sacat, e.g. '9355' for Cell Phones & Smartphones, '183454' for Collectible Card Games).

## `searchUrls` (type: `array`):

Optional full eBay search URLs (any supported regional domain). Sold & Completed flags (LH_Sold=1\&LH_Complete=1) are enforced automatically.

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

Regional eBay marketplace used for keyword queries.

## `maxItemsPerQuery` (type: `integer`):

Maximum number of clean sold listings to return per query or search URL.

## `maxPages` (type: `integer`):

Optional hard cap on the number of search result pages fetched per query or URL.

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

Filter eBay listings by standardized item condition.

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

Filter Sold & Completed items by buying format: all, auction (LH_Auction=1), buy_it_now (LH_BIN=1), or accepts_offers (LH_BO=1).

## `listingType` (type: `string`):

Backward-compatible alias for buyingFormat (All, Auction only, Buy It Now only, or Best Offer enabled).

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

Optional minimum listing price in the target marketplace currency (\_udlo).

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

Optional maximum listing price in the target marketplace currency (\_udhi).

## `daysBack` (type: `integer`):

Stop paginating as soon as sold listings are older than N days from today (UTC).

## `sinceDate` (type: `string`):

Incremental date cutoff (e.g. '2026-11-15'). Pagination halts immediately once listings fall before this date.

## `filterNoise` (type: `boolean`):

Automatically discard parts-only, broken, damaged, and empty-box listings so Fair Market Value stats stay uncorrupted.

## `excludeNoiseKeywords` (type: `array`):

Case-insensitive phrases excluded from titles when 'Exclude Broken / Box-Only Noise' is enabled.

## `includeCompsSummaryInDataset` (type: `boolean`):

In addition to saving Fair Market Value statistics to Key-Value Store 'COMPS_SUMMARY', emit an unbilled summary record per query at the top of the dataset.

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

eBay gates datacenter IPs behind /splashui/challenge. For reliable extraction on Apify Cloud, select Apify Residential Proxy (apifyProxyGroups: \['RESIDENTIAL'], available on Apify Paid / $1 Creator plans) or supply your own residential proxy URL. Blocked/challenged runs always charge $0.00.

## Actor input object example

```json
{
  "queries": [
    "macbook m3"
  ],
  "seller": "",
  "categoryId": "",
  "searchUrls": [],
  "marketplace": "ebay.com",
  "maxItemsPerQuery": 120,
  "condition": "any",
  "buyingFormat": "all",
  "listingType": "all",
  "filterNoise": true,
  "excludeNoiseKeywords": [
    "for parts",
    "parts only",
    "not working",
    "broken",
    "cracked screen",
    "box only",
    "empty box",
    "read description",
    "icloud locked",
    "mdm locked",
    "bios locked",
    "water damage",
    "defekt",
    "nur ovp",
    "pour pièces",
    "per ricambi",
    "solo caja"
  ],
  "includeCompsSummaryInDataset": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

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

Deduplicated eBay sold items with prices, Best-Offer flags, shipping, and dates.

## `compsSummary` (type: `string`):

Per-query Median, P25/P75 quartiles, IQR, trimmed mean, and daily sales velocity.

# 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 = {
    "queries": [
        "macbook m3"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("zenonnnnnn/ebay-sold-listings-comps").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 = {
    "queries": ["macbook m3"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("zenonnnnnn/ebay-sold-listings-comps").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 '{
  "queries": [
    "macbook m3"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call zenonnnnnn/ebay-sold-listings-comps --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zenonnnnnn/ebay-sold-listings-comps"
        }
    }
}
```

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/FSj7AbS2bUJXjtNnD/builds/3wknOKGZbTzuyJcS9/openapi.json
