# eBay Product Details Scraper (`amaringonz/apify-ebay-item-scraper`) Actor

Extract complete, structured data from individual eBay product listings, including titles, prices, images, condition, availability, seller details, shipping information, item specifics, and product variations.

- **URL**: https://apify.com/amaringonz/apify-ebay-item-scraper.md
- **Developed by:** [Alejandro Marín González](https://apify.com/amaringonz) (community)
- **Categories:** E-commerce, Automation, Open source
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 product scrapeds

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/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 Item Scraper

An [Apify Actor](https://apify.com) that extracts full product data from a single eBay item page — title, price, condition, images, seller, shipping, item specifics, variants, description, and reviews.

Built with [Crawlee](https://crawlee.dev) + [Playwright](https://playwright.dev) and TypeScript.

### What it does

Give it the URL of any eBay item page and it returns a single structured record with:

| Field | Description |
|---|---|
| `url` / `itemId` | Source URL and eBay item ID |
| `title` | Item title |
| `price` | `{ value, currency }` |
| `condition` | Item condition (e.g. "New", "Used") |
| `brand` | Brand name, from product JSON-LD or the item specifics "Brand" row |
| `availability` | `{ inStock, quantityAvailable, quantitySold }` |
| `images` | Array of full-size image URLs |
| `seller` | `{ username, feedbackScore, positiveFeedbackPercent }` |
| `shipping` | `{ cost, location, estimatedDelivery }` |
| `itemSpecifics` | Key/value map of the "Item specifics" table |
| `weightRaw` | Raw weight text from item specifics (e.g. "Item Weight"), if the seller listed one |
| `dimensionsRaw` | Raw "length x width x height" text built from item specifics, if the seller listed them |
| `description` | Full text of the item description |
| `variants` | Available options (e.g. size, color) |
| `reviews` | `{ averageRating, totalReviews }` |
| `scrapedAt` | ISO timestamp of the scrape |

### Input

```json
{
  "url": "https://www.ebay.com/itm/286949138543",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

| Property | Type | Required | Description |
|---|---|---|---|
| `url` | string | yes | Full URL of the eBay item page |
| `proxyConfiguration` | object | no | Defaults to Apify's `RESIDENTIAL` proxy group |

> **Note:** eBay blocks Apify's shared datacenter proxy IPs. Use the `RESIDENTIAL` proxy group (requires that add-on on your Apify plan) for reliable results.

See [`.actor/input_schema.json`](.actor/input_schema.json) for the full schema.

### Output

Results are pushed to the Actor's default [dataset](https://docs.apify.com/platform/storage/dataset), one item per run. See [`src/types.ts`](src/types.ts) for the exact TypeScript shape (`EbayItemResult`).

### Running locally

```bash
npm install
npm run start:dev   # compile + run once with local input
```

Provide input via `storage/key_value_stores/default/INPUT.json`, or set it through the Apify CLI / Apify Console when running on the platform.

#### Scripts

| Command | Purpose |
|---|---|
| `npm run build` | Compile TypeScript to `dist/` |
| `npm run start` | Build, then run the compiled Actor |
| `npm run start:dev` | Compile and run in one step (for local iteration) |

### Deploying to Apify

```bash
apify login
apify push
```

The Actor's platform metadata lives in [`.actor/`](.actor) (`actor.json`, `input_schema.json`, `output_schema.json`, `dataset_schema.json`, `Dockerfile`).

### Reporting bugs / requesting features

Please use the issue templates:

- [Report a bug](.github/ISSUE_TEMPLATE/bug_report.md)
- [Request a feature](.github/ISSUE_TEMPLATE/feature_request.md)

### License

Licensed under [CC BY 4.0](LICENSE) — free to use, modify, and redistribute, including commercially, as long as you credit **Alejandro Marín González**.

# Actor input Schema

## `url` (type: `string`):

Full URL of the eBay item page, e.g. https://www.ebay.com/itm/286949138543

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

eBay blocks Apify's shared datacenter proxy IPs. Select the RESIDENTIAL proxy group (requires that add-on on your Apify plan) for reliable results. By default the actor forces a US exit IP (countryCode: US) so prices are always returned in USD instead of a localized currency; override countryCode here if you need a different country.

## Actor input object example

```json
{
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `item` (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 = {
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("amaringonz/apify-ebay-item-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 = { "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    } }

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

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/7nD0tdznpdKWxqp9x/builds/bjmbOH0ojXgZz2JFG/openapi.json
