# eBay Sold Listings Search: Buyer Total & Price vs Median (`h1018y/anvil-ebay-products`) Actor

Searches eBay and returns each listing with price, shipping and the real buyer total, plus how far it is below the median of the search. Useful for ebay sold listings research and resale deal finding, with seller score and condition.

- **URL**: https://apify.com/h1018y/anvil-ebay-products.md
- **Developed by:** [ANVIL Tools](https://apify.com/h1018y) (community)
- **Categories:** E-commerce, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.33 / 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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

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

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

## How to integrate an Actor?

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

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

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

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

# README

## eBay Sold Listings Search: Buyer Total & Price vs Median

**eBay Sold Listings Search** - Search eBay and see what each item really costs with shipping, and how far it sits below the median.

### What does eBay Sold Listings Search do?

Every row has buyerTotal (price plus shipping) and belowMedianPct, how much cheaper that listing is than the median total of the same search, so the bargains sort themselves to the top.

- Shipping-inclusive buyerTotal as a number
- belowMedianPct deal score per search
- Brand, condition, bids, seller feedback
- 8 eBay marketplaces
- Optional sold-items search

### Who uses eBay Sold Listings Search, and for what

- Resellers - spot listings far below the median price
- Buyers - compare the true cost with shipping
- Researchers - sample prices for a product
- Dropshippers - check eBay prices against other shops

### Why this eBay Sold Listings Search?

Low cases fail when eBay shows a human check or the search has too few listings for a meaningful median. This eBay Sold Listings Search checks every run and tells you plainly when a page could not be read, instead of returning empty or wrong rows.

### Data you get from eBay Sold Listings Search

Every result is one flat row with these fields (values from a real run):

| Field | Example |
|---|---|
| `itemId` | 318815518705 |
| `title` | Lenovo ThinkPad X1 Nano Gen 1 i7-1160G7 16GB RAM 256GB SSD W... |
| `url` | https://www.ebay.com/itm/318815518705 |
| `imageUrl` | https://i.ebayimg.com/images/g/JpcAAeSwhFRqmEvn/s-l500.webp |
| `price` | $464.98 |
| `priceValue` | 464.98 |
| `currency` | $ |
| `brand` | Lenovo |
| `condition` | Pre-Owned |
| `buyingFormat` | Buy It Now |
| `bids` | null |
| `shipping` | Shipping not specified |
| `shippingValue` | null |
| `buyerTotal` | null |
| `sellerName` | 10 watchers |
| `sellerFeedbackPct` | 99.9 |
| `sellerFeedbackCount` | 18.8K |
| `soldDate` | null |
| `marketplace` | ebay.com |
| `belowMedianPct` | null |
| `medianBuyerTotal` | 1274.685 |

### How to use eBay Sold Listings Search

1. Press **Start** - the form already holds an example that works.
2. Put in your own input (see the fields on the Input tab).
3. Run it once, or put it on an **Apify Schedule** to get fresh rows every day.
4. Download the results as JSON, CSV or Excel, or send them to Google Sheets, Zapier, Make, the Apify API or an AI agent (Apify MCP server).

#### Input example

```json
{
  "searchQuery": "thinkpad x1 carbon",
  "marketplace": "ebay.com",
  "maxItems": 10,
  "sortBy": "best",
  "buyItNowOnly": false,
  "soldOnly": false,
  "useApifyProxy": true,
  "proxyGroups": [
    "RESIDENTIAL"
  ]
}
```

#### Output example (a real run)

```json
[
  {
    "itemId": "318815518705",
    "title": "Lenovo ThinkPad X1 Nano Gen 1 i7-1160G7 16GB RAM 256GB SSD Windows 11 & Stylus",
    "url": "https://www.ebay.com/itm/318815518705",
    "imageUrl": "https://i.ebayimg.com/images/g/JpcAAeSwhFRqmEvn/s-l500.webp",
    "price": "$464.98",
    "priceValue": 464.98,
    "currency": "$",
    "brand": "Lenovo",
    "condition": "Pre-Owned",
    "buyingFormat": "Buy It Now",
    "bids": null,
    "shipping": "Shipping not specified",
    "shippingValue": null,
    "buyerTotal": null,
    "sellerName": "10 watchers",
    "sellerFeedbackPct": 99.9,
    "sellerFeedbackCount": "18.8K",
    "soldDate": null,
    "marketplace": "ebay.com",
    "belowMedianPct": null,
    "medianBuyerTotal": 1274.685
  },
  {
    "itemId": "940014332984",
    "title": "ThinkPad X1 Carbon Gen 14 Aura Edition 14\", Touch Display, Ultra 7 365 32GB 1TB",
    "url": "https://www.ebay.com/itm/940014332984",
    "imageUrl": "https://i.ebayimg.com/images/g/U1YAAeSwi8tqtfv1/s-l500.webp",
    "price": "$2,350.00",
    "priceValue": 2350,
    "currency": "$",
    "brand": "3 Year Premier Support Plus Warranty",
    "condition": "Brand New",
    "buyingFormat": "Buy It Now",
    "bids": null,
    "shipping": "+$57.13 delivery",
    "shippingValue": 57.13,
    "buyerTotal": 2407.13,
    "sellerName": "param.vladi",
    "sellerFeedbackPct": 100,
    "sellerFeedbackCount": "102",
    "soldDate": null,
    "marketplace": "ebay.com",
    "belowMedianPct": -88.8,
    "medianBuyerTotal": 1274.685
  }
]
```

One flat row per result.

### How much does eBay Sold Listings Search cost?

You pay only per result (pay per event) - no monthly fee, no minimum, and the price per result is lower on Apify's Bronze, Silver and Gold plans. The exact price is on the **Pricing** tab. Apify's free plan credit is enough to try it on real input.

| You want | What you pay for |
|---|---|
| A quick test with the example | a few results |
| A daily scheduled run | only the rows that run returns |
| A big one-off export | the results delivered - set a maximum in the input |

### Also searched as

- ebay sold listings
- ebay scraper
- ebay price checker
- ebay sold prices
- ebay deal finder

### FAQ

**Does eBay Sold Listings Search need a login, cookies or an API key?** No. It reads public pages only.

**Can I run eBay Sold Listings Search on a schedule?** Yes - with Apify Schedules; each run returns fresh rows.

**Can I call it from Python, JavaScript or an AI agent?** Yes - through the Apify API, the Apify client libraries or the Apify MCP server.

**Is it legal?** It collects only data anyone can see without logging in. You are responsible for using it within the source site's terms and data protection law (GDPR, CCPA).

**What if the site blocks a request?** The run retries from a fresh connection and, if it still cannot read the page, stops with a clear message - never with made-up rows.

**Do I need proxies?** No setup needed - eBay Sold Listings Search uses Apify Proxy by default where the site needs it.

### Troubleshooting

- **No results:** check the input (a public URL or a search term that returns results in a normal browser), then try the example input once.
- **Fewer results than expected:** raise the maximum in the input; some sites show only a part of their data without logging in, and eBay Sold Listings Search never logs in.
- **The run stopped with a message:** the message says what the site answered; run it again later or with fewer items.

### Your feedback

Missing a field, found a bug, or need another site? Open an issue on the **Issues** tab - issues are answered and fixed. If eBay Sold Listings Search saved you time, a short review on this page helps others find it.

Data source: [www.ebay.com](https://www.ebay.com)

### More tools from this developer

- [Tweet Scraper: Tweet Details by URL, No Login or Cookies](https://apify.com/h1018y/anvil-tweet-scraper)
- [YouTube Thumbnail Downloader: Bulk, Every Size & Titles](https://apify.com/h1018y/anvil-youtube-thumbnail-downloader)
- [ML Conference Finder: NeurIPS, ICLR & ICML Alternatives](https://apify.com/h1018y/anvil-ml-conference-finder)
- [YouTube Transcript Scraper: Find Every Moment a Word Is Said](https://apify.com/h1018y/anvil-youtube-transcript-scraper)
- [Facebook Ads Library Scraper: Only New Ads & Days Running](https://apify.com/h1018y/anvil-facebook-ads-library-scraper)
- [Reddit Scraper: Keyword Alerts for New Posts & Comments](https://apify.com/h1018y/anvil-reddit-scraper)
- [Twitter Scraper: New Tweets From Any X Account, No Login](https://apify.com/h1018y/anvil-twitter-scraper)
- [Facebook Posts Scraper: New Posts & Engagement Growth](https://apify.com/h1018y/anvil-facebook-posts-scraper)

# Actor input Schema

## `searchQuery` (type: `string`):

What to search for on eBay.

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

Which eBay site to read.

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

How many listings to return (1-600).

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

Order of the results.

## `buyItNowOnly` (type: `boolean`):

Hide auctions.

## `soldOnly` (type: `boolean`):

Search completed and sold items instead of active ones. eBay may ask for a human check; then the run stops.

## `useApifyProxy` (type: `boolean`):

Send requests through Apify Proxy.

## `proxyGroups` (type: `array`):

Apify proxy groups. RESIDENTIAL is needed: eBay refuses datacenter addresses.

## Actor input object example

```json
{
  "searchQuery": "thinkpad x1 carbon",
  "marketplace": "ebay.com",
  "maxItems": 10,
  "sortBy": "best",
  "buyItNowOnly": false,
  "soldOnly": false,
  "useApifyProxy": true,
  "proxyGroups": [
    "RESIDENTIAL"
  ]
}
```

# Actor output Schema

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

All result rows (open as table, JSON, CSV or Excel).

# 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 = {
    "searchQuery": "thinkpad x1 carbon",
    "maxItems": 10,
    "useApifyProxy": true,
    "proxyGroups": [
        "RESIDENTIAL"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("h1018y/anvil-ebay-products").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 = {
    "searchQuery": "thinkpad x1 carbon",
    "maxItems": 10,
    "useApifyProxy": True,
    "proxyGroups": ["RESIDENTIAL"],
}

# Run the Actor and wait for it to finish
run = client.actor("h1018y/anvil-ebay-products").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 '{
  "searchQuery": "thinkpad x1 carbon",
  "maxItems": 10,
  "useApifyProxy": true,
  "proxyGroups": [
    "RESIDENTIAL"
  ]
}' |
apify call h1018y/anvil-ebay-products --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,h1018y/anvil-ebay-products"
        }
    }
}
```

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/Wa4xowQwDsQbMknXO/builds/RuBpaSWV2JjBzBcWK/openapi.json
