# eBay Sold Listings Scraper (`blackfalcondata/ebay-sold-listings-scraper`) Actor

Scrape eBay sold and completed listings at scale — final sold price, sold date, condition, and full item specifics (brand, model, MPN, EAN) plus seller identity and feedback rating. Incremental mode surfaces newly sold and changed listings for price research and resale sourcing.

- **URL**: https://apify.com/blackfalcondata/ebay-sold-listings-scraper.md
- **Developed by:** [Black Falcon Data](https://apify.com/blackfalcondata) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 listing (with item details)s

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

### What does eBay Sold Listings Scraper do?

eBay Sold Listings Scraper extracts completed and sold listings from [ebay.com](https://ebay.com) as structured JSON — the final sold price as a number and currency, the sold date, condition, and shipping for every result. Turn on `includeDetails` to also pull the full item-specifics table (brand, model, MPN, EAN) and seller identity with feedback rating, so comps can be matched by part number and weighted by seller reputation. Run it across 14 eBay markets, filter by price or condition, and use incremental mode to pull only what has sold since your last run.

### How to use this actor

- 👉 **Register for a free Apify account** — no credit card required.
- 🎉 Just click **[Sign up free on Apify →](https://console.apify.com/sign-up?fpr=1h3gvi&fp_sid=ctarich)** and complete a quick signup.
- 💰 A free Apify account includes $5 in monthly credits — enough to test this actor.
- ⏳ Scrape during the free trial, with no commitment or upfront payment required.

### Key features

<!-- KEY_FEATURES:START -->
- **🔎 Sold-price truth** — every record carries the final sold price as text and as a parsed number with its currency (`priceText` / `priceValue` / `priceCurrency`), plus the sold date — what the item actually went for, structured.
- **⚡ Fast by default, deep on demand** — runs default to a quick search-results price sweep. Flip `includeDetails` on when you need item specifics and seller data; it trades speed for depth.
- **🏷️ Item specifics** — with `includeDetails` on, records gain brand, model, MPN, EAN and the rest of eBay's item-specifics table. Match comps by part number instead of guessing from titles.
- **👤 Seller signals** — with `includeDetails` on, records carry `sellerName`, `sellerFeedbackCount` and profile URL, so comps can be weighted by seller rating and reputation.
- **🌎 14 eBay markets** — one `country` input switches marketplace. Run them in parallel to compare what the same item sells for by region.
- **♻️ Incremental mode** — daily runs emit only listings newly sold or changed since the last run. `changeType` is NEW / UPDATED / UNCHANGED / REAPPEARED / EXPIRED; repost detection flags relisted items. Saves 80–95% on recurring monitoring.
- **🎯 Batch searches** — multiple search variants in one job — shared dedup, one dataset for compare/diff downstream.
- **🔔 Notifications** — Telegram / Slack / Discord / WhatsApp / webhook alerts per run. Combine with incremental to ping only when prices actually move.
- **📦 Compact mode** — core fields only — comparable rows for pricing dashboards without payload overhead.
- **🧹 Empty-field stripping** — drop null and empty fields before push, for leaner payloads.
- **🔌 MCP connectors** — export results to Notion via Apify's MCP connectors. Opt-in, deterministic field-mapping, no AI.
<!-- KEY_FEATURES:END -->

### What data can you extract from ebay.com?

Each result includes Core listing fields (`listingId`, `title`, `soldDate`, `soldDateText`, `priceText`, `priceValue`, `priceCurrency`, and `serpPriceText`, and more) and detail fields when enrichment is enabled (`detailFetched`). In standard mode, all fields are always present — unavailable data points are returned as `null`, never omitted. In compact mode, only core fields are returned.

Enable detail enrichment in the input to get richer fields such as full descriptions where the source provides them.

### Input

The main inputs are a search keyword, an optional location filter, and a result limit. Additional filters and options are available in the input schema.

Key parameters:

- **`query`** — What to search sold listings for. Use a JSON array for multiple searches, e.g. ["Nintendo Switch OLED","PS5 slim"].
- **`country`** — Which eBay marketplace to search. (default: `"US"`)
- **`condition`** — Filter sold listings by item condition. (default: `"any"`)
- **`minPrice`** — Only return sold listings at or above this price (marketplace currency).
- **`maxPrice`** — Only return sold listings at or below this price (marketplace currency).
- **`sort`** — How to order results within each search. (default: `"best_match"`)
- **`listingType`** — Only return sold listings of this buying format. (default: `"all"`)
- **`freeShipping`** — Only return sold listings that shipped free. (default: `false`)
- **`returnsAccepted`** — Only return sold listings from sellers who accept returns. (default: `false`)
- **`seller`** — A seller's username. Combine with a search term to narrow to that seller's matching sold listings, or leave the search term empty to pull the seller's entire sold history.
- **`soldWithinDays`** — Only keep listings sold within this many days. Leave empty for all sold results eBay returns.
- **`startUrls`** — Paste eBay sold-search URLs (…&LH_Sold=1&LH_Complete=1) or item URLs directly instead of a search term.
- ...and 23 more parameters

### Input examples

**Basic search** — Keyword-driven search with a result cap.

→ Full payload per result — all standard fields populated where the source provides them.

```json
{
  "query": "Nintendo Switch OLED",
  "maxResults": 50
}
````

**Incremental tracking** — Only emit listings that changed since the previous run with this `stateKey`.

→ First run builds the baseline state. Subsequent runs emit only records that are new or whose tracked content changed. Set `emitUnchanged: true` to include unchanged records as well.

```json
{
  "query": "Nintendo Switch OLED",
  "maxResults": 200,
  "incrementalMode": true,
  "stateKey": "nintendo-switch-oled-tracker"
}
```

**Compact output for AI agents** — Return only core fields for AI-agent and MCP workflows.

→ Small payload with the most important fields — ideal for piping into LLMs without token overhead.

```json
{
  "query": "Nintendo Switch OLED",
  "maxResults": 50,
  "compact": true
}
```

### Output

Each run produces a dataset of structured listing records. Results can be downloaded as JSON, CSV, or Excel from the Dataset tab in Apify Console.

### Example listing record

```json
{
  "listingId": "9c84641c0b02af42cb8b18bd717973f8f9d64ec16c7b6404449e80b917189c32",
  "title": "Nintendo Switch – OLED Model w/ Neon Red & Neon Blue Joy-Con and 1 TB microSD",
  "soldDate": "2026-07-15",
  "soldDateText": "Sold Jul 15, 2026",
  "priceText": "$224.95",
  "priceValue": 224.95,
  "priceCurrency": "USD",
  "serpPriceText": "$224.95",
  "isAuction": false,
  "condition": "Pre-Owned",
  "imageUrl": "https://i.ebayimg.com/images/g/uusAAeSwQKZqOzox/s-l1600.jpg",
  "galleryUrls": [
    "https://i.ebayimg.com/images/g/uusAAeSwQKZqOzox/s-l1600.jpg"
  ],
  "canonicalUrl": "https://www.ebay.com/itm/117251299029",
  "sourceUrl": "https://www.ebay.com/itm/117251299029",
  "sourceCountry": "US",
  "sourceDomain": "www.ebay.com",
  "searchQuery": "Nintendo Switch OLED",
  "searchUrl": "https://www.ebay.com/sch/i.html?_nkw=Nintendo+Switch+OLED&LH_Sold=1&LH_Complete=1&_ipg=60&_sop=12",
  "fetchedAt": "2026-07-15T15:08:23.366Z",
  "detailFetched": false,
  "contentQuality": "serp_only"
}
```

### Incremental fields

When incremental mode is on, each record also carries:

- `changeType` — one of `NEW`, `UPDATED`, `UNCHANGED`, `REAPPEARED`, `EXPIRED`. Default output covers `NEW` / `UPDATED` / `REAPPEARED`; set `emitUnchanged: true` or `emitExpired: true` to opt into the others.
- `isRepost`, `repostOfId`, `repostDetectedAt` — populated when a new listing matches the tracked content of a previously expired one. Set `skipReposts: true` to drop detected reposts from the output.

### How to scrape ebay.com

1. Go to [eBay Sold Listings Scraper](https://apify.com/blackfalcondata/ebay-sold-listings-scraper?fpr=1h3gvi) in Apify Console.
2. Enter a search keyword and optional location filter.
3. Set `maxResults` to control how many results you need.
4. Enable `includeDetails` if you need full descriptions.
5. Click **Start** and wait for the run to finish.
6. Export the dataset as JSON, CSV, or Excel.

### Use cases

- Extract listing data from ebay.com for market research and competitive analysis.
- Track pricing trends across regions and categories over time.
- Monitor new and changed listings on scheduled runs without processing the full dataset every time.
- Feed structured data into AI agents, MCP tools, and automated pipelines using compact mode.
- Export clean, structured data to dashboards, spreadsheets, or data warehouses.

### How much does it cost to scrape ebay.com?

eBay Sold Listings Scraper uses [pay-per-event](https://docs.apify.com/platform/actors/paid-actors/pay-per-event) pricing. You pay a small fee when the run starts and then for each result that is actually produced.

- **Run start:** $0.02 per run
- **Per listing (primary event):** $0.0024

You are billed only for the events your run actually triggers. Prices below are the Free plan tier.

| Event | Price (Free tier) | Charged when |
|---|---|---|
| Actor Start | $0.02 (one-time) | Charged when the Actor starts running. Number of events charged depends on Actor memory (one event per GB, minimum one event). |
| Listing (fast) | $0.0024 | One sold listing from search results — title, sold price, condition, shipping, seller. No item-page fetch. |
| Listing (with item details) (primary) | $0.004 | One sold listing enriched from its full item page — brand, model, MPN, EAN, item specifics, seller identity, and true listing-currency price. |

Example costs (primary event only — other events above add cost when they fire):

- 10 results: **$0.044**
- 25 results: **$0.08**
- 100 results: **$0.26**
- 200 results: **$0.5**
- 500 results: **$1.22**

#### Example: recurring monitoring savings

These examples compare full re-scrapes with incremental runs at different churn rates. Churn is the share of listings that are new or whose tracked content changed since the previous run. Actual churn depends on your query breadth, source activity, and polling frequency — the scenarios below are examples, not predictions.

Example setup: 100 results per run, daily polling (30 runs/month). Event-pricing examples scale linearly with result count.

Numbers below are for the primary **Listing (with item details)** event. Other events (**Listing (fast)**) are billed separately when they fire.

| Churn rate | Full re-scrape run cost | Incremental run cost | Savings vs full re-scrape | Monthly cost after baseline |
|---|---:|---:|---:|---:|
| 5% — stable niche query | $0.42 | $0.04 | $0.38 (90%) | $1.20 |
| 15% — moderate broad query | $0.42 | $0.08 | $0.34 (81%) | $2.40 |
| 30% — high-volume aggregator | $0.42 | $0.14 | $0.28 (67%) | $4.20 |

Full re-scrape monthly cost at daily polling: $12.60. First month with incremental costs $1.58 / $2.74 / $4.48 for the 5% / 15% / 30% scenarios because the first run builds baseline state at full cost before incremental savings apply.

Platform usage is included in the per-result fee shown above.

### FAQ

#### How many results can I get from ebay.com?

The number of results depends on the search query and available listings on ebay.com. Use the `maxResults` parameter to control how many results are returned per run.

#### Does eBay Sold Listings Scraper support recurring monitoring?

Yes. Enable incremental mode to only receive new or changed listings on subsequent runs. This is ideal for scheduled monitoring where you want to track changes over time without re-processing the full dataset.

#### Can I integrate eBay Sold Listings Scraper with other apps?

Yes. eBay Sold Listings Scraper works with Apify's [integrations](https://apify.com/integrations?fpr=1h3gvi) to connect with tools like Zapier, Make, Google Sheets, Slack, and more. You can also use webhooks to trigger actions when a run completes.

#### Can I use eBay Sold Listings Scraper with the Apify API?

Yes. You can start runs, manage inputs, and retrieve results programmatically through the [Apify API](https://docs.apify.com/api/v2). Client libraries are available for JavaScript, Python, and other languages.

#### Can I use eBay Sold Listings Scraper through an MCP Server?

Yes. Apify provides an [MCP Server](https://apify.com/apify/actors-mcp-server?fpr=1h3gvi) that lets AI assistants and agents call this actor directly. Use compact mode and `excludeEmptyFields` to keep payloads manageable for LLM context windows.

#### Is it legal to scrape ebay.com?

This actor extracts publicly available data from ebay.com. Web scraping of public information is generally considered legal, but you should always review the target site's terms of service and ensure your use case complies with applicable laws and regulations, including GDPR where relevant.

#### Your feedback

If you have questions, need a feature, or found a bug, please [open an issue](https://apify.com/blackfalcondata/ebay-sold-listings-scraper/issues?fpr=1h3gvi) on the actor's page in Apify Console. Your feedback helps us improve.

### You might also like

- [🚗 mobile.de \[$0.75/1K💰\] Fast Scraper · Finance · Dealer GPS](https://apify.com/blackfalcondata/mobile-de-scraper?fpr=1h3gvi) — Scrape mobile.de — Germany's largest car marketplace (1.4M+ listings) at $0.75 / 1,000 results. Get.
- [AutoScout24 Scraper — European Car Listings with Dealer Data](https://apify.com/blackfalcondata/autoscout24-scraper?fpr=1h3gvi) — Scrape autoscout24.com — Europe's largest used-car marketplace with 770K+ listings across 8.
- [Autotrader AU \[$0.9💰\] Car & Caravan Scraper 🇦🇺](https://apify.com/blackfalcondata/autotrader-au-scraper?fpr=1h3gvi) — Scrape autotrader.com.au car & caravan listings — advertised + previous price with a computed.
- [Autotrader Canada Scraper — Car & Truck Listings + Dealers](https://apify.com/blackfalcondata/autotrader-ca-scraper?fpr=1h3gvi) — Scrape autotrader.ca — Canada's largest car marketplace. Get structured make/model/year/price.
- [Autotrader UK \[$0.75💰/1K\] - Car Scraper, Full Detail](https://apify.com/blackfalcondata/autotrader-uk-scraper?fpr=1h3gvi) — Scrape UK car listings from Auto Trader by make, model, price, year, mileage, fuel, and body type..
- [Bilbasen Scraper - Denmark’s Car Marketplace](https://apify.com/blackfalcondata/bilbasen-scraper?fpr=1h3gvi) — Scrape bilbasen.dk, Denmark’s largest car marketplace, with full vehicle specs, seller contacts,.
- [Bilka Scraper - Danish Grocery Products & Prices](https://apify.com/blackfalcondata/bilka-scraper?fpr=1h3gvi) — Scrape Bilka (Salling Group), Denmark's largest hypermarket chain. Get the full product catalog.
- [Carrefour MAF Grocery Scraper](https://apify.com/blackfalcondata/carrefour-maf-scraper?fpr=1h3gvi) — Scrape Carrefour MAF grocery products across all seven Majid Al Futtaim markets — UAE, Saudi.

### Getting started with Apify

New to Apify? [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=1h3gvi\&fp_sid=ctarich) — no credit card required.

1. Sign up — $5 platform credit included
2. Open this actor and configure your input
3. Click **Start** — export results as JSON, CSV, or Excel

Need more later? [See Apify pricing](https://apify.com/pricing?fpr=1h3gvi).

# Actor input Schema

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

What to search sold listings for. Use a JSON array for multiple searches, e.g. \["Nintendo Switch OLED","PS5 slim"].

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

Which eBay marketplace to search.

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

Filter sold listings by item condition.

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

Only return sold listings at or above this price (marketplace currency).

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

Only return sold listings at or below this price (marketplace currency).

## `sort` (type: `string`):

How to order results within each search.

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

Only return sold listings of this buying format.

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

Only return sold listings that shipped free.

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

Only return sold listings from sellers who accept returns.

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

A seller's username. Combine with a search term to narrow to that seller's matching sold listings, or leave the search term empty to pull the seller's entire sold history.

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

Only keep listings sold within this many days. Leave empty for all sold results eBay returns.

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

Paste eBay sold-search URLs (…\&LH\_Sold=1\&LH\_Complete=1) or item URLs directly instead of a search term.

## `maxResults` (type: `integer`):

Maximum total sold listings to return (0 = unlimited).

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

Maximum search result pages to scrape per search source.

## `includeDetails` (type: `boolean`):

Off (default) — fast mode: a quick search-results pass returning title, sold price, condition, and shipping. Best for price scans and high-volume runs. On — deep mode: adds brand, model, MPN, EAN, the full item-specifics table, seller identity, condition text, and the true listing-currency price. Considerably slower.

## `compact` (type: `boolean`):

Output only core fields (for AI-agent/MCP workflows).

## `incrementalMode` (type: `boolean`):

Compare against previous run state to surface only newly sold listings. stateKey is optional — it defaults to a value derived from your search inputs (query, marketplace, condition, price range) so different filter sets never share state.

## `stateKey` (type: `string`):

Optional. Stable identifier for the tracked search universe (e.g. "us-switch-oled"). Leave empty to auto-generate from search inputs.

## `emitUnchanged` (type: `boolean`):

When incremental, also emit records that haven't changed.

## `emitExpired` (type: `boolean`):

When incremental, also emit records no longer found.

## `skipReposts` (type: `boolean`):

When incremental, skip listings whose content matches an expired listing from a prior run (cross-run duplicate detection).

## `telegramToken` (type: `string`):

Telegram bot token (from @BotFather). Required for Telegram notifications.

## `telegramChatId` (type: `string`):

Telegram chat or channel ID (e.g. "-100123456789"). Required when telegramToken is set.

## `discordWebhookUrl` (type: `string`):

Discord incoming webhook URL. Server Settings → Integrations → Webhooks → New Webhook.

## `slackWebhookUrl` (type: `string`):

Slack incoming webhook URL. api.slack.com/messaging/webhooks.

## `notificationLimit` (type: `integer`):

Maximum number of listings included in each notification message (1–20).

## `notifyOnlyChanges` (type: `boolean`):

When Incremental Mode is on, only send notifications for NEW and UPDATED listings. Has no effect outside incremental mode.

## `whatsappAccessToken` (type: `string`):

WhatsApp Cloud API permanent access token (System User token from Meta Business). Recipient must have messaged the business number within the last 24h (service-conversation window — free since Nov 2024).

## `whatsappPhoneNumberId` (type: `string`):

Your WhatsApp Business phone-number ID (numeric, from Meta dashboard). Required when whatsappAccessToken is set.

## `whatsappTo` (type: `string`):

Recipient phone in E.164 format without + (e.g. "436641234567"). Recipient must have messaged your business number within last 24h.

## `webhookUrl` (type: `string`):

Receives a JSON POST with {metadata, items} after each run. Universal escape hatch for n8n / Make / Zapier / custom backends.

## `webhookHeaders` (type: `object`):

Optional JSON object of custom headers (e.g. {"Authorization":"Bearer ..."}).

## `excludeEmptyFields` (type: `boolean`):

Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards.

## `appConnector` (type: `string`):

Optional. Pick a connected app under Settings → API & Integrations to receive your results. Best-effort across MCP connectors as Apify expands its catalog.

## `mcpIssueTeam` (type: `string`):

Only when the connected app is an issue tracker: the team (name or ID) the summary issue is created under, if that app requires one.

## Actor input object example

```json
{
  "query": "Nintendo Switch OLED",
  "country": "US",
  "condition": "any",
  "sort": "best_match",
  "listingType": "all",
  "freeShipping": false,
  "returnsAccepted": false,
  "maxResults": 5,
  "maxPages": 5,
  "includeDetails": false,
  "compact": false,
  "incrementalMode": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "skipReposts": false,
  "notificationLimit": 5,
  "notifyOnlyChanges": false,
  "excludeEmptyFields": false
}
```

# Actor output Schema

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

No description

# 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": "Nintendo Switch OLED",
    "maxResults": 5,
    "excludeEmptyFields": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("blackfalcondata/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 = {
    "query": "Nintendo Switch OLED",
    "maxResults": 5,
    "excludeEmptyFields": False,
}

# Run the Actor and wait for it to finish
run = client.actor("blackfalcondata/ebay-sold-listings-scraper").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 '{
  "query": "Nintendo Switch OLED",
  "maxResults": 5,
  "excludeEmptyFields": false
}' |
apify call blackfalcondata/ebay-sold-listings-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "eBay Sold Listings Scraper",
        "description": "Scrape eBay sold and completed listings at scale — final sold price, sold date, condition, and full item specifics (brand, model, MPN, EAN) plus seller identity and feedback rating. Incremental mode surfaces newly sold and changed listings for price research and resale sourcing.",
        "version": "0.1",
        "x-build-id": "zZdLjcWsKGh0jOwWt"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/blackfalcondata~ebay-sold-listings-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-blackfalcondata-ebay-sold-listings-scraper",
                "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/blackfalcondata~ebay-sold-listings-scraper/runs": {
            "post": {
                "operationId": "runs-sync-blackfalcondata-ebay-sold-listings-scraper",
                "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/blackfalcondata~ebay-sold-listings-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-blackfalcondata-ebay-sold-listings-scraper",
                "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": {
                    "query": {
                        "title": "🔍 Search Term(s)",
                        "type": "string",
                        "description": "What to search sold listings for. Use a JSON array for multiple searches, e.g. [\"Nintendo Switch OLED\",\"PS5 slim\"]."
                    },
                    "country": {
                        "title": "🌍 eBay Marketplace",
                        "enum": [
                            "US",
                            "GB",
                            "DE",
                            "FR",
                            "IT",
                            "ES",
                            "AU",
                            "CA",
                            "AT",
                            "IE",
                            "NL",
                            "BE",
                            "CH",
                            "PL"
                        ],
                        "type": "string",
                        "description": "Which eBay marketplace to search.",
                        "default": "US"
                    },
                    "condition": {
                        "title": "🏷️ Condition",
                        "enum": [
                            "any",
                            "new",
                            "open_box",
                            "refurbished",
                            "used"
                        ],
                        "type": "string",
                        "description": "Filter sold listings by item condition.",
                        "default": "any"
                    },
                    "minPrice": {
                        "title": "💵 Min Price",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Only return sold listings at or above this price (marketplace currency)."
                    },
                    "maxPrice": {
                        "title": "💰 Max Price",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Only return sold listings at or below this price (marketplace currency)."
                    },
                    "sort": {
                        "title": "🔀 Sort Order",
                        "enum": [
                            "best_match",
                            "recent",
                            "price_asc",
                            "price_desc"
                        ],
                        "type": "string",
                        "description": "How to order results within each search.",
                        "default": "best_match"
                    },
                    "listingType": {
                        "title": "🔨 Buying Format",
                        "enum": [
                            "all",
                            "auction",
                            "fixed_price"
                        ],
                        "type": "string",
                        "description": "Only return sold listings of this buying format.",
                        "default": "all"
                    },
                    "freeShipping": {
                        "title": "📦 Free Shipping Only",
                        "type": "boolean",
                        "description": "Only return sold listings that shipped free.",
                        "default": false
                    },
                    "returnsAccepted": {
                        "title": "↩️ Returns Accepted Only",
                        "type": "boolean",
                        "description": "Only return sold listings from sellers who accept returns.",
                        "default": false
                    },
                    "seller": {
                        "title": "🏪 Seller",
                        "type": "string",
                        "description": "A seller's username. Combine with a search term to narrow to that seller's matching sold listings, or leave the search term empty to pull the seller's entire sold history."
                    },
                    "soldWithinDays": {
                        "title": "📅 Sold Within (days)",
                        "minimum": 1,
                        "maximum": 365,
                        "type": "integer",
                        "description": "Only keep listings sold within this many days. Leave empty for all sold results eBay returns."
                    },
                    "startUrls": {
                        "title": "🔗 Start URLs",
                        "type": "array",
                        "description": "Paste eBay sold-search URLs (…&LH_Sold=1&LH_Complete=1) or item URLs directly instead of a search term.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxResults": {
                        "title": "💯 Max Results",
                        "minimum": 0,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Maximum total sold listings to return (0 = unlimited).",
                        "default": 25
                    },
                    "maxPages": {
                        "title": "📄 Max Pages",
                        "minimum": 1,
                        "maximum": 50,
                        "type": "integer",
                        "description": "Maximum search result pages to scrape per search source.",
                        "default": 5
                    },
                    "includeDetails": {
                        "title": "📋 Include Item Specifics",
                        "type": "boolean",
                        "description": "Off (default) — fast mode: a quick search-results pass returning title, sold price, condition, and shipping. Best for price scans and high-volume runs. On — deep mode: adds brand, model, MPN, EAN, the full item-specifics table, seller identity, condition text, and the true listing-currency price. Considerably slower.",
                        "default": false
                    },
                    "compact": {
                        "title": "📦 Compact Output",
                        "type": "boolean",
                        "description": "Output only core fields (for AI-agent/MCP workflows).",
                        "default": false
                    },
                    "incrementalMode": {
                        "title": "♻️ Incremental Mode",
                        "type": "boolean",
                        "description": "Compare against previous run state to surface only newly sold listings. stateKey is optional — it defaults to a value derived from your search inputs (query, marketplace, condition, price range) so different filter sets never share state.",
                        "default": false
                    },
                    "stateKey": {
                        "title": "🔑 State Key",
                        "type": "string",
                        "description": "Optional. Stable identifier for the tracked search universe (e.g. \"us-switch-oled\"). Leave empty to auto-generate from search inputs."
                    },
                    "emitUnchanged": {
                        "title": "♻️ Emit Unchanged Records",
                        "type": "boolean",
                        "description": "When incremental, also emit records that haven't changed.",
                        "default": false
                    },
                    "emitExpired": {
                        "title": "⚰️ Emit Expired Records",
                        "type": "boolean",
                        "description": "When incremental, also emit records no longer found.",
                        "default": false
                    },
                    "skipReposts": {
                        "title": "🚫 Skip Reposts",
                        "type": "boolean",
                        "description": "When incremental, skip listings whose content matches an expired listing from a prior run (cross-run duplicate detection).",
                        "default": false
                    },
                    "telegramToken": {
                        "title": "🔑 Telegram Bot Token",
                        "type": "string",
                        "description": "Telegram bot token (from @BotFather). Required for Telegram notifications."
                    },
                    "telegramChatId": {
                        "title": "💬 Telegram Chat ID",
                        "type": "string",
                        "description": "Telegram chat or channel ID (e.g. \"-100123456789\"). Required when telegramToken is set."
                    },
                    "discordWebhookUrl": {
                        "title": "🎮 Discord Webhook URL",
                        "type": "string",
                        "description": "Discord incoming webhook URL. Server Settings → Integrations → Webhooks → New Webhook."
                    },
                    "slackWebhookUrl": {
                        "title": "💼 Slack Webhook URL",
                        "type": "string",
                        "description": "Slack incoming webhook URL. api.slack.com/messaging/webhooks."
                    },
                    "notificationLimit": {
                        "title": "📊 Max Listings Per Notification",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "Maximum number of listings included in each notification message (1–20).",
                        "default": 5
                    },
                    "notifyOnlyChanges": {
                        "title": "🔄 Notify Only New/Updated",
                        "type": "boolean",
                        "description": "When Incremental Mode is on, only send notifications for NEW and UPDATED listings. Has no effect outside incremental mode.",
                        "default": false
                    },
                    "whatsappAccessToken": {
                        "title": "📱 WhatsApp Access Token",
                        "type": "string",
                        "description": "WhatsApp Cloud API permanent access token (System User token from Meta Business). Recipient must have messaged the business number within the last 24h (service-conversation window — free since Nov 2024)."
                    },
                    "whatsappPhoneNumberId": {
                        "title": "📞 WhatsApp Phone Number ID",
                        "type": "string",
                        "description": "Your WhatsApp Business phone-number ID (numeric, from Meta dashboard). Required when whatsappAccessToken is set."
                    },
                    "whatsappTo": {
                        "title": "📲 WhatsApp Recipient",
                        "type": "string",
                        "description": "Recipient phone in E.164 format without + (e.g. \"436641234567\"). Recipient must have messaged your business number within last 24h."
                    },
                    "webhookUrl": {
                        "title": "🪝 Generic Webhook URL",
                        "type": "string",
                        "description": "Receives a JSON POST with {metadata, items} after each run. Universal escape hatch for n8n / Make / Zapier / custom backends."
                    },
                    "webhookHeaders": {
                        "title": "📋 Webhook Headers",
                        "type": "object",
                        "description": "Optional JSON object of custom headers (e.g. {\"Authorization\":\"Bearer ...\"})."
                    },
                    "excludeEmptyFields": {
                        "title": "Exclude empty fields from output",
                        "type": "boolean",
                        "description": "Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards.",
                        "default": false
                    },
                    "appConnector": {
                        "title": "Send results to a connected app",
                        "type": "string",
                        "description": "Optional. Pick a connected app under Settings → API & Integrations to receive your results. Best-effort across MCP connectors as Apify expands its catalog."
                    },
                    "mcpIssueTeam": {
                        "title": "Issue tracker team",
                        "type": "string",
                        "description": "Only when the connected app is an issue tracker: the team (name or ID) the summary issue is created under, if that app requires one."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
