# eBay Listings Scraper (`scrapers-hub/ebay-listings-scraper`) Actor

eBay Listings scraper to extract publicly available product listings, prices, seller details, item conditions, categories, images, and listing metadata from eBay 🛒📊 Perfect for price monitoring, competitor analysis, e-commerce research, and market intelligence.

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

## Pricing

from $1.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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 Listings Scraper

An Apify actor that scrapes eBay search listings and returns structured data
(price, seller feedback, shipping, condition, dates, thumbnails).

### Tech stack

- **`requests`** — primary HTTP engine.
- **`curl_cffi`** — fallback engine. When eBay blocks plain `requests`
  (403 / 429 / captcha interstitial), the request is retried with a real Chrome
  TLS fingerprint via `curl_cffi`.
- **`parsel`** — HTML parsing with CSS selectors.
- **Apify SDK** — input, proxy configuration, dataset output, logging.

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `searchQueries` | array of strings | — (required) | Keywords to search. |
| `listingType` | `all` | `auction` | `buy_it_now` | `all` | Selling format filter. |
| `sort` | `best_match` | `newly_listed` | `ending_soonest` | `price_low` | `price_high` | `best_match` | Result ordering. |
| `maxListingsPerSearch` | integer | `40` | Listing cap per query. |
| `maxSearchPages` | integer | `4` | Max result pages per query. |
| `maxRequestRetries` | integer | `5` | Retries per request before giving up. |
| `proxyConfiguration` | object | Apify Proxy | Proxy settings. |

#### Example

```json
{
    "listingType": "all",
    "maxListingsPerSearch": 40,
    "maxRequestRetries": 5,
    "maxSearchPages": 4,
    "searchQueries": ["vintage camera"],
    "sort": "newly_listed"
}
```

### Output

Each dataset item:

```json
{
    "itemId": "236774018661",
    "title": "KMZ Konvas 35mm Cinema Camera 1952 USSR ...",
    "soldPrice": 1600,
    "soldPriceString": "$1,600.00",
    "soldDate": "Jun 24, 2026",
    "condition": "",
    "listingType": "Buy It Now",
    "bidsCount": null,
    "shippingCost": "+$150.00 delivery",
    "sellerName": "vintagephotostore_ua",
    "sellerFeedbackPercent": "99.5%",
    "sellerFeedbackCount": "1.2K",
    "thumbnail": "https://i.ebayimg.com/images/g/0XMAAOSwZ4BmZ-j2/s-l500.webp",
    "url": "https://www.ebay.com/itm/236774018661",
    "scrapedAt": "2026-06-24T07:57:48.249Z"
}
```

### Run locally

```bash
pip install -r requirements.txt
apify run --input='{"searchQueries":["vintage camera"],"sort":"newly_listed"}'
```

# Actor input Schema

## `searchQueries` (type: `array`):

List of keywords to search on eBay (one search per keyword).

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

Filter listings by selling format.

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

How eBay should order the results.

## `soldListings` (type: `boolean`):

Scrape sold & completed listings (with the actual sold price and sold date). Turn off to scrape active listings instead.

## `maxListingsPerSearch` (type: `integer`):

Stop after collecting this many listings per search query.

## `maxSearchPages` (type: `integer`):

Maximum number of result pages to visit per search query.

## `maxRequestRetries` (type: `integer`):

How many times to retry a request before giving up.

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

Proxy settings. eBay is protected by Akamai — RESIDENTIAL proxies are strongly recommended; datacenter IPs get blocked.

## Actor input object example

```json
{
  "searchQueries": [
    "vintage camera"
  ],
  "listingType": "all",
  "sort": "best_match",
  "soldListings": true,
  "maxListingsPerSearch": 40,
  "maxSearchPages": 4,
  "maxRequestRetries": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# 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 = {
    "searchQueries": [
        "vintage camera"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapers-hub/ebay-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 = { "searchQueries": ["vintage camera"] }

# Run the Actor and wait for it to finish
run = client.actor("scrapers-hub/ebay-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 '{
  "searchQueries": [
    "vintage camera"
  ]
}' |
apify call scrapers-hub/ebay-listings-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/BDo2NcDOEDIMtYtx4/builds/3zw6HCbJug7GZK0gX/openapi.json
