# Resale Arbitrage Monitor (`sleek_waveform/resale-arbitrage-monitor`) Actor

Find resale arbitrage opportunities by comparing eBay active listing prices with recently sold prices. Identifies underpriced items with profit potential.

- **URL**: https://apify.com/sleek\_waveform/resale-arbitrage-monitor.md
- **Developed by:** [Daniel Dimitrov](https://apify.com/sleek_waveform) (community)
- **Categories:** E-commerce
- **Stats:** 3 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $8.00 / 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/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

## Resale Arbitrage Monitor

Find profitable resale opportunities by scraping eBay active listings and comparing them against recently sold prices. Get margin calculations, price analytics, and underpriced item alerts — all from publicly visible eBay search results.

### What does Resale Arbitrage Monitor do?

Resale Arbitrage Monitor enables you to get more actionable pricing data from [eBay](https://www.ebay.com/) than the official API — with built-in profit analysis.

Resale Arbitrage Monitor can scrape:

- Active eBay listing prices (buy-it-now and auction) for any product keyword
- Recently sold/completed eBay listing prices to establish real market value
- Profit margin calculations with estimated profit per item
- Shipping costs, item condition, and listing URLs from eBay search results

### Why scrape eBay?

eBay has over 130 million active buyers worldwide and is the largest marketplace for resale, collectibles, and secondhand goods. eBay sold listing data reveals real market prices that no other source provides.

Here are just some of the ways you could use that data:

- Find underpriced eBay inventory to flip for profit without hours of manual searching
- Spot deals on vintage sneakers, trading cards, and collectibles before other resellers
- Validate product margins with real eBay sold-price data before committing to inventory
- Analyze eBay price gaps and supply/demand dynamics across product niches
- Schedule daily eBay scans on trending keywords to catch arbitrage opportunities early

If you would like more inspiration, check out our [industry pages](https://apify.com/industries).

### How to scrape eBay

1. Click on Try for free.
2. Enter the product keywords you want to search on eBay (e.g., `vintage nike shoes`, `pokemon cards holographic`).
3. Click on Run.
4. When Resale Arbitrage Monitor has finished, preview or download your data from the Dataset tab.

### How much will it cost to scrape eBay?

Apify gives you $5 free usage credits every month on the [Apify Free plan](https://apify.com/pricing). You can get roughly 2,500 eBay arbitrage results per month from Resale Arbitrage Monitor for that — the actor scrapes 2 pages per keyword and uses only 256 MB memory.

But if you need more, grab an Apify subscription. We recommend our [$49/month Personal plan](https://apify.com/pricing) — you can get up to 25,000 eBay arbitrage results every month!

Or get 250,000+ eBay results for $499 with the [Team plan](https://apify.com/pricing)!

### Input parameters

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `keywords` | string[] | *(required)* | Product keywords to search on eBay (e.g., `["vintage nike shoes", "pokemon cards"]`) |
| `minPriceUsd` | number | 5 | Minimum eBay listing price filter in USD |
| `maxPriceUsd` | number | 5000 | Maximum eBay listing price filter in USD |
| `condition` | string | `"any"` | Item condition: `"new"`, `"used"`, or `"any"` |
| `minMarginPercent` | number | 20 | Only report opportunities with at least this profit margin % |
| `maxResults` | integer | 50 | Maximum arbitrage results to return per keyword |
| `category` | string | — | Optional eBay category ID to narrow search results |

### Output / Results

Each result is an eBay arbitrage opportunity with full price analytics:

```json
{
  "keyword": "vintage nike shoes",
  "activeTitle": "Nike Air Max 90 Vintage 2003 Size 10 OG Infrared",
  "activePrice": 45.00,
  "activeShipping": 8.99,
  "activeTotalCost": 53.99,
  "avgSoldPrice": 89.50,
  "medianSoldPrice": 85.00,
  "marginPercent": 57.44,
  "estimatedProfit": 31.01,
  "activeUrl": "https://www.ebay.com/itm/123456789",
  "numSold": 7,
  "soldPriceRange": {
    "low": 62.00,
    "high": 135.00
  }
}
````

| Field | Type | Description |
|-------|------|-------------|
| `keyword` | string | The search keyword this opportunity was found for |
| `activeTitle` | string | eBay listing title of the underpriced active item |
| `activePrice` | number | Current buy-it-now price of the active listing (USD) |
| `activeShipping` | number | Shipping cost for the active listing (0 if free shipping) |
| `activeTotalCost` | number | Total acquisition cost including shipping |
| `avgSoldPrice` | number | Average price of recently completed eBay sales |
| `medianSoldPrice` | number | Median sold price — less skewed by outliers than average |
| `marginPercent` | number | Estimated profit margin as a percentage after acquisition |
| `estimatedProfit` | number | Estimated profit in USD (avgSoldPrice minus activeTotalCost) |
| `activeUrl` | string | Direct link to the eBay listing |
| `numSold` | integer | Number of recently sold eBay listings used to calculate averages |
| `soldPriceRange` | object | Low and high sold prices from completed listings |

### Webhook Integration

Pass an optional `webhookUrl` in the input to receive a POST notification when the run finishes:

```json
{
  "webhookUrl": "https://your-server.com/webhook"
}
```

**Payload sent by Apify:**

```json
{
  "eventType": "ACTOR.RUN.SUCCEEDED",
  "eventData": { "actorId": "...", "actorRunId": "..." },
  "resource": { "id": "...", "status": "SUCCEEDED", "defaultDatasetId": "..." }
}
```

The webhook fires on `SUCCEEDED`, `FAILED`, `TIMED_OUT`, and `ABORTED` events.
Use it to trigger downstream pipelines, Zapier, Make.com, or any HTTP endpoint.

### FAQ

**How often should I run this actor?**
Daily runs on your target keywords will catch the best deals before other resellers. eBay inventory turns over quickly — especially for trending items like sneakers, trading cards, and vintage electronics.

**Why does margin shrink after I buy?**
eBay charges ~13% final value fee on the sale price. Factor that in: a 20% margin before fees becomes ~7% net. Set `minMarginPercent` to at least 30% for practical profitability.

**Can I export results to a spreadsheet?**
Yes — click **Export** in the Apify Console dataset view and choose CSV or Excel format. You can also connect directly to Google Sheets using the Apify Google Sheets integration.

### Tips for scraping eBay

- Start with broad keywords like `"pokemon cards"` — they surface more eBay arbitrage opportunities than hyper-specific queries.
- Set `minMarginPercent` to 30+ for safer flips — a 20% margin can evaporate after eBay fees (~13%) and shipping costs.
- Schedule daily runs on trending eBay product keywords to catch deals before other resellers.
- Use the `condition` filter to separate new vs used eBay markets — arbitrage dynamics differ significantly between them.

### Is it legal to scrape eBay?

Note that personal data is protected by GDPR in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers. This actor scrapes only publicly visible eBay search results that anyone can access in a browser. No API key, login, or authentication is required, and no private seller data is collected. We also recommend that you read our blog post: [is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

# Actor input Schema

## `keywords` (type: `array`):

Products to search for (e.g., \["vintage nike shoes", "pokemon cards"]).

## `minPriceUsd` (type: `number`):

Minimum listing price filter.

## `maxPriceUsd` (type: `number`):

Maximum listing price filter.

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

Filter by item condition.

## `minMarginPercent` (type: `number`):

Only report opportunities with at least this profit margin.

## `maxResults` (type: `integer`):

Maximum number of arbitrage results to report per keyword.

## `category` (type: `string`):

Optional eBay category ID to narrow search results (e.g. 15032 for Sneakers).

## `webhookUrl` (type: `string`):

Optional URL to receive a POST notification when the run completes. The payload includes actorRunId, datasetId, status, and a direct link to results.

## Actor input object example

```json
{
  "keywords": [
    "vintage nike shoes"
  ],
  "minPriceUsd": 5,
  "maxPriceUsd": 5000,
  "condition": "any",
  "minMarginPercent": 20,
  "maxResults": 50
}
```

# Actor output Schema

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

URL to the dataset containing all found arbitrage opportunities with keyword, active price, shipping, sold price, margin, and profit details.

## `datasetId` (type: `string`):

The ID of the default dataset containing the results.

## `keyValueStore` (type: `string`):

URL to the key-value store containing per-keyword scan summaries (SUMMARY\_\* keys).

# 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 = {
    "keywords": [
        "vintage nike shoes"
    ],
    "minMarginPercent": 20,
    "maxResults": 50,
    "category": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("sleek_waveform/resale-arbitrage-monitor").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 = {
    "keywords": ["vintage nike shoes"],
    "minMarginPercent": 20,
    "maxResults": 50,
    "category": "",
}

# Run the Actor and wait for it to finish
run = client.actor("sleek_waveform/resale-arbitrage-monitor").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 '{
  "keywords": [
    "vintage nike shoes"
  ],
  "minMarginPercent": 20,
  "maxResults": 50,
  "category": ""
}' |
apify call sleek_waveform/resale-arbitrage-monitor --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Resale Arbitrage Monitor",
        "description": "Find resale arbitrage opportunities by comparing eBay active listing prices with recently sold prices. Identifies underpriced items with profit potential.",
        "version": "1.0",
        "x-build-id": "VRTxSg7cCGI4fCXQD"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/sleek_waveform~resale-arbitrage-monitor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-sleek_waveform-resale-arbitrage-monitor",
                "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/sleek_waveform~resale-arbitrage-monitor/runs": {
            "post": {
                "operationId": "runs-sync-sleek_waveform-resale-arbitrage-monitor",
                "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/sleek_waveform~resale-arbitrage-monitor/run-sync": {
            "post": {
                "operationId": "run-sync-sleek_waveform-resale-arbitrage-monitor",
                "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": [
                    "keywords"
                ],
                "properties": {
                    "keywords": {
                        "title": "Keywords",
                        "type": "array",
                        "description": "Products to search for (e.g., [\"vintage nike shoes\", \"pokemon cards\"]).",
                        "items": {
                            "type": "string"
                        }
                    },
                    "minPriceUsd": {
                        "title": "Min Price (USD)",
                        "minimum": 0,
                        "type": "number",
                        "description": "Minimum listing price filter.",
                        "default": 5
                    },
                    "maxPriceUsd": {
                        "title": "Max Price (USD)",
                        "minimum": 0,
                        "type": "number",
                        "description": "Maximum listing price filter.",
                        "default": 5000
                    },
                    "condition": {
                        "title": "Condition",
                        "enum": [
                            "any",
                            "new",
                            "used"
                        ],
                        "type": "string",
                        "description": "Filter by item condition.",
                        "default": "any"
                    },
                    "minMarginPercent": {
                        "title": "Min Margin %",
                        "minimum": 0,
                        "type": "number",
                        "description": "Only report opportunities with at least this profit margin.",
                        "default": 20
                    },
                    "maxResults": {
                        "title": "Max Results per Keyword",
                        "minimum": 1,
                        "maximum": 500,
                        "type": "integer",
                        "description": "Maximum number of arbitrage results to report per keyword.",
                        "default": 50
                    },
                    "category": {
                        "title": "eBay Category",
                        "type": "string",
                        "description": "Optional eBay category ID to narrow search results (e.g. 15032 for Sneakers)."
                    },
                    "webhookUrl": {
                        "title": "Webhook URL",
                        "type": "string",
                        "description": "Optional URL to receive a POST notification when the run completes. The payload includes actorRunId, datasetId, status, and a direct link to results."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
