vøiddo guidesAll Actors on Apify

Amazon Product Details Scraper: how to get ASIN, Price, Sales Rank as JSON/CSV (API, Python, no code)

Scrape Amazon.com product pages from ASINs or links: title, brand, price, list price, rating, ratings count, stock status, features, description, images, categories, best sellers rank, variations and product details. This guide shows the output fields, a working input, and Python, JavaScript and cURL code for the Actor v0iddo/amazon-product-scraper on Apify.

Open Amazon Product Details Scraper on Apify

What data you get

One row per result. Every row can be downloaded as JSON, CSV, Excel or HTML, or read through the API.

FieldLabelTypeExample
asinASINtextB09B8V1LZ3
titleTitletextAmazon Echo Dot (newest model) - Vibrant sounding speaker, Designed...
brandBrandtextAmazon
pricePricenumber79.99
listPriceList pricenumber
ratingStarsnumber4.7
ratingsCountRatingsnumber201463
inStockIn stocktrue/falsetrue
mainImageImageimage URLhttps://m.media-amazon.com/images/I/61J2sQtBYDL._AC_SL1500_.jpg
urlProduct URLURLhttps://www.amazon.com/dp/B09B8V1LZ3
currencytextUSD
availabilitytextIn Stock
descriptiontextEnhance your smart home hub experience with the Charcoal colored 20...
imageslist["https://m.media-amazon.com/images/I/61J2sQtBYDL._AC_SL1500_.jpg",...
variationsCountnumber6
variationAsinslist["B09B8V1LZ3", "B0HKL4CT1J", "B09B94RL1R"]

Input example

This is the input that is pre-filled on the Actor page. Change the values for your own run.

{
  "products": [
    "B09B8V1LZ3",
    "0735211299",
    "B00FLYWNYQ",
    "B09HM94VDS",
    "B0CFPJYX7P",
    "B0BP9SNVH9"
  ],
  "maxItems": 20
}
Input fieldTypeWhat it does
products (required)arrayAmazon.com ASINs such as B09B8V1LZ3, or product links such as https://www.amazon.com/dp/B09B8V1LZ3 (any link with /dp/ or /gp/product/ and the ASIN in it).
maxItemsintegerThe run stops after this many result rows.

Output sample

Real rows from a run of the Actor. Fields that name people are left out of the sample.

[
  {
    "asin": "B09B8V1LZ3",
    "url": "https://www.amazon.com/dp/B09B8V1LZ3",
    "title": "Amazon Echo Dot (newest model) - Vibrant sounding speaker, Designed for Alexa+, Great for bedrooms, dining rooms and offices, Charcoal",
    "brand": "Amazon",
    "price": 79.99,
    "currency": "USD",
    "rating": 4.7,
    "ratingsCount": 201463,
    "availability": "In Stock",
    "inStock": true,
    "description": "Enhance your smart home hub experience with the Charcoal colored 2022 Echo Dot 5th generation smart speaker featuring Alexa capabilities...",
    "images": [
      "https://m.media-amazon.com/images/I/61J2sQtBYDL._AC_SL1500_.jpg",
      "https://m.media-amazon.com/images/I/71hNp8d9WvL._AC_SL1500_.jpg",
      "https://m.media-amazon.com/images/I/71kDL97LTgL._AC_SL1500_.jpg"
    ],
    "mainImage": "https://m.media-amazon.com/images/I/61J2sQtBYDL._AC_SL1500_.jpg",
    "variationsCount": 6,
    "variationAsins": [
      "B09B8V1LZ3",
      "B0HKL4CT1J",
      "B09B94RL1R"
    ]
  },
  {
    "asin": "0735211299",
    "url": "https://www.amazon.com/dp/0735211299",
    "title": "Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones",
    "price": 8.55,
    "currency": "USD",
    "listPrice": 27,
    "rating": 4.8,
    "ratingsCount": 150297,
    "availability": "Only 1 left in stock - order soon.",
    "inStock": true,
    "description": "The #1 New York Times bestseller. Over 25 million copies sold! Translated into 60+ languages! Tiny Changes, Remarkable Results No matter...",
    "images": [
      "https://m.media-amazon.com/images/I/8106lPWfXpL._SL1500_.jpg"
    ],
    "mainImage": "https://m.media-amazon.com/images/I/8106lPWfXpL._SL1500_.jpg",
    "categories": [
      "Books",
      "Health, Fitness & Dieting",
      "Psychology & Counseling"
    ],
    "dimensions": "6.36 x 1.11 x 9.27 inches",
    "weight": "1.13 pounds",
    "specifications": {
      "Publisher": "Avery",
      "Publication date": "October 16, 2018",
      "Edition": "First Edition",
      "Language": "English",
      "Print length": "320 pages",
      "ISBN-10": "0735211299",
      "ISBN-13": "978-0735211292",
      "Item Weight": "1.13 pounds",
      "Dimensions": "6.36 x 1.11 x 9.27 inches"
    }
  }
]

Code: Python, JavaScript and cURL

Get your API token in Apify Console under Settings, then Integrations. The Actor id is v0iddo/amazon-product-scraper.

Python (apify-client)

from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run_input = {'products': ['B09B8V1LZ3',
              '0735211299',
              'B00FLYWNYQ',
              'B09HM94VDS',
              'B0CFPJYX7P',
              'B0BP9SNVH9'],
 'maxItems': 20}

run = client.actor("v0iddo/amazon-product-scraper").call(run_input=run_input)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

JavaScript (apify-client)

import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });

const input = {
  "products": [
    "B09B8V1LZ3",
    "0735211299",
    "B00FLYWNYQ",
    "B09HM94VDS",
    "B0CFPJYX7P",
    "B0BP9SNVH9"
  ],
  "maxItems": 20
};

const run = await client.actor('v0iddo/amazon-product-scraper').call(input);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

cURL

curl -X POST "https://api.apify.com/v2/acts/v0iddo~amazon-product-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"products": ["B09B8V1LZ3", "0735211299", "B00FLYWNYQ", "B09HM94VDS", "B0CFPJYX7P", "B0BP9SNVH9"], "maxItems": 20}'

Price

$1.50 per 1,000 results. You pay per result row. There is no separate charge per run. Higher Apify plans pay less per result, down to $1.05 per 1,000. See the pricing tab for your plan. A new Apify account gets $5 of platform credit every month.

Good to know

FAQ

What data does the Amazon Product Details Scraper return?

Each result is one row in an Apify dataset. Fields include asin, title, brand, price, listPrice, rating, ratingsCount, inStock, and more. The table above shows every field with an example value.

How do I use the Amazon Product Details Scraper from Python?

Install the apify-client package, create a client with your Apify API token, call the Actor v0iddo/amazon-product-scraper with an input like the one above, and read the rows from the run's dataset. The Python snippet above does exactly that.

Can I use it without writing code?

Yes. Open the Actor page on Apify, fill in the input form (an example is already filled in), press Start, and download the results as JSON, CSV, Excel or HTML. You can also schedule runs there.

How much does it cost?

$1.50 per 1,000 results. You pay per result row. There is no separate charge per run. Higher Apify plans pay less per result, down to $1.05 per 1,000. A new Apify account gets $5 of platform credit every month.

How do I limit the number of results?

Set the maxItems input field to the number of results you need; the run stops there, so it also caps the cost of one run. You can also set a maximum cost for a run in the run options on Apify, and the run stops when it is reached.

Can I send the results to Google Sheets, Make, Zapier or n8n?

Yes. Apify datasets connect to Google Sheets, Slack, Make, Zapier and n8n, and a webhook can call your own service when a run finishes. You can also export the dataset as JSON, CSV or Excel.

Open Amazon Product Details Scraper on Apify

Related guides