# eBay Scraper - Listings, Prices & Seller Data (`antishock/ebay-scraper`) Actor

Scrape eBay listings, prices & seller data. Price tracking & market research. ⚠️ eBay's PerimeterX bot protection currently blocks most automated requests; success rate is low and inconsistent.

- **URL**: https://apify.com/antishock/ebay-scraper.md
- **Developed by:** [Ryan Zinburg](https://apify.com/antishock) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 42.9% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.00 / 1,000 dataset items

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/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 Scraper - Listings, Prices & Seller Data

Scrape eBay search results and item pages: title, price, condition, seller, shipping origin, images and item specifics. Built for price tracking, market research and reselling workflows.

### What it does

1. Builds an eBay search URL from your `searchQuery` (or takes your own `startUrls`)
2. Collects item links from the search results, following pagination
3. Opens each item page and extracts the fields below
4. Stops once `maxItems` items are saved

Uses plain HTTP parsing through an Apify proxy, so runs are fast and cheap.

### Input

| Field | Type | Description |
|---|---|---|
| `searchQuery` | string | What to search for, e.g. `vintage camera` |
| `startUrls` | array | Optional: specific eBay search or item URLs |
| `maxItems` | integer | How many items to save (default 100) |
| `minPrice` / `maxPrice` | number | Optional price filter |
| `condition` | string | `all`, `new`, `used` |
| `sortBy` | string | `best_match`, `price_asc`, `price_desc`, `newest` |

Provide either `searchQuery` or `startUrls`.

```json
{
  "searchQuery": "vintage camera",
  "maxItems": 20,
  "condition": "used",
  "sortBy": "best_match"
}
```

### Output

```json
{
  "url": "https://www.ebay.com/itm/123456789012",
  "itemId": "123456789012",
  "title": "Canon AE-1 35mm SLR Film Camera with 50mm f/1.8",
  "price": "189.99",
  "condition": "Used",
  "seller": "retro_optics",
  "sellerFeedback": "99.2% positive",
  "shipsFrom": "United States",
  "images": ["https://i.ebayimg.com/images/g/.../s-l1600.jpg"],
  "specs": {"Brand": "Canon", "Type": "SLR", "Film Format": "35mm"},
  "scrapedAt": "2026-09-15T18:20:00.000Z"
}
```

Fields that a given listing does not provide are returned as empty strings or an empty object.

### Use cases

- Price tracking for resellers and collectors
- Market research on used-goods categories
- Monitoring specific sellers or product lines

### Notes

- Sold/completed listings are not covered; this scrapes active listings
- `specs` mirrors eBay's item specifics table and varies by category

# Actor input Schema

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

Keyword to search on eBay (e.g. 'vintage camera', 'gaming laptop')

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

eBay search or product URLs to scrape directly

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

Maximum number of product listings to scrape

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

Filter results by minimum price

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

Filter results by maximum price

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

Filter by item condition

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

How to sort search results

## Actor input object example

```json
{
  "searchQuery": "vintage camera",
  "maxItems": 20,
  "condition": "all",
  "sortBy": "best_match"
}
```

# Actor output Schema

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

Scraped records in the default dataset.

# 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": "vintage camera",
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("antishock/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 = {
    "searchQuery": "vintage camera",
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("antishock/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 '{
  "searchQuery": "vintage camera",
  "maxItems": 20
}' |
apify call antishock/ebay-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,antishock/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/tNrPCEtFk0RANy68h/builds/jLilQqz2r5UjwVykA/openapi.json
