Amazon Reviews API

Scrape Amazon product reviews into structured data JSON/CSV with ScraperAPI in NodeJS. Extract ratings, verified purchases, and sentiment analysis by ASIN.

This endpoint will retrieve reviews for a specified product from an Amazon reviews page and transform it into usable JSON.

import fetch from 'node-fetch';
fetch(`https://api.scraperapi.com/structured/amazon/review?
api_key=APIKEY&asin=ASIN&country=COUNTRY&tld=TLD`)
.then(response => {
console.log(response)
})
.catch(error => {
console.log(error)
})
Parameters
Details

API_KEY (required)

User account’s normal API key.

ASIN (required)

Amazon Standard Identification Number. Please not that ASIN's are market specific (TLD). You can usually find the ASINs in the URL of an Amazon product (example: B07FTKQ97Q).

TLD

Amazon market to be scraped.

Valid values include:

com (amazon.com)

co.uk (amazon.co.uk)

ca (amazon.ca)

de (amazon.de)

es (amazon.es)

fr (amazon.fr)

it (amazon.it)

co.jp (amazon.co.jp)

in (amazon.in)

cn (amazon.cn)

com.sg (amazon.com.sg)

com.mx (amazon.com.mx)

ae (amazon.ae)

com.br (amazon.com.br)

nl (amazon.nl)

com.au (amazon.com.au)

com.tr (amazon.com.tr)

sa (amazon.sa)

se (amazon.se)

pl (amazon.pl)

COUNTRY

Valid values are two letter country codes for which we offer Geo Targeting (e.g. “au”, “es”, “it”, etc.).

Where an amazon domain needs to be scraped from another country (e.g. scraping amazon.com from Canada to get Canadian shipping information), both TLD and COUNTRY parameters must be specified.

OUTPUT_FORMAT

For structured data methods we offer CSV and JSON output. JSON is default if parameter is not added. Options:

  • csv

  • json

REF

A reference string used by amazon.

For example: olp_f_usedAcceptable

aod_dpdsk_used_1 (used offers) aod_dpdsk_new_1 (new offers) aod_dpdsk_new_0_cart (prob. opening a new cart)

dp_start-bbf_1_glance (adding to cart) aod-swatch-id-usedAcceptable

FILTER_BY_STAR

Filter the results by stars.

All values: all_stars

five_star

four_star

three_star

two_star

one_star

All positive: positive

All critical: critical

REVIEW_TYPE

Filter the results by type. All values: all reviewers: all_reviews

Verified purchase only: avp_only_reviews

PAGE_NUMBER

Paginating the result. For example: 1

ZIP Code Targeting

To find out mote about ZIP Code targeting, please follow this link

Sample Response

Last updated

Was this helpful?