Get current Amazon user
Automatically get current Amazon user on amazon.com. Report whether this browser is signed in to Amazon.com and, if so, the account's first name from the header greeting (Amazon hides the full name and email behind a password re-check). Being signed out is reported as a normal answer (loggedIn false), not an error, so it can be used to check a session before running other Amazon scripts.
Input
None
Output
loggedIn requiredfirstName optionalFAQ
Search Amazon products
Search Amazon by free-text query and return one page of results. Returns query, page, zip, url, and items (asin, title, url, price, list_price, rating, review_count, image_url, sponsored, formats). 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. Organic results are stable per page but sponsored slots rotate between fetches; pagination caps around 20 pages.
Get Amazon product reviews
Fetch Amazon customer reviews for an ASIN. Works signed in or anonymously, and says which surface it used. With a session it reads the full /product-reviews/ list: one page of 10, with sort, star, media, reviewer and keyword filters, up to Amazon's 10-page cap. Without one it reads the product page's reviews medley instead (page 1 of top reviews, no filters, other-country reviews included), returns authenticated:false and source:product_page_medley, and throws rather than quietly ignoring a filter or page it cannot serve. Returns product (asin, title, overallRating, totalRatings, reviewCount, starBreakdown) and reviews (id, rating, title, text, date, reviewer, country, variation, helpfulVotes, verifiedPurchase, vine, images, videos). With sortBy=recent a given page is not stable across calls as new reviews arrive, so prefer sortBy=helpful for replay.
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, delivery_estimate, return_policy, and seller. 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.
