Fetching a product price
TheGET /api/amazon/product endpoint returns a price object for every product. The object contains four fields: symbol, value, currency, and display. The value field is always a numeric float, making it safe to use directly in comparisons without any string parsing.
data.amazonProduct object in the response:
price.display when you want to render the price to users. Use price.value when you want to store or compare it programmatically.
Monitoring across marketplaces
Prices vary significantly between Amazon’s regional stores. The same ASIN can carry a different price on Amazon.co.uk versus Amazon.de due to local currency rates, regional competition, Prime availability, and import costs. Glade API normalizes all price objects to the same shape regardless of marketplace, so your comparison logic stays the same everywhere. The following JavaScript example fetches the same ASIN from the US, UK, and DE marketplaces in parallel usingPromise.all, then returns a unified array you can render or persist:
Detecting price drops
To detect a price drop, you need to compare the current price against a previously stored value. The pattern is simple: persist the last knownprice.value in a database or cache after each successful fetch, then compare it to the next fetch’s result.
get_price returns None when the product has no listed price (for example, when it is temporarily out of stock and price data is unavailable). Always guard against None before storing or comparing values.
A recommended polling pattern:
1
Fetch and store the baseline price
On first run, call
get_price and write the result to your database as the baseline.2
Schedule a recurring poll
Use a cron job or task queue to call
get_price at your desired interval (for example, every hour).3
Compare and alert
Call
check_price_drop with the stored baseline. If it returns True, fire your alert — email, push notification, webhook, or otherwise.4
Update the stored price
After alerting (or even if no drop occurred), overwrite the stored baseline with the current price so future comparisons reflect the latest value.
Tracking third-party offers
The buy-box price is not always the cheapest option. Third-party sellers often list the same ASIN at a lower price, sometimes with free shipping. UseGET /api/amazon/product/offers to retrieve all active seller listings for an ASIN.
To find the lowest total cost, iterate offers and sum
price.value with any delivery cost. Filtering to conditionIsNew: true and delivery.fulfilledByAmazon: true narrows results to the most reliable FBA-fulfilled new listings.
Checking coupons and deals
Amazon regularly applies clip-and-save coupons and time-limited deals to products. Glade API surfaces both. Coupons: Products with an active coupon include acoupon field containing a human-readable label string, for example "Save $5.00" or "10% off". Check this field after fetching product details to include savings in your price comparisons.
Deals: Use GET /api/amazon/deals to browse currently active deals across categories. The endpoint returns lightning deals, best deals, and other promotional pricing — useful for building a deal-alert feature or scanning a category for temporarily discounted products.

