Clip Amazon coupon
Clip the coupon shown on an Amazon.com product page, by ASIN, on a signed-in browser: it ticks the coupon box next to the price, so the saving applies at checkout. Returns the coupon as the page shows it after the clip (for example "$3.70 coupon applied") and whether it was already clipped. A product whose page shows no coupon fails with an error that says so. Clipping orders nothing and spends nothing.
Inputs
asin requiredProduct ASIN, the 10 characters after /dp/ in the product URL, e.g. B0013OUNK4.
Output
asin requiredcoupon requiredThe applied coupon's text as the page shows it, e.g. "$3.70 coupon applied Limit 1 item."
clipped requiredTrue when the page shows the coupon as applied after the run.
already_clipped requiredTrue when the coupon was already applied before this run, so nothing was clicked.
FAQ
Search Amazon products
Search Amazon by free-text query, with Amazon's own filters: department, sort order, price range, and the refinements of its left column (Prime, delivery speed, brand, customer reviews, condition, seller and the product's attributes), whose values List Amazon search filters gives. Returns one page of results: query, page, zip, url, has_next_page and items (asin, title, url, price, list_price, rating, review_count, image_url, sponsored, deal, badges, formats). deal is the deal the card shows: its id, its label as Amazon writes it, and the end of its countdown when it shows one. badges are the other badges of the card, for example Amazon's Choice or a sustainability label. formats lists each edition a result links to (for example Hardcover, Kindle and Audiobook for a book), with its own ASIN, URL and price when shown. has_next_page is false on the last page, on a page past the last one (Amazon stops near page 20) and when nothing matches; then Amazon can still show a few unrelated sponsored products. Organic results are stable per page but sponsored slots rotate between fetches.
Get Amazon product
Fetch a single Amazon product page by ASIN. Returns title, byline, brand, price, list_price, rating, review_count, rating_breakdown, availability, breadcrumb, image_url, feature_bullets, description, attributes, variant_asins, deal, badges, delivery_estimate, return_policy, and seller. deal is the deal the page shows: its id, its label as Amazon writes it (for example "Limited time deal" or "Black Friday Deal") and its end time. badges are the other badges next to the title, for example Amazon's Choice. The returned asin can differ from the requested one when Amazon resolves a variant. For books, brand is null and feature_bullets and attributes are usually empty. Audible audiobook ASINs open Audible's own product page instead, so they fail at once with an error that gives that page's URL.
Get Amazon product reviews
Fetch Amazon customer reviews for a product by ASIN, on a browser signed in to Amazon: amazon.com hides the reviews from signed-out visitors, and a signed-out run fails with an error that says to sign in. It returns 10 reviews at a time, with sort, star, media, verified-purchase and keyword filters, plus a cursor for the next 10; pass it back with the same filters to continue, until no cursor comes back (Amazon stops after about 10 pages). When Amazon limits review access for the account after unusual activity, its reviews pages show only the top reviews, with no filters and no paging: reviewAccess says so, a filter or a cursor then fails with an error that says why, and Request Amazon review access asks Amazon to restore access. Returns the product's rating summary and each review's rating, title, text, date, reviewer, country, variation, helpful votes, verified badge, Vine badge, images and videos. With sortBy=recent the pages can shift between calls as new reviews arrive; sortBy=helpful is more stable.
