# Incremental Listing & Marketplace Monitor (`lead.gen.labs/incremental-listing-marketplace-monitor`) Actor

Detect new, changed, sold, removed, and relisted eBay listings.

- **URL**: https://apify.com/lead.gen.labs/incremental-listing-marketplace-monitor.md
- **Developed by:** [LeadGen Labs](https://apify.com/lead.gen.labs) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 88.9% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.50 / 1,000 successful listing checks

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?

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 Listing Monitor: New, Changed, Sold, Removed & Relisted Items

Monitor eBay search results, categories, seller inventory, and individual product listings. The Actor remembers each successful scan and produces structured alerts when listings appear, change price, sell, return to stock, disappear, or are relisted.

Use it for eBay price monitoring, new-listing alerts, competitor inventory tracking, collectible searches, used-car monitoring, real-estate listing research, seller catalog tracking, and marketplace automation through Apify API, schedules, webhooks, Make, Zapier, Google Sheets, or your own application.

### What does this eBay monitor do?

The Actor takes one or more eBay URLs and creates a baseline on the first run. Every later run with the same **History name** compares fresh listings with that baseline and returns the differences as machine-readable change events.

It detects:

- `NEW_LISTING`: a listing appeared for the first time.
- `PRICE_DECREASED` and `PRICE_INCREASED`: the price changed beyond your threshold.
- `LISTING_SOLD`: an available listing became sold or unavailable.
- `BACK_IN_STOCK`: a sold listing became available again.
- `LISTING_REMOVED`: a listing remained absent for the configured number of successful scans.
- `LISTING_RELISTED`: a new listing ID closely matches a removed item.
- Other field changes, including title, condition, seller, currency, and images.

### Quick start

1. Open the Actor input page.
2. Add an eBay search, category, seller, or item URL under **eBay URLs**.
3. Keep the recommended defaults for your first run.
4. Click **Start**. This run creates the baseline and reports each discovered item as `NEW_LISTING`.
5. Run it again manually or create a schedule. Later runs report what changed.

Example supported URLs:

```text
https://www.ebay.com/sch/i.html?_nkw=iphone+15
https://www.ebay.com/b/Laptops-Netbooks/175672/bn_1648276
https://www.ebay.com/sch/example-seller/m.html
https://www.ebay.com/itm/123456789012
```

For browse-category URLs, the Actor derives a stable keyword search from the category name. This avoids eBay's frequently blocked category-only route while preserving relevant marketplace coverage. Because eBay shuffles broad category feeds, category monitors keep bounded rolling history and report newly observed or changed listings without treating temporary absence as removal.

### Recommended settings

For most users:

| Setting | Recommended value | Why |
| --- | ---: | --- |
| Listings per URL | `200` | Covers a useful result set without excessive runtime. |
| Return changes only | Off for setup, on for alerts | Inspect snapshots first, then reduce recurring output. |
| Minimum price movement | `0%` | Reports every observed price change. |
| Scans before marking removed | `2` | Prevents one incomplete page from creating removal alerts. |
| Relisting confidence | `0.8` | Balances useful matches with false positives. |
| Minimum repeat overlap | `50%` | Protects history from incomplete or personalized results. |

Do not change the **History name** between runs of the same monitor. A new name creates a separate baseline.

### Input reference

| API field | Type | Default | Description |
| --- | --- | --- | --- |
| `sources` | array | Required | eBay search, category, seller, or item URLs. |
| `maxListingsPerSource` | integer | `200` | Maximum unique listings collected per source. |
| `onlyChanges` | boolean | `false` | Save only change events instead of snapshots and events. |
| `minimumPriceChangePercent` | number | `0` | Ignore price movements below this percentage. |
| `stateStoreName` | string | `incremental-listing-state` | Persistent comparison-history name. |
| `removalConfirmationRuns` | integer | `2` | Successful absent scans required before removal. |
| `detectRelistedItems` | boolean | `true` | Enable similarity-based relisting detection. |
| `relistingConfidenceThreshold` | number | `0.8` | Similarity required to classify a relisted item. |
| `minimumSourceOverlapPercent` | number | `50` | Reject suspiciously different repeat scans. |
| `maxPages` | integer | `5` | Maximum result pages scanned per source. |
| `maxRequestRetries` | integer | `2` | Direct request retries before browser session refresh. |
| `requestTimeoutSeconds` | integer | `40` | Timeout for each marketplace request. |

#### Stable source IDs for API users

Give each source an `externalId` when URLs may be reordered. The ID keeps that source attached to the correct historical state.

```json
{
  "sources": [
    {
      "url": "https://www.ebay.com/sch/i.html?_nkw=mirrorless+camera",
      "externalId": "mirrorless-cameras"
    },
    {
      "url": "https://www.ebay.com/sch/example-seller/m.html",
      "externalId": "competitor-inventory"
    }
  ],
  "onlyChanges": true,
  "minimumPriceChangePercent": 2,
  "stateStoreName": "camera-market-monitor"
}
```

Every `externalId` must be unique inside a run. When omitted, the Actor generates `source-1`, `source-2`, and so on; therefore, keep source order unchanged or provide explicit IDs.

### Run with the Apify API

Replace `YOUR_TOKEN` and the Actor name with your values:

```bash
curl -X POST \
  "https://api.apify.com/v2/acts/lead.gen.labs~incremental-listing-marketplace-monitor/runs?token=YOUR_TOKEN&waitForFinish=120" \
  -H "Content-Type: application/json" \
  -d '{
    "sources": [{
      "url": "https://www.ebay.com/sch/i.html?_nkw=gaming+laptop",
      "externalId": "gaming-laptops"
    }],
    "onlyChanges": true,
    "stateStoreName": "gaming-laptop-monitor"
  }'
```

Fetch dataset items after the run:

```bash
curl "https://api.apify.com/v2/datasets/DATASET_ID/items?clean=true&format=json"
```

Never place an Apify token in browser-side code or a public repository.

### Output data

The default dataset can contain three record types.

#### Listing snapshot

```json
{
  "recordType": "LISTING",
  "marketplace": "ebay",
  "listingId": "123456789012",
  "sourceId": "gaming-laptops",
  "url": "https://www.ebay.com/itm/123456789012",
  "title": "Gaming Laptop 16GB RAM",
  "price": 799.99,
  "currency": "USD",
  "status": "AVAILABLE",
  "condition": "Used",
  "imageUrls": ["https://i.ebayimg.com/.../s-l1600.jpg"],
  "observedAt": "2026-10-04T12:00:00Z"
}
```

#### Change event

```json
{
  "recordType": "CHANGE_EVENT",
  "eventType": "PRICE_DECREASED",
  "listingId": "123456789012",
  "sourceId": "gaming-laptops",
  "field": "price",
  "before": 849.99,
  "after": 799.99,
  "observedAt": "2026-10-04T12:00:00Z"
}
```

#### Source failure

```json
{
  "recordType": "SOURCE_FAILURE",
  "sourceId": "gaming-laptops",
  "url": "https://www.ebay.com/sch/i.html?_nkw=gaming+laptop",
  "error": "No trustworthy listings were extracted; state was not changed."
}
```

A source failure does not erase its last valid baseline and does not count toward removal confirmation.

### Automate alerts and recurring monitoring

Create an Apify schedule using the same input and History name. Common intervals are every 15 minutes for time-sensitive listings, hourly for price and stock alerts, or daily for catalog analysis. More frequent runs consume more resources and may capture more short-lived result changes.

For notifications, attach an Apify webhook to successful Actor runs and route `CHANGE_EVENT` records to Slack, email, a database, Make, Zapier, or another Actor. Set `onlyChanges` to `true` after validating your first baseline when the destination needs alerts only.
For Automation Help: contact lead.gen.labs.1@gmail.com

### Frequently asked questions

#### Can this Actor monitor an eBay saved search?

Yes. Open the search on eBay, copy the resulting URL, and add it to `sources`. Keep filters such as category, condition, location, and price range in the URL.

#### Can it monitor a specific eBay seller?

Yes. Add the seller's `/sch/.../m.html` inventory URL. Use a stable `externalId` when monitoring multiple sellers.

#### Does it send notifications itself?

The Actor creates structured events. Use Apify webhooks or integrations to deliver those events to email, Slack, Make, Zapier, Google Sheets, or your API. For automation help: contact lead.gen.labs.1@gmail.com

#### Why does the first run show every item as new?

The first run has no earlier state to compare. It establishes the baseline, so every discovered listing is emitted as `NEW_LISTING`. This is expected.

#### When is a listing considered removed?

By default, only after it is absent from two successful scans. Failed or low-quality scans do not confirm a removal.

#### What is a relisted item?

A relisted item has a new eBay listing ID but closely resembles a previously removed listing. The Actor compares title, seller, images, and price and reports the confidence score.

#### Can I monitor several searches in one run?

Yes, up to 100 source URLs. Give each one a unique `externalId` so its history remains stable if you reorder the list.

#### Is this an official eBay product?

No. This independent Actor is not affiliated with or endorsed by eBay. eBay pages and markup can change, so monitor run status and source-failure records.

# Actor input Schema

## `sources` (type: `array`):

Paste eBay URLs. Give a URL a unique name in its User data as {"externalId":"phones"} when using several saved monitors or the API.

## `maxListingsPerSource` (type: `integer`):

Maximum unique listings collected from each URL. Start with 200 for routine monitoring.

## `onlyChanges` (type: `boolean`):

Off returns current listings plus change events. On returns only changes, which is best for webhooks after the first run.

## `minimumPriceChangePercent` (type: `number`):

Create a price event only when the price changes by at least this percentage. Use 0 for every price change.

## `stateStoreName` (type: `string`):

A stable name for this monitor's private comparison history. Use another name for unrelated jobs.

## `removalConfirmationRuns` (type: `integer`):

A listing must be absent from this many successful scans before a LISTING_REMOVED event is emitted.

## `detectRelistedItems` (type: `boolean`):

Compare new IDs with removed listings using title, seller, image, and price similarity.

## `relistingConfidenceThreshold` (type: `number`):

Minimum similarity score for a LISTING_RELISTED event. Higher values reduce false matches.

## `minimumSourceOverlapPercent` (type: `number`):

Reject a repeat scan when too few IDs match the previous scan, protecting history from incomplete pages.

## `maxPages` (type: `integer`):

Stop after this many eBay result pages even if the listing limit has not been reached.

## `maxRequestRetries` (type: `integer`):

Retry temporary direct-request failures before Camoufox refreshes the browser session.

## `requestTimeoutSeconds` (type: `integer`):

Maximum time allowed for one marketplace request. Increase only for slow proxy connections.

## Actor input object example

```json
{
  "sources": [
    {
      "url": "https://www.ebay.com/sch/i.html?_nkw=iphone+15"
    }
  ],
  "maxListingsPerSource": 200,
  "onlyChanges": false,
  "minimumPriceChangePercent": 0,
  "stateStoreName": "incremental-listing-state",
  "removalConfirmationRuns": 2,
  "detectRelistedItems": true,
  "relistingConfidenceThreshold": 0.8,
  "minimumSourceOverlapPercent": 50,
  "maxPages": 5,
  "maxRequestRetries": 2,
  "requestTimeoutSeconds": 40
}
```

# Actor output Schema

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

Default dataset containing LISTING, CHANGE_EVENT, and SOURCE_FAILURE records.

## `summary` (type: `string`):

Counts of sources, listings, events, direct requests, browser refreshes, and final status.

# 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 = {
    "sources": [
        {
            "url": "https://www.ebay.com/sch/i.html?_nkw=iphone+15"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("lead.gen.labs/incremental-listing-marketplace-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 = { "sources": [{ "url": "https://www.ebay.com/sch/i.html?_nkw=iphone+15" }] }

# Run the Actor and wait for it to finish
run = client.actor("lead.gen.labs/incremental-listing-marketplace-monitor").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 '{
  "sources": [
    {
      "url": "https://www.ebay.com/sch/i.html?_nkw=iphone+15"
    }
  ]
}' |
apify call lead.gen.labs/incremental-listing-marketplace-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lead.gen.labs/incremental-listing-marketplace-monitor"
        }
    }
}
```

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/eSNQhSrU0gyxjiZbJ/builds/178lQPCpBbf6ACoyd/openapi.json
