# Ebay Scraper (`getdataforme/ebay-scraper`) Actor

EBay scraper automatically extracts product listings, prices, seller information, auction data, and buyer feedback from eBay.com. It helps track pricing trends, monitor competitor listings, analyze sales patterns, and gather market intelligence for sellers and businesses operating on the platform.

- **URL**: https://apify.com/getdataforme/ebay-scraper.md
- **Developed by:** [GetDataForMe](https://apify.com/getdataforme) (community)
- **Categories:** E-commerce, Automation
- **Features:** Full permissions
- **Stats:** 60 total users, 0 monthly users, 100.0% 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 Documentation

### Overview

The **EbayScraper** is an Apify actor designed to extract detailed product information from Ebay.com. By providing a list of product URLs as input, the scraper retrieves essential details, including product name, price, image, condition, availability, and more.

***

### Input Configuration

The input for the EbayScraper should be a JSON object containing one key:

- `urls`: An array of eBay product URLs to scrape.

#### Input Example

```json
{
    "urls": [
        "https://www.ebay.com/itm/373391761425?_trkparms=amclksrc%3DITM%26aid%3D1110006%26algo%3DHOMESPLICE.SIM%26ao%3D1%26asc%3D277717%2C278304%2C277738%26meid%3D6e72edf34af5498c8b628c7b8f66b4d2%26pid%3D101196%26rk%3D1%26rkt%3D12%26sd%3D312936023366%26itm%3D373391761425%26pmt%3D1%26noa%3D0%26pg%3D2332490%26algv%3DSimplAMLv5PairwiseWebWithBBEV2bAndUBSourceDemotionWithUltimatelyBoughtOfCoviewV1%26brand%3DTrendsMax&_trksid=p2332490.c101196.m2219&itmprp=cksum%3A3733917614256e72edf34af5498c8b628c7b8f66b4d2%7Cenc%3AAQAJAAABQJh9BGsXvPG03pKg78mUhLLErCJ%252BXOEYDkzTGJ85B4rSRXG6DGHfiL9UFpXuaOk%252FmuXW6x51j8YJMfy7doeYuyk9WZaRPkl%252FLlHN84X3%252FeYgVG3iucUQjkVp9Lf5uEN8TkYtrbtS3rnCHV3e5PlJJrOqlfSlPOHTSpP1kO%252BGI1OwfPWwUgFiEElVi5PESVCm2MdeXGA3lA8k85tAT4HDQhuW8TpfJiay2EwkFpQY4ZjHUFu6VNMitYSFoGAKfNM94TX%252Fs3WgD%252BugKyh3dTwbtfKr%252FAejF0IPHYryWAGt8b6d4aaAcaNItM0lZwlGtyF1ADvZn23H%252FLhW9UP47gppJSW75lNs86idw%252F24UY56qlTep7YXLzO%252FUNmyg52hLVuqsMdh4fFnHM1tn4T%252BbRi7%252BdVX9qUOImSwlqk2fJ6bIl7y%7Campid%3APL_CLK%7Cclp%3A2332490&itmmeta=01JFH7Y2D4N72H828QTZPMWJCE"
    ]
}
```

***

### Output

The scraper returns a JSON object containing the following fields:

- `model`: The model identifier for the product, if available.
- `brand`: The brand name of the product.
- `name`: The product name.
- `url`: The product URL provided in the input.
- `image`: The URL of the product image.
- `itemCondition`: The condition of the product (e.g., New, Used).
- `availability`: The availability status of the product (e.g., In Stock).
- `priceCurrency`: The currency of the product price.
- `price`: The price of the product.
- `shippingDetails`: An object containing shipping cost and currency.
- `rating`: The average user rating of the product (if available).
- `ratingCount`: The number of user ratings (if available).
- `reviews_data`: An array of reviews (if available).

#### Output Example

```json
{
    "model": "N/A",
    "brand": "TrendsMax",
    "name": "Stainless Steel Cuban Curb Chain Silver 16\"-30\" Men Choker Necklace 3/5/7/9/11mm",
    "url": "https://www.ebay.com/itm/373391761425?_trkparms=amclksrc%3DITM%26aid%3D1110006%26algo%3DHOMESPLICE.SIM%26ao%3D1%26asc%3D277717%2C278304%2C277738%26meid%3D6e72edf34af5498c8b628c7b8f66b4d2%26pid%3D101196%26rk%3D1%26rkt%3D12%26sd%3D312936023366%26itm%3D373391761425%26pmt%3D1%26noa%3D0%26pg%3D2332490%26algv%3DSimplAMLv5PairwiseWebWithBBEV2bAndUBSourceDemotionWithUltimatelyBoughtOfCoviewV1%26brand%3DTrendsMax&_trksid=p2332490.c101196.m2219&itmprp=cksum%3A3733917614256e72edf34af5498c8b628c7b8f66b4d2%7Cenc%3AAQAJAAABQJh9BGsXvPG03pKg78mUhLLErCJ%252BXOEYDkzTGJ85B4rSRXG6DGHfiL9UFpXuaOk%252FmuXW6x51j8YJMfy7doeYuyk9WZaRPkl%252FLlHN84X3%252FeYgVG3iucUQjkVp9Lf5uEN8TkYtrbtS3rnCHV3e5PlJJrOqlfSlPOHTSpP1kO%252BGI1OwfPWwUgFiEElVi5PESVCm2MdeXGA3lA8k85tAT4HDQhuW8TpfJiay2EwkFpQY4ZjHUFu6VNMitYSFoGAKfNM94TX%252Fs3WgD%252BugKyh3dTwbtfKr%252FAejF0IPHYryWAGt8b6d4aaAcaNItM0lZwlGtyF1ADvZn23H%252FLhW9UP47gppJSW75lNs86idw%252F24UY56qlTep7YXLzO%252FUNmyg52hLVuqsMdh4fFnHM1tn4T%252BbRi7%252BdVX9qUOImSwlqk2fJ6bIl7y%7Campid%3APL_CLK%7Cclp%3A2332490&itmmeta=01JFH7Y2D4N72H828QTZPMWJCE",
    "image": "https://i.ebayimg.com/images/g/yzYAAOSwibJfNngl/s-l1600.jpg",
    "itemCondition": "https://schema.org/NewCondition",
    "availability": "https://schema.org/InStock",
    "priceCurrency": "USD",
    "price": "5.99",
    "shippingDetails": {
        "@type": "MonetaryAmount",
        "value": "0.0",
        "currency": "USD"
    },
    "rating": null,
    "ratingCount": null,
    "reviews_data": []
}
```

***

### Usage Instructions

1. **Input Preparation**: Create a JSON file containing the `urls` array with the product URLs you want to scrape.
2. **Actor Execution**: Run the EbayScraper actor on the Apify platform, providing the input JSON file.
3. **Retrieve Results**: After the execution, download the output JSON containing the scraped data.

***

### Support

For custom outputs, simplified formats, or to report any issues, please contact:

- **Email**: <support@getdataforme.com>
- **Contact Form**: <https://getdataforme.com/contact/>

When reaching out, please include a clear subject line and detailed description of your request or issue.

***

Thank you for using the EbayScraper!

# Actor input Schema

## `urls` (type: `array`):

A list of URLs of the web pages you want to scrape data from.

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

Specifies proxy servers that will be used by the scraper in order to hide its origin.

## Actor input object example

```json
{
  "urls": [
    "https://www.ebay.com/itm/312936023366?itmmeta=01JENJXPTHFGEY6S422TS2F2S0&hash=item48dc70c546:g:M5IAAOSwcQ9gHSb1&itmprp=enc%3AAQAJAAAA4Mxmj%2BiGvOveHXEBClPb29hzQooHIKQJxmcnLp8QvLzfVcf%2BPH2ZrTslFPfN3hdn%2FyTSCiLVmwDzpEwwRYCWHXcGNYBJtbv%2FuNuYshB0Q61FRpV1K9LXfjmfKWYmE53ykvwxFSMk%2F5kYJDeIUonm%2F1PFT0u7Kn6WyKSD3Mt1t%2Byz2wKmL1L2kZmEebPChxD9SHeT8UsuKSoCmPDFbE20Dy1xS0Ro9z9DLtDIij9MqmZOGa2K4F6AGuWkBwo%2F%2BCIuYs0QMv2FbIm8Y9rOHrXfOYko8Q6W2HAAf70bOc31NCji%7Ctkp%3ABFBMru32svVk&var=612058826655"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "urls": [
        "https://www.ebay.com/itm/312936023366?itmmeta=01JENJXPTHFGEY6S422TS2F2S0&hash=item48dc70c546:g:M5IAAOSwcQ9gHSb1&itmprp=enc%3AAQAJAAAA4Mxmj%2BiGvOveHXEBClPb29hzQooHIKQJxmcnLp8QvLzfVcf%2BPH2ZrTslFPfN3hdn%2FyTSCiLVmwDzpEwwRYCWHXcGNYBJtbv%2FuNuYshB0Q61FRpV1K9LXfjmfKWYmE53ykvwxFSMk%2F5kYJDeIUonm%2F1PFT0u7Kn6WyKSD3Mt1t%2Byz2wKmL1L2kZmEebPChxD9SHeT8UsuKSoCmPDFbE20Dy1xS0Ro9z9DLtDIij9MqmZOGa2K4F6AGuWkBwo%2F%2BCIuYs0QMv2FbIm8Y9rOHrXfOYko8Q6W2HAAf70bOc31NCji%7Ctkp%3ABFBMru32svVk&var=612058826655"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("getdataforme/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 = {
    "urls": ["https://www.ebay.com/itm/312936023366?itmmeta=01JENJXPTHFGEY6S422TS2F2S0&hash=item48dc70c546:g:M5IAAOSwcQ9gHSb1&itmprp=enc%3AAQAJAAAA4Mxmj%2BiGvOveHXEBClPb29hzQooHIKQJxmcnLp8QvLzfVcf%2BPH2ZrTslFPfN3hdn%2FyTSCiLVmwDzpEwwRYCWHXcGNYBJtbv%2FuNuYshB0Q61FRpV1K9LXfjmfKWYmE53ykvwxFSMk%2F5kYJDeIUonm%2F1PFT0u7Kn6WyKSD3Mt1t%2Byz2wKmL1L2kZmEebPChxD9SHeT8UsuKSoCmPDFbE20Dy1xS0Ro9z9DLtDIij9MqmZOGa2K4F6AGuWkBwo%2F%2BCIuYs0QMv2FbIm8Y9rOHrXfOYko8Q6W2HAAf70bOc31NCji%7Ctkp%3ABFBMru32svVk&var=612058826655"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("getdataforme/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 '{
  "urls": [
    "https://www.ebay.com/itm/312936023366?itmmeta=01JENJXPTHFGEY6S422TS2F2S0&hash=item48dc70c546:g:M5IAAOSwcQ9gHSb1&itmprp=enc%3AAQAJAAAA4Mxmj%2BiGvOveHXEBClPb29hzQooHIKQJxmcnLp8QvLzfVcf%2BPH2ZrTslFPfN3hdn%2FyTSCiLVmwDzpEwwRYCWHXcGNYBJtbv%2FuNuYshB0Q61FRpV1K9LXfjmfKWYmE53ykvwxFSMk%2F5kYJDeIUonm%2F1PFT0u7Kn6WyKSD3Mt1t%2Byz2wKmL1L2kZmEebPChxD9SHeT8UsuKSoCmPDFbE20Dy1xS0Ro9z9DLtDIij9MqmZOGa2K4F6AGuWkBwo%2F%2BCIuYs0QMv2FbIm8Y9rOHrXfOYko8Q6W2HAAf70bOc31NCji%7Ctkp%3ABFBMru32svVk&var=612058826655"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call getdataforme/ebay-scraper --silent --output-dataset

```

## MCP server setup

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