Playground Sign in Start free
← All posts

Amazon Price Tracker: Build One with the Scrape API

Building an Amazon price tracker programmatically means scheduling an API call that returns structured JSON, storing the result, and firing an alert when a number changes. If you have tried to do that by parsing Amazon's HTML directly, you know the problem: the layout shifts, the bot-detection tightens, and your parser breaks without warning. This guide shows how to skip that entirely using the Scrape API's recipe=amazon/listing and recipe=amazon/search parameters, which return clean JSON with the fields a price monitor needs. By the end you will know which fields to pull, how to call the API in Python, how to schedule refreshes, and what it costs at each monitoring volume.

What an Amazon Price Tracker Actually Needs

Amazon's own price history feature, available through Alexa for Shopping (previously named Rufus until May 13, 2026), lets shoppers view 30, 90 and 365 days of price history directly on eligible product detail pages. You can access it by clicking the price history link next to the product price, or through the Alexa for Shopping icon in the app (bottom right) and on desktop (top navigation). More than 100 million customers worldwide have used price history hundreds of millions of times, and the feature is available in the US, UK, Canada, India, Japan, Germany, France, Italy and Spain.

The feature is genuinely useful for shoppers. You can ask Alexa for Shopping questions like "Is this the lowest price recently?" or "Has this been on sale in 30 days?" to decide whether to buy now or wait. When a Black Friday price appears, price history lets you compare it against the typical price over the past year, so you can tell whether a "50% off" badge reflects a real discount or a temporarily inflated list price. That context is exactly what a programmatic price monitor tries to automate at scale.

But none of that is callable from a pipeline. There is no API, no webhook, no JSON output. A browser extension like Keepa solves the same problem for shoppers: it overlays price history charts on Amazon product pages and sends email alerts when a price drops below a target. It is excellent at what it does. But it does not write to your database, it does not integrate with your alerting system, and it does not let you monitor a catalogue of thousands of ASINs on a schedule you control.

For a programmatic tracker, the fields that matter are: price, list_price, asin, title, availability, currency, rating, review_count and seller. The price-drop signal is simple: when price is below list_price, the product is discounted. When price drops below the value you recorded in the previous run, you have a new low.

How often should you poll? Amazon prices can change multiple times a day on high-velocity products, but for most monitoring use cases, checking every few hours catches the meaningful moves. Polling every minute is expensive and rarely necessary. A good starting cadence is twice a day for a broad catalogue and every hour for a short list of high-priority ASINs.

If you are monitoring fewer than 500 ASINs twice a day, the Starter plan covers you with room for retries. If your catalogue is larger, calculate: ASINs x 2 x 30 x credits per call, then check /pricing for the plan that fits.

How to Fetch Amazon Data with the Scrape API Recipe

The Scrape API's recipe parameter applies a validated extraction configuration for a supported site. Instead of writing CSS selectors, configuring JavaScript rendering and tuning proxy settings yourself, you pass recipe=amazon/listing and get structured JSON back. Ujeebu maintains the extraction logic, so when Amazon changes its layout, the recipe is updated without any change on your side. Think of it as a pre-tested extraction layer: you query it, it returns named fields.

To fetch a product listing, pass the Amazon product URL with the recipe parameter:

curl -X GET 'https://api.ujeebu.com/scrape?url=https://www.amazon.com/dp/B09G9FPHY6&recipe=amazon/listing' \
  -H "ApiKey: YOUR_API_KEY"

The response is a JSON object with fields that typically include title, asin, price, list_price, currency, availability, rating, review_count, seller, images and url. See /recipes/amazon for the authoritative field list and the Amazon scraping guide for site-specific settings. A realistic response looks like this:

{
  "title": "Flexispot E7 Pro Standing Desk",
  "asin": "B09G9FPHY6",
  "price": 449.99,
  "list_price": 599.99,
  "currency": "USD",
  "availability": "In Stock",
  "rating": 4.6,
  "review_count": 3821,
  "seller": "FLEXISPOT",
  "url": "https://www.amazon.com/dp/B09G9FPHY6"
}

When you do not have a product URL but want to search by keyword, use recipe=amazon/search and pass the search results URL:

curl -X GET 'https://api.ujeebu.com/scrape?url=https://www.amazon.com/s%3Fk%3Dstanding%2Bdesk&recipe=amazon/search' \
  -H "ApiKey: YOUR_API_KEY"

This returns an array of results, each with the same core fields, letting you build a catalogue from keywords rather than known ASINs.

Amazon bot-check pages, the form that posts to /errors/validateCaptcha, are detected automatically. The API retries on a different IP. If every retry path returns the bot-check page, the request fails and you are not charged. The build-or-buy guide explains when a recipe is the right abstraction versus writing your own extraction logic.

Use recipe=amazon/listing when you have ASINs or product URLs. Use recipe=amazon/search when you are building a catalogue from keywords. Both return structured fields without any HTML parsing on your side.

Try it yourself

Run this on your own pages

Get a free API key and make your first call in minutes. 5,000 free credits for 21 days, no card.

Building a Price Monitor: A Worked Example in Python

The snippet below fetches a listing, checks whether the current price is below the list price, and prints an alert.

import requests

API_KEY = "YOUR_API_KEY"
ASIN_URL = "https://www.amazon.com/dp/B09G9FPHY6"

response = requests.get(
    "https://api.ujeebu.com/scrape",
    params={
        "url": ASIN_URL,
        "recipe": "amazon/listing",
    },
    headers={"ApiKey": API_KEY},
)

data = response.json()

title = data.get("title")
asin = data.get("asin")
price = data.get("price")
list_price = data.get("list_price")

print(f"[{asin}] {title}")
print(f"  Price: {price}  List: {list_price}")

if price and list_price and price < list_price:
    discount = round((1 - price / list_price) * 100, 1)
    print(f"  ALERT: {discount}% below list price")

To search by keyword and iterate results, use recipe=amazon/search:

import requests

API_KEY = "YOUR_API_KEY"
SEARCH_URL = "https://www.amazon.com/s?k=standing+desk"

response = requests.get(
    "https://api.ujeebu.com/scrape",
    params={
        "url": SEARCH_URL,
        "recipe": "amazon/search",
    },
    headers={"ApiKey": API_KEY},
)

results = response.json()

for item in results:
    price = item.get("price")
    list_price = item.get("list_price")
    if price and list_price and price < list_price:
        print(f"DEAL: {item['title']}, {price} (was {list_price})")

Before running a large batch, check your remaining credit balance:

import requests

account = requests.get(
    "https://api.ujeebu.com/account",
    headers={"ApiKey": "YOUR_API_KEY"},
)
info = account.json()
print(f"Balance: {info['balance']} credits  Used: {info['used_percent']}%")

For production, wrap the fetch function in your preferred scheduler. A cron job that calls the listing endpoint every 12 hours and writes results to a database table is enough for most catalogues. The price-drop check is a diff between two rows: SELECT asin, price FROM prices WHERE run_id = current AND price < (SELECT price FROM prices WHERE run_id = previous AND asin = current.asin). Store every result with a timestamp and you have a full price history without building any additional infrastructure.

One edge case worth handling: when an ASIN is out of stock or the listing has been removed, the recipe still returns a response, but the availability field reflects the actual state of the page. Your monitor should treat a null or zero price as a data gap rather than a price drop to zero.

Takeaway: Run the listing snippet against a handful of ASINs to validate the fields, then wrap it in a scheduler once you are confident in the output. The account endpoint tells you how many credits you have left before you commit to a large run.

Keeping Your Tracker Reliable: Handling Blocks and Errors

Amazon is one of the more aggressively protected sites on the web. A plain requests.get from a data-center IP will return a bot-check page within a few requests. The recipe avoids this by applying JavaScript rendering, rotating proxies and anti-bot handling automatically. The proxy pool works like a fleet of delivery drivers, each with a different vehicle: Amazon sees a different origin for every request, so no single IP accumulates a suspicious request pattern.

When a bot-check page does slip through, the API detects the validateCaptcha form, treats the response as a block and retries on a different path. If every retry path returns the bot-check page, the request fails with an error response and is not billed.

On your side, the error handling is straightforward: check the HTTP status of the API response. A 200 with a valid JSON body means success. A 4xx or 5xx means the request failed and you were not charged. Log the ASIN, skip it in the current run, and let the scheduler retry it in the next cycle. You do not need to implement proxy rotation or browser fingerprinting yourself.

The Amazon web scraping guide covers the broader anti-bot landscape if you want to understand what the recipe is handling under the hood.

What This Costs: Credits and Plans

A recipe call costs the same as the same page call with the recipe's settings. The Amazon listing recipe applies JavaScript rendering, which is charged at the JavaScript rendering rate per page. Check /pricing for the current credit cost and confirm it against your plan before scheduling a large batch.

The table below maps monitoring volumes to plans, using the JavaScript rendering rate. The credits column assumes that rate applies; verify at /pricing before committing.

Monitoring volume Calls per month Suggested plan
500 products, twice daily 30,000 Starter ($49/mo, 300,000 credits)
2,000 products, twice daily 120,000 Growth ($119/mo, 1,000,000 credits)
10,000 products, twice daily large volume Pro ($299/mo, 3,000,000 credits)
50,000 products, twice daily 3,000,000 Business ($999/mo, 15,000,000 credits)

The chart below shows how real prices move across retailers in the weeks before Black Friday. This data covers Barnes and Noble, Costco and Lenovo, not Amazon directly, but the pattern holds: prices shift meaningfully in the weeks before major sales events, and a twice-daily cadence catches most of the moves that matter.

20 of the 78 products we price every day at Barnes & Noble, Costco and Lenovo cost less on Nov 15 than on Oct 5, 12 days before Black Friday; Lenovo desktops have the most price cuts, 5 of 5.
<title>20 of the 78 products we price every day at Barnes & Noble, Costco and Lenovo cost less on Nov 15 than on Oct 5, 12 days before Black Friday; Lenovo desktops have the most price cuts, 5 of 5.</title>Lenovo desktops 1, Lenovo laptops 0.67, Lenovo tablets 0.17, Barnes & Noble toys and games 0.02Lenovo desktops<title>Lenovo desktops: 1</title>1Lenovo laptops<title>Lenovo laptops: 0.67</title>0.67Lenovo tablets<title>Lenovo tablets: 0.17</title>0.17Barnes & Noble toys and...<title>Barnes & Noble toys and games: 0.02</title>0.02

Source: Ujeebu data: Black Friday 2026 price tracker, week 46: how many products already cost less

Data
Black Friday 2026 price tracker, week 46: how many products already cost less
Lenovo desktops1
Lenovo laptops0.67
Lenovo tablets0.17
Barnes & Noble toys and games0.02

For intermittent or project-based monitoring, top-up packs let you pay as you go without a monthly commitment. Yearly plans are 10% off, which is worth it for a continuous monitoring workload.

Takeaway: Multiply your daily call volume by 30 days to get your monthly call count, then check the credit cost per call at /pricing. Pick the plan whose quota covers that with a buffer for retries.

Recipe vs Custom Setup: When Each Makes Sense

The recipe covers the standard product detail page and search results page fields. For the majority of price monitoring use cases, that is everything you need. If you want fields the recipe does not return, such as seller-specific offer data, variation pricing across sizes and colors, or Q&A content, you can add extract_rules with CSS selectors to pull named fields into JSON. The build-or-buy guide walks through when that trade-off makes sense, and the step-by-step Amazon scraping guide shows how to construct selectors for specific page elements.

Recipe extract_rules Custom scraping service
Setup time Minutes Hours Days (scoped by team)
Maintenance burden None (Ujeebu maintains) Yours None (Ujeebu maintains)
Field flexibility Fixed recipe fields Any CSS-selectable field Fully custom
Best for Standard price monitoring Non-standard fields Complex, managed pipelines

The custom scraping service is the right conversation when you need a fully managed pipeline: Ujeebu builds, hosts, monitors and fixes the scraper and delivers clean JSON or a scheduled export. That is a different scope from an API call, and projects are quoted individually.

Start with the recipe. If you hit a field it does not return, add extract_rules. If the whole setup needs to be built and managed for you, the custom scraping service is the right next step.


The recipe handles the hard part. Your job is to store the numbers and act on the diff. Start with the free trial at /pricing: 5,000 credits, no credit card required, enough to test the recipe against a real product catalogue before committing to a plan.


FAQ

Does Amazon have a price tracker?

Yes. Amazon's Alexa for Shopping (previously named Rufus until May 13, 2026) shows 30, 90 and 365 days of price history on eligible product detail pages in the US, UK, Canada, India, Japan, Germany, France, Italy and Spain. You can access it by clicking the price history link next to the product price, or by asking Alexa for Shopping questions like "Is this the lowest price recently?" It is designed for shoppers, not developers, and has no API or programmatic output.

Which is the best Amazon price tracker?

For shoppers, Keepa and camelcamelcamel are the most established tools, with Keepa offering price-drop alerts and browser integration across multiple Amazon marketplaces. For developers who need to pull Amazon price data into their own systems, a recipe-based scraping API is the right approach: it returns structured JSON on a schedule you control, integrates with any database or alerting system, and requires no HTML parsing.

How do you make an Amazon price tracker?

Call the Scrape API with recipe=amazon/listing and the product URL. Parse the price and list_price fields from the JSON response. Store the result with a timestamp. On the next run, compare the new price to the stored value and alert when it drops. Schedule the call with a cron job or task queue. The price monitoring use case page covers the broader architecture.

Is Keepa the best Amazon price tracker?

Keepa is the most capable consumer tool for Amazon price tracking, with a large product database, price history charts and multi-marketplace support. It is not the right tool for a developer who needs to integrate Amazon price data into a pipeline, trigger alerts in their own system, or monitor a custom catalogue programmatically. For that use case, a recipe-based API call is a better fit.

How many credits does one Amazon product page cost with the Scrape API recipe?

A recipe call costs the same as the same page call with the recipe's settings. The Amazon listing recipe applies JavaScript rendering. Check /pricing for the current credit cost per call, since the rate depends on your plan and proxy tier.

Do failed or blocked Amazon requests count against my credit balance?

No. Blocked, timed-out and failed requests are free. Amazon bot-check pages are detected and retried automatically. If every retry path returns a bot-check page, the request fails and you are not charged. Only successful responses are billed.

Try it yourself

Run this on your own pages

Get a free API key and make your first call in minutes. 5,000 free credits for 21 days, no card.

← Back to blog Read the docs →