# eBay Product Search Scraper (`xtracto/ebay-search-scraper`) Actor

Run keyword searches on eBay and collect every result card across paginated pages.

- **URL**: https://apify.com/xtracto/ebay-search-scraper.md
- **Developed by:** [Farhan Febrian Nauval](https://apify.com/xtracto) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.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.
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?

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 Search Scraper

Search any keyword on eBay and export every result card — price, condition, seller, shipping, and more — across as many pages as you need, on any of 8 country domains.

### Why use this actor

- No eBay account or login required — works on fully public search results.
- Supports 8 country domains: US, UK, DE, FR, IT, ES, CA, and AU.
- Multi-keyword input with configurable page depth per query.
- Full result card payload including title, price, condition, seller location, sold count, bid count, sponsored flag, and item ID.
- Auction and Buy It Now aware — captures bid counts and price ranges for auctions.
- Stable JSON output ready to load into any database, spreadsheet, or data pipeline.

### How it works

1. You provide one or more search keywords, choose an eBay domain, and set how many pages to collect per keyword.
2. The actor fetches each search results page and parses every listing card on the page.
3. All visible card fields are extracted — including condition, shipping cost, location, and buy format.
4. Results stream into your Apify dataset as they are collected, page by page.
5. When all pages are done you can download the full dataset as JSON, CSV, or Excel.

You don't need to manage any browsers or scrapers.

### Input

```json
{
  "queries": ["nintendo switch oled", "sony wh-1000xm5"],
  "domain": "www.ebay.com",
  "maxPagesPerQuery": 3,
  "maxConcurrency": 4,
  "maxRequestRetries": 5,
  "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}
```

| Field | Type | Description |
|---|---|---|
| `queries` | array | Search keywords — one string per entry. |
| `domain` | string | eBay country domain. Options: `www.ebay.com`, `www.ebay.co.uk`, `www.ebay.de`, `www.ebay.com.au`, `www.ebay.ca`, `www.ebay.fr`, `www.ebay.it`, `www.ebay.es`. Default: `www.ebay.com`. |
| `maxPagesPerQuery` | integer | Pages to collect per keyword. Default: 3; maximum: 50. |
| `maxConcurrency` | integer | Maximum parallel page requests. Default: 4. |
| `maxRequestRetries` | integer | Per-request retry budget before giving up. Default: 5. |
| `proxyConfiguration` | object | Apify Proxy or your own proxy list. RESIDENTIAL group is recommended. |

### Output

One record per listing card per page:

```json
{
  "query": "nintendo switch oled",
  "page": 1,
  "position": 2,
  "itemId": "327126384858",
  "title": "Nintendo Switch OLED Model 64GB - White Console Bundle",
  "price": 299.99,
  "currency": "USD",
  "condition": "Used",
  "location": "Brooklyn, NY, United States",
  "listingType": "Buy It Now",
  "image": "https://i.ebayimg.com/thumbs/images/g/abc/s-l225.jpg",
  "url": "https://www.ebay.com/itm/327126384858",
  "scrapedAt": "2026-05-13T04:35:22Z"
}
```

| Field | Type | Description |
|---|---|---|
| `query` | string | The search keyword that produced this result. |
| `page` | integer | Page number this listing appeared on. |
| `position` | integer | Position of the listing on the page (1-indexed). |
| `itemId` | string | eBay item ID. |
| `title` | string | Full listing title. |
| `price` | number | Current price (or starting bid for auctions). |
| `currency` | string | ISO currency code. |
| `condition` | string | Item condition (e.g. `New`, `Used`, `Refurbished`). |
| `location` | string | Seller's listed location. |
| `listingType` | string | Listing format: `Buy It Now` or `Auction`. |
| `image` | string | Primary listing image URL. |
| `url` | string | Direct link to the listing page. |
| `scrapedAt` | string | ISO 8601 timestamp of when the record was collected. |

### Other eBay Scrapers

| Actor | Description |
|---|---|
| [eBay Search Scraper](https://apify.com/search?q=ebay-search-scraper) | Keyword search results across multiple pages and country domains. |
| [eBay Product Scraper](https://apify.com/search?q=ebay-product-scraper) | Full listing detail from individual eBay item URLs. |

# Actor input Schema

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

Search keywords (one per array entry).

## `domain` (type: `string`):

Country-specific eBay domain (e.g. www.ebay.com).

## `maxPagesPerQuery` (type: `integer`):

How many result pages to traverse per query.

## `maxConcurrency` (type: `integer`):

Maximum number of parallel requests.

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

How many times a request will be retried before giving up.

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

Apify Proxy or your own proxy list. RESIDENTIAL group is recommended.

## Actor input object example

```json
{
  "queries": [
    "nintendo switch oled"
  ],
  "domain": "www.ebay.com",
  "maxPagesPerQuery": 3,
  "maxConcurrency": 4,
  "maxRequestRetries": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "queries": [
        "nintendo switch oled"
    ],
    "domain": "www.ebay.com",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("xtracto/ebay-search-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 = {
    "queries": ["nintendo switch oled"],
    "domain": "www.ebay.com",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("xtracto/ebay-search-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 '{
  "queries": [
    "nintendo switch oled"
  ],
  "domain": "www.ebay.com",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call xtracto/ebay-search-scraper --silent --output-dataset

```

## MCP server setup

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