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

Pay Per Result eBay sold & completed listings scraper real sold prices, seller feedback, condition, shipping. And the price you see is your entire bill.

- **URL**: https://apify.com/datasteady/ebay-sold-listings.md
- **Developed by:** [Sait](https://apify.com/datasteady) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.49 / 1,000 results

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

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/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.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/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## eBay Sold Listings Scraper

**Pay Per Result eBay sold & completed listings scraper — real sold prices, straight from eBay. And the price you see is your entire bill.** Search any keyword, filter by category, condition, price range, and date, and get every sold comp in one dataset. No API key, no login. **Platform usage included, retries and IP rotation on us, empty runs cost nothing** — and the Actor is monitored around the clock, so breakage never reaches you silently.

### What it's for

Sold listings are the ground truth for pricing. This scraper gives resellers, flippers, and market researchers the actual sold prices — not asking prices:

- 💰 **Real sold comps** — price, shipping, total, and sold date for every completed listing
- 📊 **Price research & repricing** — know what an item *actually* sells for before you buy or list
- 🔎 **Seller intelligence** — seller username, feedback score, positive %
- 📦 **Full detail** — condition, buy-it-now vs auction, bid count, best-offer-accepted, thumbnails

### Why this scraper?

- 💸 **All-inclusive pricing** — no platform usage charges, no subscription. The per-result price is the whole bill.
- ⚡ **Fast** — direct HTML, results in seconds even for large searches.
- 🔁 **Built-in IP rotation** — every retry gets a fresh US residential IP. Blocks are our cost, not yours.
- 🩺 **Monitored around the clock** — scheduled health checks catch eBay-side changes before your pipeline does.

### Output

One dataset item per sold listing:

```json
{
  "title": "Nintendo Switch Lite 32GB Handheld System - Gray",
  "soldPrice": "114.99",
  "soldCurrency": "USD",
  "shippingPrice": null,
  "totalPrice": "114.99",
  "shippingType": "free",
  "endedAt": "2026-07-23T00:00:00.000Z",
  "itemId": "158110766373",
  "url": "https://www.ebay.com/itm/158110766373",
  "keyword": "nintendo switch",
  "condition": "Pre-Owned",
  "conditionId": 3000,
  "sellerUsername": "itsabeau_81",
  "sellerFeedbackScore": 1700,
  "sellerPositivePercent": 99.6,
  "listingType": "buy_it_now",
  "buyingFormat": "buyItNow",
  "isBestOfferAccepted": false,
  "bidCount": null,
  "thumbnailUrl": "https://i.ebayimg.com/images/g/.../s-l500.jpg",
  "scrapedAt": "2026-07-23T09:27:41.831Z"
}
````

Download as JSON, CSV, Excel, XML, or JSONL — or pull it via API. **Prices are strings** (e.g. `"114.99"`), matching the format your existing pipeline expects.

### How to use it

1. Click **Try for free**.
2. Type one or more terms into **Keywords** (or a single term into **Keyword**).
3. Optionally set **Days to Scrape**, **Count**, **Category**, **Condition**, **Min/Max Price**, **eBay Site**.
4. Run — sold comps land in the dataset in seconds.

#### Track sold prices on a schedule

Put the Actor on an Apify **schedule** with your keywords and a short **Days to Scrape** (e.g. 1–3): each run appends the latest sold comps — a live price history for repricing tools, dashboards, or arbitrage alerts. You pay per result, so a small watchlist costs almost nothing.

### Input parameters

| Field | Type | Description |
|---|---|---|
| `keywords` | array | Search terms; each runs a separate sold search. |
| `keyword` / `search` | string | Single-term aliases (drop-in compatibility). |
| `ebaySite` | string | `ebay.com` · `.co.uk` · `.de` · `.fr` · `.it` · `.es` · `.ca` · `.com.au` |
| `daysToScrape` | integer | Only listings ended within the last N days. |
| `count` | integer | Max listings to return. |
| `categoryId` / `subcategoryId` | string | eBay category filter (`0` = all). |
| `sortOrder` | string | `endedRecently` · `timeNewlyListed` · `pricePlusPostageLowest/Highest` · `distanceNearest` |
| `minPrice` / `maxPrice` | number | Sold price range filter. |
| `itemLocation` | string | `default` · `domestic` · `worldwide` |
| `itemCondition` | string | `any` · `new` · `used` |
| `includeCompletedListings` | boolean | Include completed (not just sold); needed for Best-Offer detection. |

#### Supported eBay sites

`ebay.com` (US) · `ebay.co.uk` · `ebay.de` · `ebay.fr` · `ebay.it` · `ebay.es` · `ebay.ca` · `ebay.com.au`. Prices and the currency field follow the chosen site.

### Completed listings & Best Offer Accepted

eBay's sold-search page shows a **sold price** for every completed listing, but for **Best Offer** listings the price displayed is the original asking price — the accepted-offer amount isn't in the public HTML. Turning on **`includeCompletedListings`** (default: on) tells the scraper to read the full completed-listings view, where each Best-Offer item is flagged. In the output:

- `isBestOfferAccepted: true` marks listings sold via an accepted offer.
- `soldPrice` is the listed price; treat Best-Offer sales as "sold at or below this price".

Leave the flag on unless you specifically want only fixed-price and auction sales.

### Finding category IDs

Leave `categoryId` as `0` to search all categories (the usual choice). To narrow a search, open the category on eBay and copy the number from its URL — e.g. `.../b/Video-Games/1249/...` → `categoryId: "1249"`. `subcategoryId` works the same way for a sub-level within that category.

### Migrating from another eBay sold scraper?

Input keys and output fields mirror the most-used eBay sold listings actor exactly — same `keywords`, same item shape, prices as strings. **Change the actor ID, keep everything else.** Your downstream parsing keeps working, minus the extra platform-usage bill.

### FAQ

**Is scraping eBay legal?** The Actor reads the same publicly available sold-listing data eBay shows any visitor, without login. Use it in line with eBay's terms and your local regulations.

**Why are prices strings?** To match the incumbent's output format exactly, so a drop-in switch needs zero code changes.

# Actor input Schema

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

Search terms. Each runs a separate eBay sold search.

## `keyword` (type: `string`):

Single search term (alias for keywords). Accepted for drop-in compatibility.

## `search` (type: `string`):

Single search term (alias for keywords). Accepted for drop-in compatibility.

## `ebaySite` (type: `string`):

eBay country site to scrape.

## `daysToScrape` (type: `integer`):

Return listings that ended within the last N days.

## `count` (type: `integer`):

Maximum number of listings to return.

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

eBay top-level category ID. '0' = all categories.

## `subcategoryId` (type: `string`):

eBay subcategory ID (leave blank for all).

## `sortOrder` (type: `string`):

How to sort results.

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

Minimum sold price filter (in the site's currency).

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

Maximum sold price filter (in the site's currency).

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

Filter by item location.

## `itemCondition` (type: `string`):

Filter by item condition.

## `includeCompletedListings` (type: `boolean`):

Include completed (not just sold) listings. Required for Best Offer Accepted detection.

## Actor input object example

```json
{
  "ebaySite": "ebay.com",
  "daysToScrape": 30,
  "count": 100,
  "categoryId": "0",
  "subcategoryId": "",
  "sortOrder": "endedRecently",
  "itemLocation": "default",
  "itemCondition": "any",
  "includeCompletedListings": true
}
```

# Actor output Schema

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

Sold listings with prices, condition, seller feedback.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("datasteady/ebay-sold-listings").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("datasteady/ebay-sold-listings").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 '{}' |
apify call datasteady/ebay-sold-listings --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "eBay Sold Listings Scraper",
        "description": "Pay Per Result eBay sold & completed listings scraper real sold prices, seller feedback, condition, shipping. And the price you see is your entire bill.",
        "version": "0.1",
        "x-build-id": "EZdOtAH7ZAlnkRfaJ"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/datasteady~ebay-sold-listings/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-datasteady-ebay-sold-listings",
                "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/datasteady~ebay-sold-listings/runs": {
            "post": {
                "operationId": "runs-sync-datasteady-ebay-sold-listings",
                "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/datasteady~ebay-sold-listings/run-sync": {
            "post": {
                "operationId": "run-sync-datasteady-ebay-sold-listings",
                "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": {
                    "keywords": {
                        "title": "Keywords",
                        "type": "array",
                        "description": "Search terms. Each runs a separate eBay sold search.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "keyword": {
                        "title": "Keyword",
                        "type": "string",
                        "description": "Single search term (alias for keywords). Accepted for drop-in compatibility."
                    },
                    "search": {
                        "title": "Search",
                        "type": "string",
                        "description": "Single search term (alias for keywords). Accepted for drop-in compatibility."
                    },
                    "ebaySite": {
                        "title": "eBay Site",
                        "enum": [
                            "ebay.com",
                            "ebay.co.uk",
                            "ebay.de",
                            "ebay.fr",
                            "ebay.it",
                            "ebay.es",
                            "ebay.ca",
                            "ebay.com.au"
                        ],
                        "type": "string",
                        "description": "eBay country site to scrape.",
                        "default": "ebay.com"
                    },
                    "daysToScrape": {
                        "title": "Days to Scrape",
                        "type": "integer",
                        "description": "Return listings that ended within the last N days.",
                        "default": 30
                    },
                    "count": {
                        "title": "Count",
                        "type": "integer",
                        "description": "Maximum number of listings to return.",
                        "default": 100
                    },
                    "categoryId": {
                        "title": "Category ID",
                        "type": "string",
                        "description": "eBay top-level category ID. '0' = all categories.",
                        "default": "0"
                    },
                    "subcategoryId": {
                        "title": "Subcategory ID",
                        "type": "string",
                        "description": "eBay subcategory ID (leave blank for all).",
                        "default": ""
                    },
                    "sortOrder": {
                        "title": "Sort Order",
                        "enum": [
                            "endedRecently",
                            "timeNewlyListed",
                            "pricePlusPostageLowest",
                            "pricePlusPostageHighest",
                            "distanceNearest"
                        ],
                        "type": "string",
                        "description": "How to sort results.",
                        "default": "endedRecently"
                    },
                    "minPrice": {
                        "title": "Min Price",
                        "type": "number",
                        "description": "Minimum sold price filter (in the site's currency)."
                    },
                    "maxPrice": {
                        "title": "Max Price",
                        "type": "number",
                        "description": "Maximum sold price filter (in the site's currency)."
                    },
                    "itemLocation": {
                        "title": "Item Location",
                        "enum": [
                            "default",
                            "domestic",
                            "worldwide"
                        ],
                        "type": "string",
                        "description": "Filter by item location.",
                        "default": "default"
                    },
                    "itemCondition": {
                        "title": "Item Condition",
                        "enum": [
                            "any",
                            "new",
                            "used"
                        ],
                        "type": "string",
                        "description": "Filter by item condition.",
                        "default": "any"
                    },
                    "includeCompletedListings": {
                        "title": "Include Completed Listings",
                        "type": "boolean",
                        "description": "Include completed (not just sold) listings. Required for Best Offer Accepted detection.",
                        "default": true
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
