# eBay Product Scraper (`admo-solutions/ebay-product-scraper`) Actor

Scrape eBay product listings with prices, seller info, and condition details.

- **URL**: https://apify.com/admo-solutions/ebay-product-scraper.md
- **Developed by:** [Admo Solutions](https://apify.com/admo-solutions) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 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/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 Product Scraper

Scrape eBay product listings with prices, seller info, and condition details. Extract product data from search results across all eBay categories.

### 💰 Pricing

This Actor uses the **Pay Per Event** pricing model:

| Event | Price |
|-------|-------|
| Actor run | $0.00005 |
| Per product scraped | $0.004 |

For example, scraping 500 products costs: $0.00005 + (500 × $0.004) = **$2.00**

### 📥 Input

| Field | Type | Required | Default | Description |
|-------|------|----------|---------|-------------|
| `queries` | array | ✅ | `["laptop"]` | Product search terms to scrape from eBay |
| `maxResults` | integer | ❌ | `50` | Maximum number of products to scrape per query |
| `condition` | string | ❌ | `"all"` | Filter by item condition: `new`, `used`, `refurbished`, `all` |
| `sortBy` | string | ❌ | `"best_match"` | Sort results by: `best_match`, `price_asc`, `price_desc`, `newly_listed`, `ending_soonest` |
| `minDelay` | integer | ❌ | `2` | Minimum delay between requests (seconds) |
| `maxDelay` | integer | ❌ | `5` | Maximum delay between requests (seconds) |

#### Example Input

```json
{
  "queries": ["iphone 15", "macbook pro"],
  "maxResults": 100,
  "condition": "new",
  "sortBy": "price_asc",
  "minDelay": 2,
  "maxDelay": 5
}
```

### 📤 Output

| Field | Type | Description |
|-------|------|-------------|
| `itemId` | string | eBay item ID |
| `title` | string | Product title |
| `price` | string | Product price |
| `currency` | string | Currency code (USD, EUR, GBP) |
| `condition` | string | Item condition (New, Used, Refurbished) |
| `seller` | string | Seller username |
| `sellerScore` | string | Seller feedback score |
| `shipping` | string | Shipping information |
| `location` | string | Item location |
| `imageUrl` | string | Product image URL |
| `url` | string | Product listing URL |
| `query` | string | Search query used |

#### Example Output

```json
{
  "itemId": "123456789",
  "title": "Apple iPhone 15 Pro Max 256GB Unlocked",
  "price": "999.99",
  "currency": "USD",
  "condition": "New",
  "seller": "techstore2024",
  "sellerScore": "15,234",
  "shipping": "Free shipping",
  "location": "New York, NY",
  "imageUrl": "https://i.ebayimg.com/images/g/...",
  "url": "https://www.ebay.com/itm/123456789",
  "query": "iphone 15"
}
```

### 🔧 How It Works

1. Uses Playwright browser to navigate eBay search results
2. Extracts product data via JavaScript injection
3. Handles pagination to fetch multiple pages
4. Implements random delays to avoid rate limiting
5. Supports filtering by condition and sorting options

### 🔗 Integration

- **Zapier**: Use the "Run Actor" action with dataset polling
- **Make.com**: Use the HTTP module to call the Actor API
- **n8n**: Use the Apify node or HTTP Request node
- **OpenAI MCP**: Connect via the Apify MCP server

### ⚠️ Notes

- Respects eBay's rate limits with configurable delays
- Some products may have limited seller information
- Image URLs are direct links to eBay image servers
- Works with all eBay regional sites (ebay.com, ebay.co.uk, etc.)

# Actor input Schema

## `queries` (type: `array`):

Product search terms to scrape from eBay

## `maxResults` (type: `integer`):

Maximum number of products to scrape per query

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

Filter by item condition

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

Sort results by

## `minDelay` (type: `integer`):

Minimum delay between requests

## `maxDelay` (type: `integer`):

Maximum delay between requests

## `proxyCountry` (type: `string`):

Country for proxy IP. eBay localizes results based on IP country. Must match your target marketplace.

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

Proxy settings for anti-bot protection. Residential proxy is REQUIRED for eBay.

## Actor input object example

```json
{
  "queries": [
    "laptop"
  ],
  "maxResults": 50,
  "condition": "all",
  "sortBy": "best_match",
  "minDelay": 2,
  "maxDelay": 5,
  "proxyCountry": "US",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

No description

# 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("admo-solutions/ebay-product-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 = {}

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,admo-solutions/ebay-product-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/4CE6toGhM7Q6JnonH/builds/jkirHazbP5os0aO74/openapi.json
