vøiddo guidesAll Actors on Apify

Amazon Search Scraper: how to get Monthly Sales, Badges, Prices as JSON/CSV (API, Python, no code)

Scrape Amazon.com search results into clean product rows: ASIN, title, price, list price, star rating, ratings count, monthly sales badge, Best Seller and Overall Pick badges, sponsored flag, image and link. This guide shows the output fields, a working input, and Python, JavaScript and cURL code for the Actor v0iddo/amazon-search-scraper on Apify.

Open Amazon Search 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
asinASINtextB0FQFB8FMG
titleTitletextApple AirPods Pro 3 Wireless Earbuds with Active Noise Cancellation
pricePricenumber199
ratingStarsnumber4.4
ratingsCountRatingsnumber445
badgeBadgetext
sponsoredSponsoredtrue/falsefalse
urlProduct URLURLhttps://www.amazon.com/dp/B0FQFB8FMG
searchTermtextwireless earbuds
pagenumber1
positionnumber1
currencytextUSD
listPricenumber249
boughtPastMonthtext10K+ bought in past month
primetrue/falsefalse
imagetexthttps://m.media-amazon.com/images/I/61solmQSSlL._AC_UY218_.jpg

Input example

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

{
  "searchTerms": [
    "wireless earbuds"
  ],
  "maxPages": 1,
  "maxItems": 20
}
Input fieldTypeWhat it does
searchTermsarrayWhat you would type into the Amazon search box, one per line.
searchUrlsarrayOptional Amazon.com search result URLs (with your filters already applied).
sortstringSort order for search terms (search URLs keep their own).
maxPagesintegerHow many result pages to read for each search term or URL.
includeSponsoredbooleanKeep ads in the results (they are marked with sponsored = true).
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.

[
  {
    "searchTerm": "wireless earbuds",
    "page": 1,
    "position": 1,
    "asin": "B0FQFB8FMG",
    "title": "Apple AirPods Pro 3 Wireless Earbuds with Active Noise Cancellation",
    "price": 199,
    "currency": "USD",
    "listPrice": 249,
    "rating": 4.4,
    "ratingsCount": 445,
    "boughtPastMonth": "10K+ bought in past month",
    "sponsored": false,
    "prime": false,
    "image": "https://m.media-amazon.com/images/I/61solmQSSlL._AC_UY218_.jpg",
    "url": "https://www.amazon.com/dp/B0FQFB8FMG"
  },
  {
    "searchTerm": "wireless earbuds",
    "page": 1,
    "position": 2,
    "asin": "B0HDB173YV",
    "title": "Wireless Earbuds, Bluetooth 6.0 Headphones HiFi Stereo 50H Playback LED Digital Display Ear Buds with ENC Noise Canceling Headset, IPX7 W...",
    "price": 18.97,
    "currency": "USD",
    "listPrice": 19.97,
    "rating": 4.7,
    "ratingsCount": 475,
    "boughtPastMonth": "8K+ bought in past month",
    "badge": "Overall Pick",
    "sponsored": false,
    "prime": false,
    "image": "https://m.media-amazon.com/images/I/61lW-nQhWIL._AC_UY218_.jpg",
    "url": "https://www.amazon.com/dp/B0HDB173YV"
  }
]

Code: Python, JavaScript and cURL

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

Python (apify-client)

from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run_input = {'searchTerms': ['wireless earbuds'], 'maxPages': 1, 'maxItems': 20}

run = client.actor("v0iddo/amazon-search-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 = {
  "searchTerms": [
    "wireless earbuds"
  ],
  "maxPages": 1,
  "maxItems": 20
};

const run = await client.actor('v0iddo/amazon-search-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-search-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchTerms": ["wireless earbuds"], "maxPages": 1, "maxItems": 20}'

Price

$1.00 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 $0.70 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 Search Scraper return?

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

How do I use the Amazon Search Scraper from Python?

Install the apify-client package, create a client with your Apify API token, call the Actor v0iddo/amazon-search-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.00 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 $0.70 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 Search Scraper on Apify

Related guides