# eBay Scraper Scraper (`w3crawler/ebay-scraper-scraper`) Actor

Extracts non-empty public eBay search-result and item-page fields from direct HTML or JSON-LD responses. Seller contact and account data are excluded.

- **URL**: https://apify.com/w3crawler/ebay-scraper-scraper.md
- **Developed by:** [w3crawler](https://apify.com/w3crawler) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 65.5% runs succeeded, 0 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 Scraper Scraper

Collect public eBay search results and item pages as structured listing records. Point the Actor at a `/sch` search or `/itm` item URL and it saves the item number, canonical URL, title, price number and price text, listing type, shipping wording, seller positive-feedback percentage, official images, and the search position of each card. Item pages add description, brand, model, condition, availability, and currency from public Product JSON-LD. Residential US Apify Proxy is the default route because eBay commonly rejects unproxied datacenter traffic, and an access challenge is retried on a fresh proxy session at most twice before the page is reported as blocked.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/ebay-scraper-scraper) and select **Try for free** or open the **Input** tab.
2. Add one or more public eBay search or item URLs to `startUrls`. Leaving it empty runs the default UK vintage-camera search.
3. Leave the default `proxyConfiguration` in place for the first run; unproxied eBay requests are frequently blocked.
4. Start the Actor, open the dataset, and export it as JSON, CSV, or Excel. Open **Run summary** (`OUTPUT_SUMMARY`) to check counts and whether a source was blocked.

### Input

All fields are optional, and the defaults below are ready to use. Unsupported field names and out-of-range values are rejected before any request.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `startUrls` | object array | Optional | `[]` | Up to 20 `{ "url": "..." }` entries. Each must be an HTTPS eBay `/sch` search or category URL, or an `/itm` item URL, on a supported marketplace host. Empty means the built-in UK vintage-camera search. |
| `maxItems` | integer | Optional | `40` | Maximum item rows saved across the supplied pages, 1–100. |
| `timeoutMs` | integer | Optional | `30000` | Timeout for each request, including the help-page warm-up, 5,000–120,000 ms. |
| `maxRetries` | integer | Optional | `1` | Extra attempts for timeouts and 5xx responses, 0–3. HTTP 401, 403, and 429 are treated as access boundaries, not transient errors. |
| `acceptLanguage` | string | Optional | `en-US,en;q=0.8` | `Accept-Language` header for the request, up to 120 characters. It does not change the marketplace host. |
| `includeImages` | boolean | Optional | `true` | Return official image URLs found on the card or item page; when `false`, `imageUrls` is omitted. |
| `proxyConfiguration` | object | Optional | `{"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"], "apifyProxyCountry": "US"}` | Standard Apify Proxy settings. The residential US default exists because eBay blocks much unproxied and datacenter traffic; set `useApifyProxy` to `false` only if you know your egress is accepted. |

Example input, matching the sample stored in `.actor/input.json`:

```json
{
  "startUrls": [
    {
      "url": "https://www.ebay.com/sch/i.html?_nkw=wireless+earbuds"
    }
  ],
  "maxItems": 3,
  "timeoutMs": 30000,
  "acceptLanguage": "en-US,en;q=0.9",
  "includeImages": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

Omitted fields fall back to the schema defaults, so this sample narrows the run to three items without changing the transport. The saved run used `https://www.ebay.com/sch/i.html?_nkw=vintage+camera` with `maxItems: 5`, so it was a US search rather than the default UK one.

Before the target page, the Actor loads `https://<host>/help/home` once to establish a bounded anonymous session. A login, account, checkout, messaging, or otherwise private path in `startUrls`, or a URL carrying credentials, a port, a fragment, or a token-like query value, is rejected at validation. When a page is blocked, the Actor makes up to two additional attempts through fresh proxy sessions, then stops and records the boundary; it never signs in or solves a challenge.

### Output

The dataset contains one row per unique item. Search pages are parsed from result cards, with Product JSON-LD as a fallback when no cards parse; item pages are parsed from Product JSON-LD first and item-page HTML second. Optional values are omitted when the source does not publish them, and a page that exposes no parseable item produces a summary diagnostic instead of a dataset row.

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `url` | string | Always | Item URL for the record; identical to `itemUrl`. |
| `searchUrl` | string | Always | Page that produced the row, which is the search URL for card rows and the item URL for direct item runs. |
| `scrapedAt` | string | Always | Time the row was saved, in ISO UTC. |
| `itemId` | string | Always | eBay item number parsed from the item URL. |
| `itemUrl` | string | Always | Canonical `https://<host>/itm/<itemId>` URL with tracking parameters removed. |
| `title` | string | Always | Item title as displayed, with a leading "New listing" label removed. |
| `description` | string | When published | Description from Product JSON-LD, capped at 4,000 characters. |
| `brand` | string | When published | Brand from Product JSON-LD, read from a string or its `name` property. |
| `model` | string | When published | Model value from Product JSON-LD. |
| `condition` | string | When published | Condition label from the card subtitle or the JSON-LD `itemCondition` value. |
| `availability` | string | When published | Availability from JSON-LD offers, often a schema.org `InStock` URL. |
| `listingType` | string | When published | `Auction`, `Buy It Now`, or `Best Offer`, inferred from the listing wording. |
| `priceValue` | number | When published | Numeric price with thousands separators removed. |
| `priceText` | string | When published | Price as printed, such as `$38.00` or `£7,000.00`. |
| `currency` | string | When published | Three-letter code from JSON-LD, or inferred from a `£` or `€` symbol. A plain `$` is not resolved to a specific dollar currency. |
| `shippingText` | string | When published | Delivery wording shown on the card, such as `+$6.71 delivery in 2-4 days` or `Free delivery`. |
| `sellerRating` | number | When published | Positive-feedback percentage shown next to the seller, 0–100; it is not a star score. |
| `sellerFeedbackCount` | integer | When published | Feedback or rating count when the card prints one with the seller label. |
| `sellerBadge` | string | When published | `Top Rated Plus` when that badge text appears beside the seller. |
| `imageUrls` | string array | When published | Up to eight official `ebayimg.com` image URLs; omitted when `includeImages` is `false`. |
| `location` | string | Not emitted | Declared in the dataset schema, but the current parser does not populate it. |
| `category` | string | Not emitted | Declared in the dataset schema, but the current parser does not populate it. |
| `marketplace` | string | Not emitted | Declared in the dataset schema, but the current parser does not populate it; read the host from `itemUrl` instead. |
| `sourcePageType` | string | Always | `ebay-search-result-html` or `ebay-item-detail-html`, identifying which parser produced the row. |
| `sourceRowIndex` | integer | Always | One-based card position on its page, or `1` for a single item-page record. |
| `sourceEvidence` | string array | Always | Public evidence behind the row, such as `official_ebay_search_result_html` plus `official_ebay_item_link`, or `official_ebay_json_ld_product`. |
| `searchRank` | integer | When published | Card position on the search page, equal to `sourceRowIndex`; absent on item-page rows. |
| `promoted` | boolean | When published | Whether the card showed a promoted-listing marker; `false` for organic results. |

The example below is a real saved row from the 2026-10-25 run, complete as stored.

```json
{
  "url": "https://www.ebay.com/itm/137874394160",
  "searchUrl": "https://www.ebay.com/sch/i.html?_nkw=vintage+camera",
  "scrapedAt": "2026-10-25T20:41:54.855Z",
  "itemId": "137874394160",
  "itemUrl": "https://www.ebay.com/itm/137874394160",
  "title": "Vintage Kodak Camera With No 1 Kodex Shutter & Anastigmat f/6.3 Lens.",
  "listingType": "Buy It Now",
  "priceValue": 38,
  "priceText": "$38.00",
  "shippingText": "+$6.71 delivery in 2-4 days",
  "sellerRating": 100,
  "imageUrls": [
    "https://i.ebayimg.com/images/g/lrUAAeSwsKZq3kR4/s-l500.jpg"
  ],
  "sourcePageType": "ebay-search-result-html",
  "sourceRowIndex": 3,
  "sourceEvidence": [
    "official_ebay_search_result_html",
    "official_ebay_item_link"
  ],
  "searchRank": 3,
  "promoted": false
}
```

The other four rows of this run share the schema and the same search page, with `searchRank` 4 to 7, prices of USD 99.99, 290.89, 10.00, and 39.99 in display text, and seller ratings of 100. None of the cards published a currency code, description, brand, model, condition, availability, seller feedback count, seller badge, location, or category, so those keys are absent. `priceText` keeps the `$` while `currency` stays empty, because a bare dollar sign does not say whether the listing is USD, CAD, or AUD. `sellerRating: 100` means 100 percent positive feedback, not a perfect five-star score. Rank starts at 3 because the first two cards did not meet the item contract and were skipped.

### Run summary

**Run summary** is stored separately from the dataset in the run's key-value store under `OUTPUT_SUMMARY`.

| Field | Meaning |
| --- | --- |
| `status` | Actor process outcome: `SUCCEEDED` or `FAILED`. |
| `runStatus` | Canonical run status; matches `status`. |
| `dataStatus` | Completeness of saved rows: `COMPLETE`, `PARTIAL`, `NO_RESULTS`, or `FAILED`. |
| `requestCount` | Source pages requested, including pages that ended in a diagnostic. |
| `itemCount` | Rows saved to the dataset. |
| `sourceRecords` | Records obtained from the source; equals `itemCount` after validation. |
| `diagnosticRecords` | Diagnostic entries written as dataset rows; always `0`. |
| `diagnosticItems` | Diagnostic dataset rows; always `0`. |
| `diagnosticCount` | Number of operational issues recorded for the run. |
| `dataAvailable` | Whether at least one source-backed row was saved. |
| `sourceBlocked` | Whether an access denial or challenge page was detected. |
| `uniqueItems` | Distinct item URLs among the saved rows. |

| Status | Data status | Meaning |
| --- | --- | --- |
| `SUCCEEDED` | `COMPLETE` | Rows were saved and no failure was recorded. |
| `SUCCEEDED` | `PARTIAL` | Rows were saved, but another page or record failed. The saved rows remain available. |
| `SUCCEEDED` | `NO_RESULTS` | Every page was read without a failure but exposed no parseable item. |
| `FAILED` | `FAILED` | A fatal input error, or every source failed before a row was saved. |

Example `OUTPUT_SUMMARY` from the 2026-10-25 run:

```json
{
  "status": "SUCCEEDED",
  "runStatus": "SUCCEEDED",
  "dataStatus": "COMPLETE",
  "requestCount": 1,
  "itemCount": 5,
  "sourceRecords": 5,
  "diagnosticRecords": 0,
  "diagnosticItems": 0,
  "diagnosticCount": 0,
  "dataAvailable": true,
  "sourceBlocked": false,
  "uniqueItems": 5
}
```

This summary has no timestamp field; the row-level `scrapedAt` values are the record of when the data was written. One search request returned five usable cards, so `requestCount` is 1 and `itemCount` is 5. Detailed diagnostic objects are written to the run log, while the summary keeps only their count and the `sourceBlocked` flag.

### Coverage and limitations

The Actor reads only the `/sch` and `/itm` pages you supply, up to 20 URLs and `maxItems` rows; it does not paginate a search on its own. Search cards provide price, shipping wording, listing type, seller percentage, images, rank, and promotion state. Richer fields such as description, brand, model, availability, and a currency code depend on Product JSON-LD, so they are far more likely on item-page runs. `sellerFeedbackCount` and `sellerBadge` require specific card wording, and `location`, `category`, and `marketplace` are declared in the schema but are never populated by the current parser.

eBay's anti-automation responses are the main practical limit. The residential proxy default exists for that reason; without an accepted route, pages return a challenge or a 401/403/429 and no rows. An access boundary is retried twice on fresh proxy sessions and then recorded, so a fully blocked run ends with `sourceBlocked: true` and no data. A page that returns HTTP 200 but no parseable item is logged as `NO_SOURCE_ROWS` and does not count as a failure, which means `diagnosticCount` can be non-zero while `dataStatus` stays `COMPLETE`; check both fields. The response body is capped at 12 MB; `maxBytes` is accepted by the runtime for compatibility but is not part of the published input schema.

### Usage and support

Residential proxy traffic and per-page requests dominate cost, so start with a single search URL and a small `maxItems`, confirm the fields you need appear, and only then add item URLs for JSON-LD detail. Setting `proxyConfiguration.useApifyProxy` to `false` makes runs cheaper but usually unproductive against eBay. See the Actor's Pricing tab for current account rates.

Use the [Actor Issues page](https://apify.com/w3crawler/ebay-scraper-scraper/issues) to report a problem. Include the run ID, the input used, and the `OUTPUT_SUMMARY`; do not include tokens, cookies, or proxy credentials. This Actor is not affiliated with, endorsed by, or sponsored by eBay. Use it only for public data and in accordance with eBay's terms, robots guidance, and applicable law. Contact-like text is redacted from stored fields, but listings can still contain personal information, so use the output only for lawful purposes.

# Actor input Schema

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

Public eBay /sch or /itm HTTPS URLs.

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

Maximum eBay item rows emitted across requested pages.

## `timeoutMs` (type: `integer`):

Maximum time allowed for each direct public request.

## `maxRetries` (type: `integer`):

Bounded retries for transient public request failures.

## `acceptLanguage` (type: `string`):

Optional language preference for the public request.

## `includeImages` (type: `boolean`):

Include official eBay image URLs exposed on public result or item pages.

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

Apify proxy route for public eBay pages. Residential US proxies are the default because eBay blocks unproxied and datacenter egress. The Actor reports whether a proxy was used and does not bypass authentication or access controls.

## Actor input object example

```json
{
  "startUrls": [],
  "maxItems": 40,
  "timeoutMs": 30000,
  "maxRetries": 1,
  "acceptLanguage": "en-US,en;q=0.8",
  "includeImages": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `runSummary` (type: `string`):

Run status and counters stored by the Actor.

# 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("w3crawler/ebay-scraper-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("w3crawler/ebay-scraper-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 w3crawler/ebay-scraper-scraper --silent --output-dataset

```

## MCP server setup

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