← All plugins

Amazon

Search Amazon stores and read product details and customer reviews (read-only) using the signed-in browser session.

amazon v1.0.0 3 commands

amazon/product

read-only

One product page: title, brand, price and currency, list price, availability, rating, review count, feature bullets, details table (key → value) and images. Amazon may open another variation; `asin` is the one shown.

await page.runPlugin("amazon/product")

Arguments

NameTypeDefaultDescription
urlstringProduct URL on any Amazon store (/dp/ASIN, /gp/product/ASIN); its store is used.
asinstring
/^[A-Za-z0-9]{10}$/
ASIN, e.g. B0CG1LGWR6 (instead of url).
storestringStore domain, e.g. amazon.com (default), amazon.co.uk, amazon.de, amazon.co.jp, amazon.ca, amazon.fr, amazon.it, amazon.es, amazon.in, amazon.com.au, amazon.sg. A product url decides the store itself.

Returns

{
  asin: string,
  store: string,
  title: string,
  brand: string | null,
  price: number | null,
  currency: string | null,
  listPrice?: number | null,
  availability: string | null,
  rating: number | null,
  reviews: integer | null,
  bullets: string[],
  details: object,
  image: string,
  images: string[],
  url: string
}

amazon/reviews

read-only

Customer reviews of a product: author, stars, title, date and country line as shown, verified purchase, text. Reads the reviews page (/product-reviews/ASIN, loading more up to limit) when the store shows it; amazon.com and some other stores require sign-in for it, and then only the reviews on the product page are returned (`source: "product_page"`, `signInRequired: true`; amazon.com shows none there when signed out).

await page.runPlugin("amazon/reviews")

Arguments

NameTypeDefaultDescription
urlstringProduct URL on any Amazon store (/dp/ASIN, /gp/product/ASIN); its store is used.
asinstring
/^[A-Za-z0-9]{10}$/
ASIN, e.g. B0CG1LGWR6 (instead of url).
storestringStore domain, e.g. amazon.com (default), amazon.co.uk, amazon.de, amazon.co.jp, amazon.ca, amazon.fr, amazon.it, amazon.es, amazon.in, amazon.com.au, amazon.sg. A product url decides the store itself.
limitinteger
1–100
10Maximum number of reviews.

Returns

{
  asin: string,
  store: string,
  source: "reviews_page" | "product_page",
  signInRequired: boolean,
  rating?: number | null,
  ratingsCount?: integer | null,
  reviews: {
    id: string,
    author: string,
    rating: number,
    title?: string | null,
    date: string,
    verified: boolean,
    text: string
  }[]
}