# Amazon & E-Commerce BuyBox & Price Tracker (`egeusta/marketplace-price-buybox-tracker`) Actor

Monitor BuyBox winners, seller pricing, stock status, ratings, and price changes across Amazon, Trendyol, and major e-commerce marketplaces in real-time.

- **URL**: https://apify.com/egeusta/marketplace-price-buybox-tracker.md
- **Developed by:** [Ege Usta](https://apify.com/egeusta) (community)
- **Categories:** E-commerce, Automation, Lead generation
- **Stats:** 2 total users, 1 monthly users, 0.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?

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

## Amazon & Trendyol Price and Buy Box Tracker

Track public Amazon and Trendyol product pages for price, seller, availability
and Buy Box signals — and get the change since the last run, not just today's
number.

Give it direct product URLs, or give it a search / listing URL and let it find
the product links.

```json
{
  "startUrls": [
    { "url": "https://www.amazon.com/dp/B0EXAMPLE" },
    { "url": "https://www.trendyol.com/marka/urun-adi-p-123456" }
  ],
  "searchUrls": [
    { "url": "https://www.trendyol.com/sr?q=kablosuz+kulaklik" }
  ],
  "marketplace": "auto",
  "maxProducts": 50,
  "includeUnchanged": false,
  "useApifyProxy": true,
  "proxyGroups": ["RESIDENTIAL"]
}
```

```json
{
  "marketplace": "trendyol",
  "url": "https://www.trendyol.com/marka/urun-adi-p-123456",
  "productId": "123456",
  "title": "Marka Kablosuz Kulaklık",
  "brand": "Marka",
  "price": 1299.9,
  "currency": "TRY",
  "seller": "Marka Resmi Mağaza",
  "buyBoxSeller": "Marka Resmi Mağaza",
  "isBuyBoxWinner": true,
  "availability": "InStock",
  "rating": 4.4,
  "reviewCount": 2841,
  "offersObserved": 3,
  "previousPrice": 1499.9,
  "priceChange": -200,
  "priceChangePercent": -13.34,
  "status": "ok",
  "checkedAt": "2026-08-28T09:00:00.000Z",
  "error": null
}
```

### What this does that a generic scraper does not

**Every row carries its own history.** `previousPrice`, `priceChange` and
`priceChangePercent` are computed against the snapshot stored in the run's
key-value store, so a scheduled run is a change feed, not a re-scrape. Point
`snapshotKeyValueStoreId` at a named store to keep one history across runs.

**Prices come out as numbers, in the right magnitude.** `"1.299,90"` and
`"1,299.90"` are parsed to the same amount. `priceText` keeps the original
string so you can audit the parse.

**A challenge page is never a price.** Amazon and Trendyol return consent,
captcha and bot-protection pages under load. Those become `status: "blocked"`
with an explanation — never a fabricated `0` or a stale number.

**Proxy is on by default.** Both marketplaces block most datacenter IPs. A
direct request is tried first; if it is empty or challenged and `useApifyProxy`
is on, the page is retried through Apify Proxy with rotation. `RESIDENTIAL` is
the most reliable group for marketplace pages.

**Discovery is bounded.** Search / listing URLs contribute the product links
found on the page, capped by `maxProducts`. The run never wanders past the cap.

### Input

| Field | What it does |
|---|---|
| `startUrls` | Direct Amazon / Trendyol product URLs |
| `searchUrls` | Search or listing URLs; product links on them are added, up to `maxProducts` |
| `marketplace` | `auto`, `amazon` or `trendyol` — filter seeds to one marketplace |
| `maxProducts` | Hard cap on unique product pages fetched (1–500) |
| `requestTimeoutSecs` | Per-request timeout (5–120) |
| `includeUnchanged` | Keep rows with no price / seller / Buy Box change |
| `currency` | Optional currency-code label; blank keeps the marketplace currency |
| `snapshotKeyValueStoreId` | Named KV store for cross-run price history; blank uses the shared default |
| `useApifyProxy` | Retry blocked pages through Apify Proxy (recommended on) |
| `proxyGroups` | Optional proxy groups such as `RESIDENTIAL` |

### Output

One row per product: identity, `price` / `currency` / `priceText`, `seller` /
`buyBoxSeller` / `isBuyBoxWinner`, `availability`, `rating`, `reviewCount`,
`offersObserved`, and the `previousPrice` / `priceChange` /
`priceChangePercent` delta. Unreadable or challenged pages are emitted with
`status` of `blocked`, `not-found`, `unsupported` or `error` and an `error`
message, so a run is always auditable.

### Limits, stated plainly

- **No JavaScript rendering.** Prices drawn purely client-side with no markup
  come back thin; `status` says `not-found` rather than guessing.
- **Buy Box is a signal, not a scrape of the offer listing.** `buyBoxSeller`
  mirrors the seller shown on the product page; `offersObserved` counts
  offer-bearing JSON-LD blocks.
- **Discovery only sees links on the page given.** It does not paginate a
  search result set.
- Use this Actor lawfully and respect each marketplace's terms, robots rules,
  rate limits and applicable competition / data-protection law.

***

Built alongside **Scopras**, an audit tool that grades a store's product data
against what AI shopping agents need.

# Actor input Schema

## `startUrls` (type: `array`):

Direct public Amazon or Trendyol product URLs to monitor.

## `searchUrls` (type: `array`):

Public Amazon or Trendyol search/listing URLs. Product links found on these pages are added to the tracking run.

## `marketplace` (type: `string`):

Limit results to one marketplace or automatically detect Amazon and Trendyol.

## `maxProducts` (type: `integer`):

Maximum unique product pages fetched in this run.

## `requestTimeoutSecs` (type: `integer`):

Maximum time allowed for each marketplace request.

## `includeUnchanged` (type: `boolean`):

Keep products with no price or seller change in the dataset.

## `currency` (type: `string`):

Optional currency code filter such as TRY or USD. Leave blank to keep the marketplace currency.

## `snapshotKeyValueStoreId` (type: `string`):

Optional named Apify key-value store used to compare prices across scheduled runs. Leave blank to use this Actor's shared default history store.

## `useApifyProxy` (type: `boolean`):

Retry blocked or challenged marketplace pages through Apify Proxy with automatic rotation. Amazon and Trendyol block most datacenter IPs, so leaving this on is strongly recommended.

## `proxyGroups` (type: `array`):

Optional Apify Proxy groups, for example RESIDENTIAL. Leave blank for the default proxy pool. RESIDENTIAL is the most reliable for marketplace pages.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.trendyol.com/sr?q=laptop"
    }
  ],
  "searchUrls": [],
  "marketplace": "auto",
  "maxProducts": 50,
  "requestTimeoutSecs": 30,
  "includeUnchanged": true,
  "currency": "",
  "snapshotKeyValueStoreId": "",
  "useApifyProxy": true,
  "proxyGroups": []
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "startUrls": [
        {
            "url": "https://www.trendyol.com/sr?q=laptop"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("egeusta/marketplace-price-buybox-tracker").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 = { "startUrls": [{ "url": "https://www.trendyol.com/sr?q=laptop" }] }

# Run the Actor and wait for it to finish
run = client.actor("egeusta/marketplace-price-buybox-tracker").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 '{
  "startUrls": [
    {
      "url": "https://www.trendyol.com/sr?q=laptop"
    }
  ]
}' |
apify call egeusta/marketplace-price-buybox-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,egeusta/marketplace-price-buybox-tracker"
        }
    }
}

```

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/JBzN3bEt9Nsv6PLJU/builds/ihZckaqWbp53mVzyV/openapi.json
