Track Amazon products and read their price history from your code with the REST API, or from your AI assistant with the MCP server. One API key works for both, and for the Chrome extension.
Every request carries your personal API key as a Bearer token. Create one key per tool or script in your dashboard: the key is shown once, and revoking it stops it right away. Keep keys on your server, never in browser code.
Header
Authorization: Bearer YOUR_API_KEY
Base URL: https://www.asin.dev/api/v1. Requests and responses are JSON. A missing or invalid key returns 401 with the code unauthorized.
Endpoints
Parameters, responses and code samples for each endpoint are in the API reference, where you can also try requests with your key.
Every product answer has the same fields: see the Product model in the API reference. Here are the values two of them can take.
last_error
Code
Meaning
email_not_verified
The account's email isn't confirmed yet, so it has no credits; the check runs as soon as it is.
insufficient_credits
The last check was skipped for lack of credits; it's retried every 6 hours.
amazon_unavailable
Amazon couldn't be read at the last check (refunded); retried within 30 minutes.
product_not_found
The ASIN has no page on this marketplace (refunded). found_on lists the neighboring marketplaces where it exists, if any.
Marketplaces
marketplace
Store
Currency
com
amazon.com (United States)
USD
co.uk
amazon.co.uk (United Kingdom)
GBP
de
amazon.de (Germany)
EUR
fr
amazon.fr (France)
EUR
it
amazon.it (Italy)
EUR
es
amazon.es (Spain)
EUR
ca
amazon.ca (Canada)
CAD
co.jp
amazon.co.jp (Japan)
JPY
com.br
amazon.com.br (Brazil)
BRL
com.mx
amazon.com.mx (Mexico)
MXN
in
amazon.in (India)
INR
Product states
Checks run in the background, so a product's fields tell where it stands. Test them in this order: the first match is the state the app and the extension show as a badge.
States
State
When
What to do
Checking
checking is true
A check is due or running. Poll GET /products/{id} every few seconds, or pass wait.
Paused
status is "paused"
Not checked, not charged. PATCH paused: false to resume.
Confirm your email
last_error is "email_not_verified"
The free credits come with the email confirmation; checks start right after it.
Waiting for credits
last_error is "insufficient_credits"
The balance is empty; the check runs again by itself once credits are added (manage_url).
Not found on Amazon
last_error is "product_not_found"
No page for this ASIN on this marketplace (refunded). If found_on isn't empty, track the ASIN there instead.
Retrying soon
last_error is "amazon_unavailable"
Amazon couldn't be read (refunded). Retried automatically; nothing to do.
Queued
last_checked_at is null
Added, first check not done yet.
Out of stock
in_stock is false
Checked, but no offer: price is null. With alert_on_drop, the owner gets an email when it's back (on the free plan, if it's among the first 5 products with an alert).
In stock
in_stock is true
Checked, with an offer at price (in currency).
filter on GET /products and list_products
filter
Products
all
Every tracked product (default).
drops
Cheaper now than when the product was added.
target
At or below its target price.
out_of_stock
No offer at the last check.
attention
The last check didn't go through (last_error is set): no credits, not found or Amazon unavailable.
paused
Paused by you: not checked, not charged.
Recipes
Common integrations, in JavaScript (Node 18+). The first one defines api(method, path, body), a small fetch wrapper the others reuse. Keep the key on your server.
Track a product and get its price in one call
wait: true answers once the first check is done (up to 45 seconds). If it took longer, checking is still true: read the product again a bit later.
JavaScript
async function api(method, path, body) {
const res = await fetch(`https://www.asin.dev/api/v1${path}`, {
method,
headers: {
Authorization: `Bearer ${process.env.ASIN_API_KEY}`,
"Content-Type": "application/json",
},
body: body && JSON.stringify(body),
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`);
return data;
}
const product = await api("POST", "/products", { product: "https://www.amazon.com/dp/B09DFCB66S", wait: true });
console.log(product.title, product.price, product.currency);
Handle an ASIN from another marketplace
An ASIN only exists on some Amazon stores. When the first check finds no page, last_error is product_not_found and found_on lists the neighboring marketplaces where it exists: track it there and remove the first one.
filter=attention lists the products whose last check didn't go through. Only waiting for credits and not found need an action; Amazon errors retry by themselves.
Errors use the HTTP status and a JSON body with a stable code to branch on, and a message to show or log.
403 Forbidden
{
"error": {
"code": "product_limit",
"message": "You've reached your plan's product limit. The free plan tracks up to 50 products."
}
}
Error codes
HTTP
Code
When
400
invalid_product
product is neither a 10-character ASIN nor an Amazon product link, or asin isn't a 10-character ASIN.
400
unsupported_marketplace
The link is from an Amazon store that isn't supported (supported: com, co.uk, de, fr, it, es, ca, co.jp, com.br, com.mx, in).
400
invalid_option
A setting isn't valid: marketplace (com, co.uk, de, fr, it, es, ca, co.jp, com.br, com.mx, in), filter, interval_minutes (5, 30, 60, 360, 720, 1440), target_price, alert_on_drop or paused. Also when the body isn't a JSON object, a required argument is missing, or the product to check is paused.
401
unauthorized
The API key is missing, revoked or invalid.
402
insufficient_credits
Reading Amazon now (POST /offers) costs 1 credit and the balance is empty.
402
email_not_verified
The account's email isn't confirmed yet, so it has no credits to read Amazon with.
402
api_limit
A free account made its 200 API and MCP requests of the month (UTC). They start again on the 1st, and a plan or a credit pack lifts the limit; GET /account still answers.
403
paid_option
Checks faster than daily need a plan or a credit pack: every 60 minutes with a pack or Starter, 30 with Pro, 5 with Business.
403
product_limit
The account tracks as many products as its plan allows (50 on the free plan).
404
not_found
No tracked product with this id on your account, or no such endpoint.
404
product_not_found
Amazon has no product for this ASIN on this marketplace (POST /offers). Refunded.
405
method_not_allowed
The endpoint doesn't take this HTTP method; the Allow header lists the ones it does.
429
rate_limited
More than 30 searches or 600 history or offers reads in an hour, too many reads of Amazon at once, or too many different products read today: 200 a day on the free plan, 1,000 with a credit pack, then 1,000 with Starter, 3,000 with Pro, 10,000 with Business. Histories, offers and new watchlist entries count, once per product; your watchlist and the products already read today stay available. Retry later, or after midnight UTC for the daily limit.
500
generic
Unexpected error on our side. Retry in a moment.
502
amazon_unavailable
Amazon couldn't be read right now (GET /search, GET /offers). Nothing is charged; retry in a moment.
Billing & limits
Each price check of a tracked product costs 1 credit; a product checked daily uses about 30 credits a month. Each alert email costs 20 credits on the free plan, 10 with credit packs, 10 on Starter, 3 on Pro, 1 on Business; without enough credits, the alert isn't sent. The first check, when a product is added, counts too. A check that fails on Amazon's side is refunded and retried.
Without credits, checks pause (nothing is charged) and resume once credits are back. The product's last_error is then insufficient_credits.
The free plan tracks 50 products, checked daily (interval_minutes 1440). A credit pack or a plan unlocks more products. Checks faster than daily need a plan or a credit pack: every 60 minutes with a pack or Starter, 30 with Pro, 5 with Business. Accepted values: 5, 30, 60, 360, 720, 1440.
The free plan also includes 200 API and MCP requests a month (UTC) and reads the last 30 days of price history: answers with a history say it with history_days and history_limited. Past the monthly requests, the API answers 402 api_limit until the 1st. A credit pack or a plan lifts both limits. The Chrome extension's requests and GET /account, which tells how many requests are left, aren't counted.
On the free plan, alerts email for the first 5 products added among the active ones with an alert set (alert_on_drop or target_price). The others stay tracked, without emails, and show alerts_paused: true until one of those has its alert turned off or is paused. A credit pack or a plan alerts on every product. Both settings can be set on any product either way.
An alert email uses credits on top of the check that found it, fewer on bigger plans: alert_credits in GET /account says how many. Without enough credits, the email isn't sent; nothing is charged when alert emails are turned off, and an email that fails to send is refunded.
Every paid plan can be billed monthly, or yearly for the price of 10 months. Either way, the credits refill every month to the plan's allowance; unused credits don't roll over.
Reading every offer of a product on Amazon (POST /offers) costs 1 credit, refunded if Amazon doesn't answer. A read made in the last 3 hours is shared, for free, and GET /offers shows what's known without ever spending one.
Searching Amazon (GET /search) uses no credit, limited to 30 searches per hour per account. Neither does the history of any ASIN (GET /history), limited to 600 reads per hour. 429 beyond.
MCP server
The MCP server lets Claude, ChatGPT, Cursor or any MCP client track products and read price histories for you. It uses Streamable HTTP with stateless JSON responses at https://www.asin.dev/api/mcp. Clients that support OAuth, like Claude and ChatGPT, only need this URL: you log in and allow access once. Others take an API key in the Authorization header, or ?key= for clients that only accept a URL. Your dashboard has one-click setups for each client.
Current plan, remaining credits, how many products are tracked, the credits each alert email costs, the days of history the account reads and, on the free plan, the requests left this month (this call isn't counted). Each price check of a tracked product costs 1 credit; a product checked daily uses about 30 credits a month. Each alert email costs 20 credits on the free plan, 10 with credit packs, 10 on Starter, 3 on Pro, 1 on Business; without enough credits, the alert isn't sent.
Search Amazon by keywords to find products and their ASIN, with the price, rating and reviews shown in the results. Free, limited to 30 searches per hour.
Add an Amazon product (ASIN, link or short link) to the watchlist and check its price now (waits up to 45 seconds for the check). Each price check of a tracked product costs 1 credit; a product checked daily uses about 30 credits a month. Each alert email costs 20 credits on the free plan, 10 with credit packs, 10 on Starter, 3 on Pro, 1 on Business; without enough credits, the alert isn't sent. Returns the current price; checking is still true if the check took longer, then read it later with get_price_history. If last_error is product_not_found, found_on lists the marketplaces where the ASIN exists: ask the user, then track it there.
the tracked product: product_id, title, price, currency, lowest_price…
list_productsRead-only
The watchlist, newest first, with each product's latest price, lowest and highest price and recent trend. Use filter for questions like "what dropped?" (drops), "what reached my target?" (target), "what's out of stock?" (out_of_stock) or "anything wrong?" (attention).
Arguments
asin?, marketplace?, filter?, page?, limit?
Returns
products (each with trend), total, page
get_price_historyRead-only
A tracked product with every price read of the period, oldest first, including reads made before it was added (created_at says when). A history of more than 5000 points is thinned evenly, keeping its first and last point. On the free plan, the last 30 days (history_limited says when the period was cut). At most 2 price histories per request.
Arguments
product_id, days?
Returns
the product, history_days, history_limited and history: price, in_stock, coupon, seller, checked_at
get_offersRead-only
Who sells a product on a marketplace and at what price, as last read, cheapest first, with Amazon's own price and the cheapest new and used offers. Free: it never reads Amazon. When fetched_at is null nobody read them yet: offer fetch_offers, which costs 1 credit.
Reads a product's offers on Amazon for 1 credit: use it when the user asks who sells it, Amazon's price or a used one, and get_offers has nothing recent. Say so first. A read from the last 3 hours is returned instead, for free.
Arguments
asin, marketplace?, refresh?
Returns
the same as get_offers
get_asin_historyRead-only
Every price Asin read for an ASIN on a marketplace, tracked by the user or not, with the lowest, highest and average of those prices. A history of more than 5000 points is thinned evenly, keeping its first and last point. Instant and without credits: nothing is read from Amazon, so an ASIN nobody tracked yet has an empty history. Use it to judge a price before tracking. On the free plan, the last 30 days (history_limited says when the period was cut). At most 2 price histories per request.
Set a target price, drop alerts, the check interval or pause a tracked product. Send only what changes. Checks faster than daily need a plan or a credit pack: every 60 minutes with a pack or Starter, 30 with Pro, 5 with Business. On the free plan, alerts (price drop, back in stock, target price) email for the first 5 products added among the active ones with an alert set; the others stay tracked, without emails (alerts_paused: true), until one of those has its alert turned off or is paused. A plan or a credit pack alerts on every product. alert_on_drop and target_price can be set on any product either way.
Read the product's price on Amazon right away (1 credit), at most once per 5 minutes; earlier calls return it unchanged. A paused product has to be resumed first. Waits up to 45 seconds for the check. Read last_error if the check didn't go through.
Arguments
product_id
Returns
the product with its latest price
untrack_productDeletes data
Remove a product from the watchlist, with its price history.
Arguments
product_id
Returns
deleted, product_id
Arguments and results use the same names as the REST API, so the product object and states apply as-is. A failed tool call returns its message with the error code in parentheses, e.g. (product_limit).
Try asking
Track this for me and tell me when it drops under $50: https://www.amazon.com/dp/B09DFCB66S
Which of my products are cheaper than when I added them?
Show the price history of the AirPods over the last 3 months.
Anything out of stock or broken on my watchlist?
Check the PS5 price on amazon.de now.
Start tracking
Create an account, confirm your email and get 1500 free credits to try the API.