Blog

Amazon Price Tracker API: Track Competitor Prices

Build an Amazon price tracker with an API: price and stock per ASIN, price history, drop alerts and bulk competitor tracking.


Written and reviewed by
Amazon API Tutorials Updated: Read time: 8 minutes
A businessman pointing at a glowing "Data Analysis" holographic interface surrounded by icons for charts, gears, a globe, and analytics dashboards, representing business intelligence and data-driven decision making.

Amazon prices move with competition, demand, stock and promotions, and the same product can show a different price in another region. Browser extensions are fine for a shopper watching one item. A seller, brand or analyst who watches hundreds of competitor ASINs needs an Amazon price tracker API: a scheduled job that collects price and stock as structured data, keeps the history and raises an alert when something changes. This guide builds that tracker step by step with the Easyparser Product Detail API.

Why Track Amazon Prices with an API?

  • Competitor pricing: see when a competitor undercuts you and react before you lose the Buy Box.
  • Repricing rules: feed a pricing engine with fresh competitor prices instead of guesses.
  • Deal and arbitrage alerts: get notified when a product drops below a target price.
  • Stock signals: a competitor that goes out of stock is a chance to hold or raise your price.
  • Market research: a price history shows seasonality, promotion patterns and how often a category reprices.
ApproachGood forLimits
Manual checksA handful of products, occasional checksSlow, error-prone, no history
Browser extensions and price history sitesShoppers watching single itemsNo bulk access, no control over timing or fields
Your own scraperFull control if you can maintain itBlocks, CAPTCHAs and layout changes break it
Amazon price tracker APIScheduled tracking of many ASINs with your own rulesYou own storage, scheduling and alert logic

What an Amazon Price Tracker API Should Record

A price on its own is easy to misread later. Record enough context with every reading that two rows can be compared fairly:

FieldWhy it matters
ASIN and marketplaceThe same ASIN has different prices on amazon.com and amazon.de
Buy Box price and currencyThe price most shoppers pay; keep the currency with the number
Availability textOut of stock or low quantity explains many sudden price moves
Seller and fulfillmentAn FBA offer and an FBM offer at the same price compete differently
ZIP code or delivery locationPrices and stock can change by region
Collection time (UTC)Needed for history charts and to measure how often prices change
Request statusLets you separate failed requests from real price changes

With these fields in place, an Amazon price tracker API becomes a dataset you can query later, not just a feed of alerts.

Step 1: Get the Current Price and Stock for One ASIN

The DETAIL operation returns the Buy Box offer for an ASIN, including price, availability and fulfillment, in one structured response. Create a free account, copy your API key and run:

import requests

params = {

"api_key": "YOUR_API_KEY",

"platform": "AMZ",

"operation": "DETAIL",

"asin": "B0CJB6V2L5",

"domain": ".com",

}

resp = requests.get("https://realtime.easyparser.com/v1/request", params=params, timeout=60)

resp.raise_for_status()

buybox = resp.json()["result"]["detail"]["buybox_winner"]

print(buybox["price"]["value"], buybox["price"]["currency"]) # e.g. 29.99 USD

print(buybox["availability"]["raw"]) # e.g. In Stock

The ASIN comes from Easyparser's published example response, which you can inspect on the Product Detail API page. Price and stock come from the same request, so one call per product covers both.

Step 2: Store Every Reading and Alert on Price Drops

Tracking price changes over time means saving each reading with a timestamp. A small SQLite table is enough to start; move to PostgreSQL or BigQuery when the watchlist grows. The script below checks a watchlist, stores the price and stock text, and prints an alert when a price falls below its target:

import sqlite3, requests

from datetime import datetime, timezone

API_KEY = "YOUR_API_KEY"

WATCHLIST = {"B0CJB6V2L5": 25.00} # ASIN: target price

db = sqlite3.connect("prices.db")

db.execute("CREATE TABLE IF NOT EXISTS prices (asin TEXT, price REAL, stock TEXT, checked_at TEXT)")

for asin, target in WATCHLIST.items():

params = {"api_key": API_KEY, "platform": "AMZ", "operation": "DETAIL", "asin": asin, "domain": ".com"}

detail = requests.get("https://realtime.easyparser.com/v1/request", params=params, timeout=60).json()["result"]["detail"]

buybox = detail.get("buybox_winner") or {}

price = float(buybox.get("price", {}).get("value") or 0) or None

stock = buybox.get("availability", {}).get("raw")

db.execute("INSERT INTO prices VALUES (?, ?, ?, ?)", (asin, price, stock, datetime.now(timezone.utc).isoformat()))

if price and price < target:

print(f"ALERT {asin}: {price} is below {target}")

db.commit()

Run it hourly or daily from cron (0 * * * * python3 price_check.py) or a cloud scheduler. Replace the print with an email, a Slack webhook or a ticket in your own system. Products without a Buy Box offer return no price, so keep those rows: an empty Buy Box is a signal too.

Diagram showing a four-step Bulk API Process: Create Bulk Job via JSON request, Asynchronous Processing on server, Webhook Notification callback, and Fetch Results for data retrieval, connected by curved arrows in a sequential flow.

Step 3: Track Competitor Prices in Bulk

Looping over hundreds of real-time requests is slow to orchestrate. The Bulk API takes up to 5,000 inputs per request, processes them in the background and calls your webhook when results are ready:

import requests

competitors = ["B0CJB6V2L5", "B0B7P81K6S"]

job = [{

"platform": "AMZ",

"operation": "DETAIL",

"domain": ".com",

"callback_url": "https://example.com/easyparser/webhook",

"payload": {"asins": competitors},

}]

resp = requests.post("https://bulk.easyparser.com/v1/bulk", headers={"api-key": "YOUR_API_KEY"}, json=job).json()

print(resp["meta_data"]) # accepted, invalid, failed and credit counts

Store the returned query IDs. When the webhook arrives, fetch each result from the Data Service and write the prices into the same table as Step 2. Parsed results are kept for up to 24 hours, so collect them promptly. The Bulk API guide covers webhooks, retries and idempotent processing.

Step 4: Track Regional Prices by ZIP Code

Price, stock and delivery can differ by delivery location. Pass a zip_code with the request to read the page as a shopper in that area would:

import requests

REGIONS = {"New York": "10001", "Los Angeles": "90001", "Chicago": "60601"}

for city, zip_code in REGIONS.items():

params = {"api_key": "YOUR_API_KEY", "platform": "AMZ", "operation": "DETAIL",

"asin": "B0CJB6V2L5", "domain": ".com", "zip_code": zip_code}

buybox = requests.get("https://realtime.easyparser.com/v1/request", params=params, timeout=60).json()["result"]["detail"]["buybox_winner"]

print(city, buybox["price"]["raw"], buybox["availability"]["raw"])

Store the ZIP code with every reading so you never compare a New York price with a Los Angeles price by mistake. Our guide to regional price analysis goes further with saved addresses.

Beyond the Buy Box: All Offers and Stock Alerts

The Buy Box price is what most shoppers pay, but it is not the whole market. The OFFER operation returns every seller's price, shipping, condition and fulfillment method for an ASIN, which shows who undercuts whom and whether a lower FBM offer is shaping the Buy Box.

Stock deserves its own rules. Alert when a competitor's availability text changes to out of stock or to a low quantity, and consider holding your price while they restock. For restock alerts on products you want to buy or resell, see our Amazon inventory tracking guide.

Alert Rules That Work

The alert logic decides whether your tracker is useful or noisy. Start with a few clear rules and tune them after a week of data:

RuleExampleTypical use
Absolute thresholdAlert when the price is below 25.00Buying and arbitrage targets
Percentage changeAlert when the price moves more than 5% since the last readingCompetitor repricing
UndercutAlert when a competitor is below your own priceBuy Box defense
Stock changeAlert when availability changes to out of stockPricing opportunities, restock planning
New lowest offerAlert when the OFFER list shows a new lowest sellerUnauthorized seller and MAP checks

Require two consecutive readings before alerting on a change if your category is noisy, and always include the previous value in the message so the person reading it can judge the move quickly.

Practical Tips for an Amazon Price Tracker

  • Match the interval to volatility. Hourly for fast-moving categories and promotion periods such as Prime Day and Black Friday, daily for stable products.
  • Keep context with each price. Save marketplace, ZIP code, seller and collection time, not just the number.
  • Separate errors from changes. A failed request is not a price drop; retry before alerting.
  • Visualize the history. A line chart with a rolling average and your alert threshold makes patterns obvious; matplotlib, Plotly or a BI tool all work on the same table. To turn the table into a shared view for your team, follow our guide to building an Amazon competitor price monitoring dashboard.
  • Watch credit usage. Each scheduled check consumes credits, so drop ASINs you no longer act on.

Start Tracking Amazon Prices

A working Amazon price tracker API setup needs three parts: a request that returns price and stock, a table that keeps the history, and rules that turn changes into alerts. Easyparser's Demo plan includes 100 credits with no credit card required, enough to test the scripts above on your own competitors across 22 Amazon marketplaces. Create a free account and start with your five most important competitor ASINs.

Sources

  1. Real-Time Integration Overview, Easyparser Documentation (accessed )
  2. Bulk Integration Overview, Easyparser Documentation (accessed )

Start building with the Easyparser API today

Start Your Free Trial

100 free credits, no credit card required.

Frequently Asked Questions (FAQ)

It is an API that returns the current price and availability of Amazon products as structured data, so you can collect prices on a schedule, store the history and trigger alerts. Easyparser provides this through its DETAIL and OFFER operations.

Request the price for each ASIN on a schedule, store every reading with a timestamp, marketplace and ZIP code, and compare new readings with the previous ones. A cron job plus a SQLite or PostgreSQL table is enough to start.

Put competitor ASINs on a watchlist and request them with the DETAIL operation for the Buy Box price, or with OFFER for every seller's price. For long lists, submit them as one Bulk API job and process results when the webhook arrives.

Yes. The DETAIL response includes the Buy Box price and the availability text, so one request per product covers both price and stock signals.

Yes. Easyparser's Bulk API accepts up to 5,000 inputs per request, processes them asynchronously and notifies your webhook when results are ready. Fetch results within 24 hours.

They can. Price, stock and delivery can change with the delivery address, so pass a zip_code with the request and store it with each reading.

Hourly for volatile categories and during promotions, daily for stable products. Checking more often than you act on only uses more credits.
Tags
amazon price tracker apiamazon price tracking apiamazon competitor price tracking apitrack amazon price changesamazon price history apiamazon stock and price trackingeasyparser