# eBay Scraper + AI Flip Finder & Market Analysis (`buseta/ebay-scraper`) Actor

Scrape eBay listings with AI-powered flip analysis. Get product prices, seller feedback, shipping costs, and condition. AI scores each listing for resale potential with estimated market value and profit potential. AI market report identifies best deals and flip opportunities.

- **URL**: https://apify.com/buseta/ebay-scraper.md
- **Developed by:** [buseta](https://apify.com/buseta) (community)
- **Categories:** E-commerce, Automation, AI
- **Stats:** 15 total users, 2 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.00 / 1,000 products

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Scraper + AI Flip Finder & Market Analysis

Scrape eBay listings with **AI-powered resale analysis**. Extract prices, seller feedback, shipping, and condition — then let AI score each listing for flip potential, estimate market value, and flag risks before you buy.

### Who Is This For?

- **Resellers & arbitrage hunters** — Find underpriced listings with AI flip scores and estimated market values
- **E-commerce businesses** — Monitor competitor pricing and sourcing opportunities on eBay
- **Buyers** — Compare prices across hundreds of listings and get AI verdict on which are real deals
- **Market researchers** — Track pricing trends, condition distribution, and seller quality at scale

### Features

- **Full product data** — name, price, condition, shipping cost, availability, seller feedback, location
- **2 modes** — search by keyword or scrape specific product URLs
- **Condition filter** — new / used / refurbished
- **Multiple sort options** — best match, lowest price, highest price, newly listed, ending soonest
- **AI Flip Finder** — per-listing AI score (0-100) with estimated market value, profit potential, and risk flags
- **AI Market Report** — one-click analysis of the whole dataset: best deals, pricing insights, flip opportunities
- **CSV-friendly output** — ready for Excel, Google Sheets, or your CRM

### Use Cases

#### 1. Find Underpriced Items to Flip

```json
{
    "scrape_type": "search",
    "search": "vintage Nintendo GameBoy",
    "sort_by": "price_lowest",
    "max_products": 50,
    "ai_flip_analysis": true,
    "ai_market_report": true
}
````

Each listing gets a flip score with AI reasoning:

```json
{
    "ai_flip_score": 85,
    "ai_estimated_market_value": "$120-150",
    "ai_profit_potential": "high",
    "ai_flip_verdict": "Listed at $65 with original box and working condition — comparable sold listings average $135. Strong flip candidate.",
    "ai_risks": [
        "Seller feedback only 94% — verify return policy",
        "Photos don't show screen condition clearly",
        "Shipping cost adds $12 to effective price"
    ]
}
```

#### 2. Price Comparison for Buyers

```json
{
    "scrape_type": "search",
    "search": "iPhone 15 Pro 256GB",
    "condition": "used",
    "max_products": 30,
    "ai_market_report": true
}
```

Returns 30 used iPhones plus an AI market summary: best deals, average price, overpriced listings to avoid.

#### 3. Sourcing Research for Resellers

```json
{
    "scrape_type": "search",
    "search": "Air Jordan 1 size 10",
    "sort_by": "ending_soonest",
    "max_products": 100,
    "ai_flip_analysis": true
}
```

Scores 100 listings ending soon with flip potential — target the auctions with best score-to-price ratio.

#### 4. Competitor Price Monitoring

```json
{
    "scrape_type": "search",
    "search": "mechanical keyboard custom",
    "max_products": 100,
    "ai_market_report": true
}
```

Track how competitors price a category and identify pricing gaps.

#### 5. Scrape Specific Listings

```json
{
    "scrape_type": "product",
    "product_urls": [
        "https://www.ebay.com/itm/174076604918",
        "https://www.ebay.com/itm/123456789012"
    ],
    "ai_flip_analysis": true
}
```

### AI Flip Analysis

When `ai_flip_analysis` is enabled, every listing is analyzed by Claude (via OpenRouter) and enriched with:

| Field | Description |
|-------|-------------|
| `ai_flip_score` | Resale potential 0-100 |
| `ai_estimated_market_value` | AI's estimate of typical resale price |
| `ai_profit_potential` | low / medium / high |
| `ai_flip_verdict` | 2-3 sentence reasoning |
| `ai_risks` | Up to 3 risk flags to check before buying |

### AI Market Report

When `ai_market_report` is enabled, the full dataset is analyzed once and you get a market-wide summary pushed to the dataset + saved as `AI_MARKET_ANALYSIS` in the Key-Value Store:

- **Market summary** — pricing landscape, condition mix, seller quality
- **Best deals** — specific listings to flag as high-value
- **Pricing insights** — average, median, outliers
- **Flip opportunities** — categories or conditions with biggest spreads

### Pricing

| Event | Price |
|-------|-------|
| Product scraped | $6.00 / 1,000 |
| AI Flip Analysis | $4.00 / 1,000 |
| AI Market Report | $1.00 / 1,000 analyzed |
| Platform usage | Free |

#### Typical Run Costs

| Use Case | Products | AI Flip | AI Report | Total |
|----------|----------|---------|-----------|-------|
| Quick price check (20 listings) | $0.12 | — | — | **$0.12** |
| Flip research (50 listings + flip scoring) | $0.30 | $0.20 | — | **$0.50** |
| Market analysis (100 listings + report) | $0.60 | — | $0.10 | **$0.70** |
| Full pipeline (100 listings + flip + report) | $0.60 | $0.40 | $0.10 | **$1.10** |
| Deep research (500 listings + flip + report) | $3.00 | $2.00 | $0.50 | **$5.50** |

### Output Fields

Each listing in the dataset includes:

| Field | Description |
|-------|-------------|
| `name` | Product title |
| `item_id` | eBay item ID |
| `item_url` | Direct listing URL |
| `price.amount` | Numeric price |
| `price.currency` | Currency code (USD, etc.) |
| `price.condition` | New / Used / Refurbished |
| `price.shipping_cost` | Shipping cost (0 if free) |
| `price.availability` | InStock / OutOfStock |
| `description_snippet` | First 300 chars of description |
| `seller.name` | Seller username |
| `seller.feedback_percent` | Positive feedback % |
| `location` | Item location |
| `ai_flip_score` | AI resale score (if enabled) |
| `ai_estimated_market_value` | AI's market value estimate |
| `ai_profit_potential` | low / medium / high |
| `ai_flip_verdict` | AI reasoning |
| `ai_risks` | Array of risk flags |

### Tips

- **Start small** — Test with `max_products: 20` to verify data quality before running larger scrapes
- **Use `ending_soonest`** for flip hunting — auctions closing soon often have the best deals
- **Combine flip + report** — Flip scoring tells you which individual listings are good; the market report shows category-wide patterns
- **Check shipping costs** — A "cheap" listing with $30 shipping may not be the deal it appears
- **Filter by condition** — Use `condition: "used"` or `"refurbished"` for better flip margins vs new

### Keywords

eBay scraper, eBay product scraper, eBay price scraper, eBay listing scraper, eBay resale tool, eBay flip finder, eBay arbitrage, eBay price comparison, eBay seller data, eBay market analysis, eBay AI analysis, eBay profit calculator, eBay sourcing tool

# Actor input Schema

## `scrape_type` (type: `string`):

Type of scraping to perform: Search or Product List

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

(if Search): Keyword to search on eBay

## `product_urls` (type: `array`):

(if Product List): List of eBay product URLs to scrape

## `sort_by` (type: `string`):

Products will be sorted by this option (search mode only)

## `max_products` (type: `integer`):

Maximum number of products to scrape

## `condition` (type: `string`):

Filter by item condition (search mode only)

## `proxy_config` (type: `object`):

Select proxies to be used for scraping

## Actor input object example

```json
{
  "scrape_type": "search",
  "search": "wireless headphones",
  "product_urls": [
    "https://www.ebay.com/itm/174076604918"
  ],
  "sort_by": "best_match",
  "max_products": 5,
  "condition": "",
  "proxy_config": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Product data including prices, seller info, and shipping costs from eBay.

# 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 = {
    "scrape_type": "search",
    "search": "wireless headphones",
    "product_urls": [
        "https://www.ebay.com/itm/174076604918"
    ],
    "max_products": 5,
    "proxy_config": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("buseta/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 = {
    "scrape_type": "search",
    "search": "wireless headphones",
    "product_urls": ["https://www.ebay.com/itm/174076604918"],
    "max_products": 5,
    "proxy_config": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("buseta/ebay-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 '{
  "scrape_type": "search",
  "search": "wireless headphones",
  "product_urls": [
    "https://www.ebay.com/itm/174076604918"
  ],
  "max_products": 5,
  "proxy_config": {
    "useApifyProxy": false
  }
}' |
apify call buseta/ebay-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "eBay Scraper + AI Flip Finder & Market Analysis",
        "description": "Scrape eBay listings with AI-powered flip analysis. Get product prices, seller feedback, shipping costs, and condition. AI scores each listing for resale potential with estimated market value and profit potential. AI market report identifies best deals and flip opportunities.",
        "version": "1.0",
        "x-build-id": "msOvnG20RDVCLUkp4"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/buseta~ebay-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-buseta-ebay-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/buseta~ebay-scraper/runs": {
            "post": {
                "operationId": "runs-sync-buseta-ebay-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/buseta~ebay-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-buseta-ebay-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "scrape_type"
                ],
                "properties": {
                    "scrape_type": {
                        "title": "Scraping Type",
                        "enum": [
                            "search",
                            "product"
                        ],
                        "type": "string",
                        "description": "Type of scraping to perform: Search or Product List"
                    },
                    "search": {
                        "title": "Search Keyword",
                        "type": "string",
                        "description": "(if Search): Keyword to search on eBay"
                    },
                    "product_urls": {
                        "title": "Product URLs",
                        "type": "array",
                        "description": "(if Product List): List of eBay product URLs to scrape",
                        "default": [
                            "https://www.ebay.com/itm/174076604918"
                        ]
                    },
                    "sort_by": {
                        "title": "Sort Products By",
                        "enum": [
                            "best_match",
                            "price_lowest",
                            "price_highest",
                            "newly_listed",
                            "ending_soonest"
                        ],
                        "type": "string",
                        "description": "Products will be sorted by this option (search mode only)",
                        "default": "best_match"
                    },
                    "max_products": {
                        "title": "Maximum Products",
                        "type": "integer",
                        "description": "Maximum number of products to scrape",
                        "default": 50
                    },
                    "condition": {
                        "title": "Item Condition",
                        "enum": [
                            "",
                            "new",
                            "used",
                            "refurbished"
                        ],
                        "type": "string",
                        "description": "Filter by item condition (search mode only)",
                        "default": ""
                    },
                    "proxy_config": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Select proxies to be used for scraping"
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
