# Ebay Scraper (`khnaami/actor-ebay-scraper`) Actor

eBay Scraper: Extract active listings and sold completed items, Buy It Now prices, live auction bids, item condition, seller feedback scores, and shipping costs across all international eBay domains. Essential for retail arbitrage, secondary market analytics, and fair market price analytics.

- **URL**: https://apify.com/khnaami/actor-ebay-scraper.md
- **Developed by:** [khalid naami](https://apify.com/khnaami) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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 Arbitrage Scraper (Sold Items, Buy It Now, Auctions & Prices)

Extract live eBay product listings, sold & completed transactions, Buy It Now prices, auction bid counts, item conditions, seller feedback scores, and shipping fees across all regional eBay marketplaces.

> **Apify Store Short Description (291 chars):**\
> `Scrape eBay product listings, sold & completed items, live Buy It Now prices, auction bids, item conditions, seller feedback, and shipping across global eBay domains. Supports full sold-items arbitrage mode and fast keyword search with proxy rotation for market pricing and retail arbitrage.`

***

### 🌟 Key Features

- 💸 **Sold & Completed Items Filter (Arbitrage Mode)**: Filter by `soldItemsOnly` to extract the true historical prices buyers actually paid, not just asking prices.
- 🔨 **Auctions vs Buy It Now**: Seamlessly distinguishes fixed-price items from active auctions with live bid counts.
- 📦 **Granular Condition Filters**: Filter by Brand New, Certified Refurbished, Open Box, or Pre-Owned/Used conditions.
- ⭐ **Seller Credibility Metrics**: Captures seller usernames, total feedback score count, positive feedback percentage (e.g. "99.4%"), and Top Rated Plus badges.
- 🚚 **Accurate Shipping & Location**: Extracts shipping costs ("Free shipping" vs standard fees), item dispatch locations, and return policy terms.
- 🌍 **Global eBay Marketplaces**: Supports all major eBay domains (`ebay.com`, `ebay.co.uk`, `ebay.de`, `ebay.ca`, `ebay.com.au`, `ebay.fr`, `ebay.it`, `ebay.es`).
- 🛡️ **Anti-Bot & CAPTCHA Resistance**: Backed by residential proxy integration and automatic headless browser fallback.

***

### 📥 Input Configuration

| Field | Type | Default | Description |
|---|---|---|---|
| `productUrls` | Array | `[]` | List of direct eBay item URLs (leave empty to search by keywords). |
| `searchKeywords` | Array | `["iphone 15 pro max"]` | Keywords to search on eBay (e.g. `'iPhone 15 Pro Max'`). |
| `soldItemsOnly` | Boolean | `false` | When true, extracts only completed and sold listings. |
| `listingType` | String | `"all"` | Filter by format: `all`, `buyItNow` (Fixed Price), `auction`. |
| `condition` | String | `"all"` | Filter by condition: `all`, `new`, `refurbished`, `used`. |
| `ebayDomain` | String | `"ebay.com"` | Regional eBay marketplace domain. |
| `maxProducts` | Integer | `40` | Maximum product records to extract per keyword. |
| `proxyConfiguration` | Object | `{ "useApifyProxy": true }` | Apify Proxy settings to bypass IP blocks. |

***

### 📤 Output Data Format

```json
{
  "itemId": "126123456789",
  "title": "Apple iPhone 15 Pro Max - 256GB - Natural Titanium (Unlocked)",
  "price": 899.99,
  "originalPrice": 1199.00,
  "currency": "USD",
  "shippingCost": "Free shipping",
  "condition": "Certified - Refurbished",
  "listingType": "Buy It Now",
  "bidsCount": 0,
  "isSold": true,
  "soldDate": "Sold Nov 8, 2026",
  "sellerName": "quickshipelectronics",
  "sellerFeedbackScore": 482500,
  "sellerPositiveFeedback": "99.6%",
  "topRatedSeller": true,
  "location": "Dallas, Texas, United States",
  "returns": "Free 30-day returns",
  "thumbnail": "https://i.ebayimg.com/images/g/abc123456/s-l1600.jpg",
  "images": [
    "https://i.ebayimg.com/images/g/abc123456/s-l1600.jpg",
    "https://i.ebayimg.com/images/g/xyz987654/s-l1600.jpg"
  ],
  "url": "https://www.ebay.com/itm/126123456789",
  "scrapedAt": "2026-11-10T12:20:00.000Z"
}
```

***

### 💡 Practical Commercial Use Cases

1. **Retail & Online Arbitrage**: Compare eBay sold prices with Amazon or Walmart clearance prices to find profitable resale flips.
2. **Fair Market Value Appraisal**: Appraise collectibles, trading cards, luxury watches, and electronics using verified sold transactions.
3. **Auction Sniping & Monitoring**: Track active auction listings approaching their end time with low bid counts.
4. **Competitor Store Scraping**: Monitor inventory, pricing, and volume of top-rated eBay powersellers.

***

### ⚖️ License

Apache-2.0

# Actor input Schema

## `productUrls` (type: `array`):

List of direct eBay listing URLs (e.g. https://www.ebay.com/itm/123456789012). Leave empty to search by keywords.

## `searchKeywords` (type: `array`):

Keywords to search on eBay (e.g. 'iPhone 15 Pro Max', 'Pokemon booster box', 'Nike Dunk Low').

## `soldItemsOnly` (type: `boolean`):

Filter to extract ONLY items that were actually completed and sold, revealing true historical market sales prices.

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

Filter by buying format: Buy It Now (Fixed Price), Auction, or All.

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

Filter by physical item condition.

## `ebayDomain` (type: `string`):

Select the target regional eBay domain.

## `maxProducts` (type: `integer`):

Maximum number of listing records to extract per keyword.

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

eBay enforces strict anti-bot gating (Pardon Our Interruption) on datacenter IPs. Select Apify RESIDENTIAL or UNBLOCKER proxy group for reliable extraction.

## Actor input object example

```json
{
  "productUrls": [],
  "searchKeywords": [
    "iphone 15 pro max"
  ],
  "soldItemsOnly": false,
  "listingType": "all",
  "condition": "all",
  "ebayDomain": "ebay.com",
  "maxProducts": 40,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Scraped records stored in the default Apify dataset.

## `overview` (type: `string`):

High-level summary report and execution metrics stored in Key-Value store.

# 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 = {
    "productUrls": [],
    "searchKeywords": [
        "iphone 15 pro max"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("khnaami/actor-ebay-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 = {
    "productUrls": [],
    "searchKeywords": ["iphone 15 pro max"],
}

# Run the Actor and wait for it to finish
run = client.actor("khnaami/actor-ebay-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "productUrls": [],
  "searchKeywords": [
    "iphone 15 pro max"
  ]
}' |
apify call khnaami/actor-ebay-scraper --silent --output-dataset

```

## MCP server setup

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

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/9Fe0kvC5sEyEM9Grd/builds/s9G0y6u1epGba4BaP/openapi.json
