# eBay Listing Scraper (`moving_beacon-owner1/ebay-listing-scraper`) Actor

Collects eBay listings by keyword, listing type, sort order, and country, providing titles, prices, conditions, bids, shipping, locations, seller details, sold counts, watchers, and listing URLs.

- **URL**: https://apify.com/moving\_beacon-owner1/ebay-listing-scraper.md
- **Developed by:** [Jamshaid Arif](https://apify.com/moving_beacon-owner1) (community)
- **Stats:** 2 total users, 1 monthly users, 18.2% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.99 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

Collects eBay search results and returns one flat record per listing — title, price and currency, item condition, bid count and time left for auctions, shipping cost, item location, sold and watcher counts, the seller's name and feedback score, and the item URL. Search any keyword, restrict to auctions, Buy It Now or already-sold listings, choose the sort order, and pick which country's eBay site to search.

### Input

| Field | Default | Description |
| --- | --- | --- |
| `search` | `laptop` | What to search for, e.g. `vintage watch`, `iphone 15 pro`, `lego star wars`. |
| `listing_type` | `all` | `all`, `auction` (live auctions only), `buy_it_now` (fixed price only) or `sold` (sold and completed listings). |
| `sort` | `best_match` | `best_match`, `newly_listed`, `ending_soonest`, `price_low` or `price_high`. |
| `domain` | `ebay.com` | Which country's eBay site to search: `ebay.com`, `ebay.co.uk`, `ebay.de`, `ebay.com.au`, `ebay.ca`, `ebay.fr`, `ebay.it`, `ebay.es`. Prices come back in that site's currency. |
| `limit` | `60` | Maximum listings to return (1–2000). |
| `proxyConfiguration` | Optional | Enable a US-based proxy for the most reliable results. |

### Output

Each result is one eBay listing (auction fields such as `bids` and `time_left` are `null` for fixed-price items, and `sold_count` / `watchers` appear only when eBay shows them):

```json
{
    "item_id": "157647650978",
    "title": "Lenovo P14s Gen 2 ThinkPad i7 11th Gen Quad Core 24GB RAM 512GB SSD NVIDIA T500",
    "condition": "Pre-Owned",
    "subtitle": "Pre-Owned · Lenovo · 24 GB",
    "price": 382.02,
    "price_text": "$382.02",
    "currency": "USD",
    "bids": null,
    "time_left": null,
    "buy_it_now": true,
    "best_offer": true,
    "shipping_text": "+$123.70 shipping estimate",
    "shipping_cost": 123.7,
    "free_shipping": false,
    "item_location": "United Kingdom",
    "sold_count": 93,
    "watchers": null,
    "seller_name": "agmworld",
    "seller_feedback": "100% positive (4K)",
    "image_url": "https://i.ebayimg.com/images/g/PbgAAeSwgsVpe17x/s-l500.webp",
    "item_url": "https://www.ebay.com/itm/157647650978",
    "raw": { ... }
}
```

### Notes

- Runs with empty input (returns the default keyword search on the US site).
- Enable a US-based proxy for the most reliable results, especially for larger runs.
- Intended for research and personal use; please respect eBay's terms of service.

# Actor input Schema

## `search` (type: `string`):

What to search for on eBay, e.g. 'vintage watch', 'iphone 15 pro', 'lego star wars'.

## `listing_type` (type: `string`):

Which kind of listings to return: everything, live auctions only, fixed-price Buy It Now only, or already sold and completed listings.

## `sort` (type: `string`):

How eBay should order the results before they are collected.

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

Which country's eBay site to search. Prices come back in that site's currency.

## `limit` (type: `integer`):

Maximum number of listings to return. Results are paged 60 per request.

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

Proxy settings for the run. Enable a US-based proxy for the most reliable results, especially for sites that limit non-US or datacenter traffic. Optional — leave off to run directly.

## Actor input object example

```json
{
  "search": "vintage watch",
  "listing_type": "auction",
  "sort": "ending_soonest",
  "domain": "ebay.com",
  "limit": 60,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# 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 = {
    "search": "vintage watch",
    "listing_type": "auction",
    "sort": "ending_soonest",
    "domain": "ebay.com",
    "limit": 60,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("moving_beacon-owner1/ebay-listing-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 = {
    "search": "vintage watch",
    "listing_type": "auction",
    "sort": "ending_soonest",
    "domain": "ebay.com",
    "limit": 60,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("moving_beacon-owner1/ebay-listing-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 '{
  "search": "vintage watch",
  "listing_type": "auction",
  "sort": "ending_soonest",
  "domain": "ebay.com",
  "limit": 60,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call moving_beacon-owner1/ebay-listing-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moving_beacon-owner1/ebay-listing-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/lwVFO0BS4xWcOdsKR/builds/hPlLzcVfsbjuv8D9u/openapi.json
