# Price Tracker - Track Product Prices Across Any E-Commerce Site (`thirdwatch/price-tracker`) Actor

Track product prices from Amazon, Flipkart, Shopify, eBay, Walmart, AliExpress, and any e-commerce site. Extracts price, original price, discount, availability, rating, brand. Supports 20+ Amazon domains. Schedule daily runs for price monitoring. 15x cheaper than alternatives.

- **URL**: https://apify.com/thirdwatch/price-tracker.md
- **Developed by:** [Thirdwatch](https://apify.com/thirdwatch) (community)
- **Categories:** E-commerce, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Price Tracker — Track Product Prices Across Any E-Commerce Site

Track product prices from Amazon, Flipkart, Shopify, Walmart, eBay, AliExpress, Etsy, Target, and thousands of other e-commerce sites. Extract current price, original price, discount percentage, availability, rating, brand, and more from any product URL.

### What does Price Tracker do?

Price Tracker takes a list of product page URLs and extracts structured pricing data from each one. It works across e-commerce platforms using a multi-layered extraction engine:

1. **JSON-LD structured data** — Most reliable. Google requires this for product rich snippets, so the majority of e-commerce sites include it.
2. **OpenGraph meta tags** — Fallback for sites that use og:price tags.
3. **Microdata attributes** — Extracts from itemprop="price" and related attributes.
4. **Platform-specific DOM parsing** — Custom extractors for Amazon, Shopify, and other major platforms where structured data may be incomplete.

This makes it work on virtually any e-commerce site, not just the major platforms.

### Why use this over alternatives?

- **15x cheaper** than the leading competitor ($2/1K results vs $30/1K)
- **Universal** — works on any site with structured product data, not just a handful of platforms
- **20+ Amazon domains** — US, UK, India, Germany, France, Japan, Australia, Brazil, UAE, and more
- **Indian e-commerce** — Flipkart, Myntra, AJIO, Snapdeal, Meesho, Nykaa support
- **Discount tracking** — extracts both current price and original price, calculates discount percentage
- **Scheduling-ready** — run daily or hourly to build price history over time

### Supported platforms

Works on any e-commerce site with structured product data. Tested and optimized for:

| Platform | Extraction method | Notes |
|----------|-------------------|-------|
| Amazon (20+ domains) | DOM + JSON-LD | .com, .in, .co.uk, .de, .fr, .it, .es, .ca, .co.jp, .com.au, .com.br, .ae, .sa, and more |
| Flipkart | JSON-LD + TLS fingerprinting | Indian e-commerce leader |
| Shopify stores | JSON API + JSON-LD | Any Shopify-powered store |
| Walmart | JSON-LD | US retail |
| eBay | JSON-LD | Global marketplace |
| Etsy | JSON-LD | Handmade and vintage |
| Target | JSON-LD | US retail |
| AliExpress | JSON-LD | Global wholesale |
| Myntra | JSON-LD | Indian fashion |
| AJIO | JSON-LD + TLS | Indian fashion |
| Snapdeal | JSON-LD | Indian marketplace |
| WooCommerce stores | JSON-LD | Any WooCommerce site |
| Any other site | JSON-LD / OpenGraph / Microdata | Works if the site has structured product data |

### Input

| Field | Type | Required | Default | Description |
|-------|------|----------|---------|-------------|
| `urls` | array of strings | Yes | — | Product page URLs to extract prices from |
| `maxRetries` | integer (0-10) | No | 3 | Retry attempts per URL on failure |
| `proxyCountry` | string | No | US | ISO country code for proxy routing. Use the country where the site operates for best results. |

#### Example input

```json
{
    "urls": [
        "https://www.amazon.com/dp/B0BSHF7WHW",
        "https://www.amazon.in/dp/B0BSHF7WHW",
        "https://www.flipkart.com/apple-iphone-15/p/itm123",
        "https://www.walmart.com/ip/Apple-AirPods-Pro/1752657021",
        "https://myshopifystore.com/products/cool-gadget"
    ],
    "maxRetries": 3,
    "proxyCountry": "US"
}
````

### Output

Each product URL produces one result with the following fields:

| Field | Type | Description |
|-------|------|-------------|
| `url` | string | Original product URL |
| `productName` | string | Product title |
| `price` | number | Current selling price |
| `originalPrice` | number | Original/list price before discount (if available) |
| `currency` | string | Currency code (USD, INR, GBP, EUR, etc.) |
| `discount` | string | Discount percentage (e.g., "20%") |
| `availability` | string | "In Stock" or "Out of Stock" |
| `rating` | number | Product rating (e.g., 4.5) |
| `reviewCount` | integer | Number of reviews |
| `imageUrl` | string | Product image URL |
| `brand` | string | Brand or manufacturer name |
| `platform` | string | Detected platform (amazon, shopify, flipkart, generic, etc.) |
| `scrapedAt` | string | ISO 8601 timestamp of extraction |
| `success` | boolean | Whether extraction succeeded |
| `error` | string | Error message if failed, null otherwise |

#### Example output

```json
{
    "url": "https://www.amazon.com/dp/B0BSHF7WHW",
    "productName": "Apple AirPods Pro (2nd Generation)",
    "price": 189.99,
    "originalPrice": 249.99,
    "currency": "USD",
    "discount": "24%",
    "availability": "In Stock",
    "rating": 4.7,
    "reviewCount": 98453,
    "imageUrl": "https://m.media-amazon.com/images/I/61SUj2aKoEL._AC_SL1500_.jpg",
    "brand": "Apple",
    "platform": "amazon",
    "scrapedAt": "2026-05-20T11:30:00.000Z",
    "success": true,
    "error": null
}
```

### Use cases

#### Competitor price monitoring

Track competitor product prices daily. Schedule this actor to run every morning and export results to Google Sheets or your pricing dashboard.

#### MAP compliance

Monitor whether resellers are maintaining minimum advertised pricing across marketplaces. Track the same product across Amazon, Walmart, and individual retailer sites.

#### Dropshipping margin tracking

Compare supplier prices on AliExpress or Alibaba against your retail prices on Shopify. Detect when supplier price changes erode your margins.

#### Cross-region price comparison

Track the same Amazon product across US (.com), UK (.co.uk), India (.in), Germany (.de), and Japan (.co.jp) to identify regional pricing differences.

#### Price history and trend analysis

Schedule daily runs to build a price history dataset. Combine with Apify's dataset export to visualize trends in your BI tool.

### Cost

This actor uses Pay-Per-Event pricing. You only pay for successfully extracted results.

| Tier | Price per result | Cost per 1,000 results |
|------|-----------------|----------------------|
| FREE | $0.002 | $2.00 |
| BRONZE | $0.0017 | $1.70 |
| SILVER | $0.0013 | $1.30 |
| GOLD | $0.001 | $1.00 |

**Comparison with alternatives:**

- Forward Workstation's Competitor Price Tracker: $30.00 per 1,000 results — **this actor is 15-30x cheaper**
- Apify's E-commerce Scraping Tool: opaque pricing with enrichment add-ons

### How to schedule price monitoring

1. Run this actor once to verify it works with your URLs
2. Go to **Schedules** in the Apify Console
3. Create a new schedule with your desired frequency (daily, hourly, weekly)
4. Set this actor as the target with your product URLs as input
5. Results accumulate in the dataset — export to Google Sheets, webhook to Slack, or consume via API

### Integration

Results are available via:

- **Apify API** — fetch results programmatically from any language
- **Webhooks** — get notified when a run completes
- **Google Sheets** — direct export integration
- **Zapier / Make / n8n** — connect to 1000+ apps
- **CSV / JSON / Excel** — download from the Apify Console

### Limitations

- Sites behind login walls or requiring authentication are not supported
- Some heavily protected sites (Cloudflare Turnstile, advanced CAPTCHAs) may fail
- Sites without any structured product data (no JSON-LD, OpenGraph, or microdata) cannot be extracted from
- Currency detection depends on structured data or domain mapping — some small sites may not include it
- Price Tracker extracts the current snapshot. Build price history by scheduling repeated runs.

### Technical details

- **Runtime:** Python 3.14, HTTP-only (no browser)
- **Memory:** 256 MB default, 512 MB max
- **Proxy:** Residential proxy with country routing
- **Concurrency:** 3 parallel requests for faster processing
- **TLS fingerprinting:** Chrome TLS fingerprint via impit to avoid blocks on protected sites

# Actor input Schema

## `urls` (type: `array`):

Product page URLs to track prices for. Supports Amazon (all 20+ country domains), Flipkart, Shopify stores, eBay, Walmart, AliExpress, Etsy, Target, and any e-commerce site with structured product data.

## `maxRetries` (type: `integer`):

Number of retry attempts per URL on failure. Increase for heavily-protected sites.

## `proxyCountry` (type: `string`):

ISO country code for proxy routing. Use the country where the e-commerce site operates for best results (e.g. IN for amazon.in/flipkart.com, US for amazon.com).

## Actor input object example

```json
{
  "urls": [
    "https://www.amazon.com/dp/B0BSHF7WHW",
    "https://www.amazon.in/dp/B0BSHF7WHW"
  ],
  "maxRetries": 3,
  "proxyCountry": "US"
}
```

# Actor output Schema

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

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://www.amazon.com/dp/B0BSHF7WHW",
        "https://www.amazon.in/dp/B0BSHF7WHW"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("thirdwatch/price-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 = { "urls": [
        "https://www.amazon.com/dp/B0BSHF7WHW",
        "https://www.amazon.in/dp/B0BSHF7WHW",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("thirdwatch/price-tracker").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 '{
  "urls": [
    "https://www.amazon.com/dp/B0BSHF7WHW",
    "https://www.amazon.in/dp/B0BSHF7WHW"
  ]
}' |
apify call thirdwatch/price-tracker --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Price Tracker - Track Product Prices Across Any E-Commerce Site",
        "description": "Track product prices from Amazon, Flipkart, Shopify, eBay, Walmart, AliExpress, and any e-commerce site. Extracts price, original price, discount, availability, rating, brand. Supports 20+ Amazon domains. Schedule daily runs for price monitoring. 15x cheaper than alternatives.",
        "version": "1.0",
        "x-build-id": "eowMBYRPrtduU8L5y"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/thirdwatch~price-tracker/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-thirdwatch-price-tracker",
                "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/thirdwatch~price-tracker/runs": {
            "post": {
                "operationId": "runs-sync-thirdwatch-price-tracker",
                "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/thirdwatch~price-tracker/run-sync": {
            "post": {
                "operationId": "run-sync-thirdwatch-price-tracker",
                "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": [
                    "urls"
                ],
                "properties": {
                    "urls": {
                        "title": "Product URLs",
                        "type": "array",
                        "description": "Product page URLs to track prices for. Supports Amazon (all 20+ country domains), Flipkart, Shopify stores, eBay, Walmart, AliExpress, Etsy, Target, and any e-commerce site with structured product data.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxRetries": {
                        "title": "Max Retries",
                        "minimum": 0,
                        "maximum": 10,
                        "type": "integer",
                        "description": "Number of retry attempts per URL on failure. Increase for heavily-protected sites.",
                        "default": 3
                    },
                    "proxyCountry": {
                        "title": "Proxy Country",
                        "enum": [
                            "US",
                            "GB",
                            "IN",
                            "DE",
                            "FR",
                            "ES",
                            "IT",
                            "CA",
                            "JP",
                            "AU",
                            "BR",
                            "MX",
                            "AE",
                            "SG",
                            "SA",
                            "NL",
                            "PL",
                            "SE"
                        ],
                        "type": "string",
                        "description": "ISO country code for proxy routing. Use the country where the e-commerce site operates for best results (e.g. IN for amazon.in/flipkart.com, US for amazon.com).",
                        "default": "US"
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
