Amazon Variants Prices API

This endpoint retrieves product prices for specified ASINs, but it is only compatible with ASINs that have multiple variants (different colors, specifications, etc.).It provides prices for all variants of a single product, rather than for different Amazon products. Please note that you need to include the ASINs for all variants you'd like to get the price for. The data will then be transformed into usable JSON.

import requests
payload = {'api_key': 'APIKEY', 'asins': 'ASIN_LIST', 'country': 'COUNTRY', 'tld': 'TLD'}
r = requests.get('https://api.scraperapi.com/structured/amazon/prices', params=payload)
print(r.text)

ParametersDetails

API_KEY (required)

User accountโ€™s normal API key.

ASIN_LIST (required)

List of ASINs for example: B09B2SF11R,B09B7X1814,B09BG1CZ68

(A maximum of 8 ASINs can be included in one request)

TLD

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)

jp (amazon.co.jp)

in (amazon.in)

cn (amazon.cn)

sg (amazon.com.sg)

mx (amazon.com.mx)

ae (amazon.ae)

br (amazon.com.br)

nl (amazon.nl)

au (amazon.com.au)

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

ZIP Code Targeting

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

Sample Response

{
  "result": [
    {
      "asin": "B09B2SF11R",
      "asin_recognized": true,
      "is_available": false
    },
    {
      "asin": "B09B7X1814",
      "asin_recognized": true,
      "currency_tag": "R$",
      "price": 3222,21
      "raw_price_text": "R$ 3.222,21",
      "is_available": true
    },
    {
      "asin": "B09BG1CZ68",
      "asin_recognized": true,
      "currency_tag": "R$",
      "price": 3299,
      "raw_price_text": "R$ 3.299,00",
      "is_available": true
    }
  ]
}

Last updated