# Universal E-Commerce Cross-Store Price & Stock Tracker Pro (`meanusarcanus/ecommerce-price-tracker-api`) Actor

Track live prices, SKU variants, discount % drops, stock levels, and cross-currency arbitrage across Amazon, Shopee, Lazada, eBay & Shopify in one unified JSON. Perfect for deal sites & price comparison engines!

- **URL**: https://apify.com/meanusarcanus/ecommerce-price-tracker-api.md
- **Developed by:** [Meanus Arcanus](https://apify.com/meanusarcanus) (community)
- **Categories:**
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.49 / 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/actors/running/actors-in-store.md#pay-per-event

## 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

## 🛍️ Universal E-Commerce Cross-Store Price & Stock Tracker Pro

[![Python 3.8+](https://img.shields.io/badge/Python-3.8+-blue.svg)](https://www.python.org/)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
[![FastAPI](https://img.shields.io/badge/API-FastAPI-009688.svg)](https://fastapi.tiangolo.com/)

Track live product prices, SKU variants, discount percentages, stock availability, and cross-store currency arbitrage across **Amazon, Shopee, Lazada, eBay, and Shopify**.

<p align="center">
  <img src="https://raw.githubusercontent.com/meanusarcanus/ecommerce-price-tracker-api/master/assets/logo.jpg" alt="E-Commerce Price Tracker Logo" width="180" style="border-radius: 20px;" />
</p>

***

### ⚡ Key Capabilities

- 🌐 **Multi-Store Auto-Detection**: Pass any URL from **Amazon, Shopee, Lazada, eBay, or direct Shopify storefronts** — the engine automatically parses prices, currencies, ratings, and stock status.
- 💱 **Cross-Store Arbitrage & Normalization**: Automatically converts all regional currencies (`USD`, `EUR`, `GBP`, `PHP`, `THB`, `SGD`, `MYR`) into normalized USD to rank the cheapest stores and compute savings deltas.
- 🎯 **Price Drop & Stock Alert Monitor**: Evaluates target buy-price thresholds, discount percentage drops, and out-of-stock triggers.
- 🚀 **Universal Distribution**: Available as a FastAPI serverless API, Apify Store Actor, RapidAPI Hub endpoint, and PyPI SDK.

***

### 📦 Python SDK Usage

```bash
pip install ecommerce-price-tracker
```

```python
from ecommerce_price_tracker import extract_product_price, compare_stores

## 1. Extract Price & Stock for Any Store
product = extract_product_price("https://www.amazon.com/dp/B098XYZ123")
print(f"Store: {product['store']} | Price: {product['currency']} {product['current_price']} (USD ${product['price_usd']})")

## 2. Cross-Store Arbitrage Comparison
comparison = compare_stores([
    "https://www.amazon.com/dp/B098XYZ123",
    "https://shopee.ph/product/12345/67890",
    "https://www.ebay.com/itm/392019482104"
])

print(f"Cheapest Deal: {comparison['arbitrage_summary']['cheapest_store']} at ${comparison['arbitrage_summary']['lowest_price_usd']}")
print(f"Max Savings: {comparison['arbitrage_summary']['max_savings_percentage']}%")
```

***

### 🌐 API Endpoints

#### 1. `POST /api/v1/extract-price`

Extract price, stock, ratings, and badges for a single product URL.

##### Request Body:

```json
{
  "product_url": "https://www.amazon.com/dp/B098XYZ123"
}
```

***

#### 2. `POST /api/v1/compare-stores`

Compare competing product URLs across multiple stores with arbitrage savings.

##### Request Body:

```json
{
  "product_urls": [
    "https://www.amazon.com/dp/B098XYZ123",
    "https://shopee.ph/product/12345/67890",
    "https://www.ebay.com/itm/392019482104"
  ]
}
```

***

### 📄 License

MIT License. Created by Meanus Arcanus.

# Actor input Schema

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

List of product URLs from Amazon, Shopee, Lazada, eBay, or Shopify to extract and cross-compare.

## `compare_arbitrage` (type: `boolean`):

Automatically calculate lowest-price winner, currency conversion (USD), and cross-store savings.

## Actor input object example

```json
{
  "product_urls": [
    "https://www.amazon.com/dp/B098XYZ123",
    "https://shopee.ph/product/12345/67890",
    "https://www.ebay.com/itm/392019482104"
  ],
  "compare_arbitrage": true
}
```

# 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 = {
    "product_urls": [
        "https://www.amazon.com/dp/B098XYZ123",
        "https://shopee.ph/product/12345/67890",
        "https://www.ebay.com/itm/392019482104"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("meanusarcanus/ecommerce-price-tracker-api").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 = { "product_urls": [
        "https://www.amazon.com/dp/B098XYZ123",
        "https://shopee.ph/product/12345/67890",
        "https://www.ebay.com/itm/392019482104",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("meanusarcanus/ecommerce-price-tracker-api").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 '{
  "product_urls": [
    "https://www.amazon.com/dp/B098XYZ123",
    "https://shopee.ph/product/12345/67890",
    "https://www.ebay.com/itm/392019482104"
  ]
}' |
apify call meanusarcanus/ecommerce-price-tracker-api --silent --output-dataset

```

## MCP server setup

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

```

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/XO3EnTlfWboOccPOv/builds/K2fABnrUjej92sgOv/openapi.json
