# Amazon Search Scraper (`amazon-scraper/amazon-search-scraper`) Actor

This Amazon Search Scraper allows you to scrape the products on Amazon. It extracts data from Amazon search pages in structured formats such as JSON, XML, CSV, or Excel.

- **URL**: https://apify.com/amazon-scraper/amazon-search-scraper.md
- **Developed by:** [Amazon Scraper](https://apify.com/amazon-scraper) (community)
- **Categories:** E-commerce, SEO tools, Developer tools
- **Stats:** 333 total users, 58 monthly users, 99.9% runs succeeded, 3 bookmarks
- **User rating**: 3.32 out of 5 stars

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### ⭐️ What is Amazon Search Term Scraper?

This Amazon Search Terms Scraper allows you to scrape the products on Amazon. It extracts data from Amazon search pages in structured formats such as JSON, XML, CSV, or Excel. With this Amazon Scraper API, you will be able to:

- extract data from different domains: US, GB, DE, FR, ES, IN, JP, AU and IT.
- extract Amazon products: price, list price, product image, reviews, etc.
- For examples of URLs that be scraped, head over to the [Input section](https://apify.com/amazon-scraper/amazon-search-terms-scraper#input-parameters).

### Input parameters

You can scrape Amazon Products by Search Term URLs from 9 different Amazon domains: .com, com.au, .in, co.jp, .co.uk, .de, .fr, .es and .it. You can add as many URLs as you want.

Here's an input example of acceptable Amazon URLs:

- https://www.amazon.com/s?k=iphone
- https://www.amazon.co.uk/s?k=iphone
- https://www.amazon.de/s?k=iphone
- https://www.amazon.fr/s?k=iphone
- https://www.amazon.com.au/s?k=iphone
- https://www.amazon.in/s?k=iphone
- https://www.amazon.es/s?k=iphone
- https://www.amazon.it/s?k=iphone
- https://www.amazon.co.jp/s?k=iphone

### Related Amazon Scrapers

- [Amazon Bestsellers Scraper](https://apify.com/amazon-scraper/amazon-bestsellers-scraper)
- [Amazon Product Offers Scraper](https://apify.com/amazon-scraper/amazon-product-offers-scraper)

### Output example

![Image](https://i.imgur.com/97qTNHn.png)

##### flattenResults: true

```json
{
	"domain": "www.amazon.com",
	"query": "iphone",
	"page": 1,
	"currency": "USD",
	"position": 14,
	"title": "I14 Pro Max Unlocked Cell Phone,Long Battery Life 6.82\" HD Screen Unlocked Phones,Android13 6+256GB Smartphone with 128G Memory Card,Dual SIM/Fingerprint Lock/Face ID/GPS (Blue)",
	"asin": "B0DBRH4W9W",
	"link": "https://www.amazon.com/SLICE-RED-Android13-Smartphone-Fingerprint/dp/B0DBRH4W9W/ref=sr_1_14?dib=eyJ2IjoiMSJ9.PVBa-8SBs8YL09FoA-O3Rgofk9aTxU1wcKQ5Qc9UGhf2h9C9YQBqRo4HI6PFfSMMYQhzYq0vxQy4gkrAdlpQX1FzZB3sK3q8HMAanoKP7Mf_14N3VxhD0YtDxqhIuhD0EvgdAL5xIOle7GcBhM5G0Da_ZW7cI7QVyt4Cfei9d0XJbkRfAh07fTG_xbGUxaMnlPrh2Aw71Ay8q5jGQjjJ9jbE1D1Nye7x-bGGt1P_6gE.66DwgtkFaZS0t5uUQDRktbKiIUvdCK9Sfhs_oYeNsN0&dib_tag=se&keywords=iphone&qid=1747988900&sr=8-14",
	"image": "https://m.media-amazon.com/images/I/61NfnaEUqOL._AC_UY218_.jpg",
	"price": {
		"price": "$158.99"
	},
	"reviews": {
		"stars": 3,
		"count": 276
	},
	"bought_in_past_month": 200,
	"color_swatches": [
		{
			"type": "normal",
			"label": "Blue",
			"link": "https://www.amazon.com/SLICE-RED-Android13-Smartphone-Fingerprint/dp/B0DBRH4W9W/ref=cs_sr_dp_1?dib=eyJ2IjoiMSJ9.PVBa-8SBs8YL09FoA-O3Rgofk9aTxU1wcKQ5Qc9UGhf2h9C9YQBqRo4HI6PFfSMMYQhzYq0vxQy4gkrAdlpQX1FzZB3sK3q8HMAanoKP7Mf_14N3VxhD0YtDxqhIuhD0EvgdAL5xIOle7GcBhM5G0Da_ZW7cI7QVyt4Cfei9d0XJbkRfAh07fTG_xbGUxaMnlPrh2Aw71Ay8q5jGQjjJ9jbE1D1Nye7x-bGGt1P_6gE.66DwgtkFaZS0t5uUQDRktbKiIUvdCK9Sfhs_oYeNsN0&dib_tag=se&keywords=iphone&qid=1747988900&sr=8-14",
			"color": "#8394AE"
		},
		{
			"type": "normal",
			"label": "Black",
			"link": "https://www.amazon.com/SLICE-RED-Android13-Smartphone-Fingerprint/dp/B0DHDCFS1B/ref=cs_sr_dp_2?dib=eyJ2IjoiMSJ9.PVBa-8SBs8YL09FoA-O3Rgofk9aTxU1wcKQ5Qc9UGhf2h9C9YQBqRo4HI6PFfSMMYQhzYq0vxQy4gkrAdlpQX1FzZB3sK3q8HMAanoKP7Mf_14N3VxhD0YtDxqhIuhD0EvgdAL5xIOle7GcBhM5G0Da_ZW7cI7QVyt4Cfei9d0XJbkRfAh07fTG_xbGUxaMnlPrh2Aw71Ay8q5jGQjjJ9jbE1D1Nye7x-bGGt1P_6gE.66DwgtkFaZS0t5uUQDRktbKiIUvdCK9Sfhs_oYeNsN0&dib_tag=se&keywords=iphone&qid=1747988900&sr=8-14",
			"color": "#444140"
		},
		{
			"type": "normal",
			"label": "Gold",
			"link": "https://www.amazon.com/SLICE-RED-Android13-Smartphone-Fingerprint/dp/B0DL2BC6K5/ref=cs_sr_dp_3?dib=eyJ2IjoiMSJ9.PVBa-8SBs8YL09FoA-O3Rgofk9aTxU1wcKQ5Qc9UGhf2h9C9YQBqRo4HI6PFfSMMYQhzYq0vxQy4gkrAdlpQX1FzZB3sK3q8HMAanoKP7Mf_14N3VxhD0YtDxqhIuhD0EvgdAL5xIOle7GcBhM5G0Da_ZW7cI7QVyt4Cfei9d0XJbkRfAh07fTG_xbGUxaMnlPrh2Aw71Ay8q5jGQjjJ9jbE1D1Nye7x-bGGt1P_6gE.66DwgtkFaZS0t5uUQDRktbKiIUvdCK9Sfhs_oYeNsN0&dib_tag=se&keywords=iphone&qid=1747988900&sr=8-14",
			"color": "#E2D2BC"
		},
		{
			"type": "normal",
			"label": "Gray",
			"link": "https://www.amazon.com/SLICE-RED-Android13-Smartphone-Fingerprint/dp/B0DT4PNJLZ/ref=cs_sr_dp_4?dib=eyJ2IjoiMSJ9.PVBa-8SBs8YL09FoA-O3Rgofk9aTxU1wcKQ5Qc9UGhf2h9C9YQBqRo4HI6PFfSMMYQhzYq0vxQy4gkrAdlpQX1FzZB3sK3q8HMAanoKP7Mf_14N3VxhD0YtDxqhIuhD0EvgdAL5xIOle7GcBhM5G0Da_ZW7cI7QVyt4Cfei9d0XJbkRfAh07fTG_xbGUxaMnlPrh2Aw71Ay8q5jGQjjJ9jbE1D1Nye7x-bGGt1P_6gE.66DwgtkFaZS0t5uUQDRktbKiIUvdCK9Sfhs_oYeNsN0&dib_tag=se&keywords=iphone&qid=1747988900&sr=8-14",
			"color": "#ADA9A4"
		},
		{
			"type": "normal",
			"label": "Purple",
			"link": "https://www.amazon.com/SLICE-RED-Android13-Smartphone-Fingerprint/dp/B0DHD9GNRC/ref=cs_sr_dp_5?dib=eyJ2IjoiMSJ9.PVBa-8SBs8YL09FoA-O3Rgofk9aTxU1wcKQ5Qc9UGhf2h9C9YQBqRo4HI6PFfSMMYQhzYq0vxQy4gkrAdlpQX1FzZB3sK3q8HMAanoKP7Mf_14N3VxhD0YtDxqhIuhD0EvgdAL5xIOle7GcBhM5G0Da_ZW7cI7QVyt4Cfei9d0XJbkRfAh07fTG_xbGUxaMnlPrh2Aw71Ay8q5jGQjjJ9jbE1D1Nye7x-bGGt1P_6gE.66DwgtkFaZS0t5uUQDRktbKiIUvdCK9Sfhs_oYeNsN0&dib_tag=se&keywords=iphone&qid=1747988900&sr=8-14",
			"color": "#574C5D"
		},
		{
			"type": "normal",
			"label": "White",
			"link": "https://www.amazon.com/SLICE-RED-Android13-Smartphone-Fingerprint/dp/B0DL2CQ3C4/ref=cs_sr_dp_6?dib=eyJ2IjoiMSJ9.PVBa-8SBs8YL09FoA-O3Rgofk9aTxU1wcKQ5Qc9UGhf2h9C9YQBqRo4HI6PFfSMMYQhzYq0vxQy4gkrAdlpQX1FzZB3sK3q8HMAanoKP7Mf_14N3VxhD0YtDxqhIuhD0EvgdAL5xIOle7GcBhM5G0Da_ZW7cI7QVyt4Cfei9d0XJbkRfAh07fTG_xbGUxaMnlPrh2Aw71Ay8q5jGQjjJ9jbE1D1Nye7x-bGGt1P_6gE.66DwgtkFaZS0t5uUQDRktbKiIUvdCK9Sfhs_oYeNsN0&dib_tag=se&keywords=iphone&qid=1747988900&sr=8-14",
			"color": "#DBDBDB"
		}
	],
	"delivery": "FREE delivery Tue, Jun 3 to Hong Kong",
	"sponsored": false,
	"prime": false
}
```

#### flattenResults: false

![image](https://i.imgur.com/aTW91w6.png)

```json
{
  "domain": "www.amazon.com",
  "query": "Beach towel",
  "page": 1,
  "title": "Amazon.com : Beach towel",
  "currency": "USD",
  "global_location": "Delivering to ...",
  "results": [
    {
      "position": 1,
      "title": "Amazon Basics 100% Cotton Terry Cabana Stripe Pool & Beach Towel ...",
      "asin": "B01G2MFIDS",
      "link": "https://www.amazon.com/...",
      "image": "https://m.media-amazon.com/images/...",
      "sponsored": true,
      "prime": false,
      "price": {
        "price": "$15.81",
        "list_price": "$19.99"
      },
      "reviews": {
        "stars": 4.5,
        "count": 13721
      },
      "bought_in_past_month": 600,
      "amazons_choice": "Best Seller",
      "variation_options_link": {
        "sizes": "4 sizes",
        "link": "https://www.amazon.com/..."
      },
      "color_swatches": [
        {
          "type": "normal",
          "label": "Green",
          "link": "https://www.amazon.com/...",
          "color": "#00AA00"
        },
        {
          "type": "other",
          "color_info": "+3 other colors/patterns",
          "link": "https://www.amazon.com/..."
        }
      ],
      "delivery": "FREE delivery ...",
      "other_fields": "..."
    }
  ],
  "filter": [
    {
      "position": 1,
      "title": "Color",
      "items": [
        {
          "type": "normal",
          "position": 1,
          "link": "https://www.amazon.com/..."
        }
      ]
    }
  ],
  "glance_icons": [],
  "popular_shopping_ideas": [
    {
      "position": 1,
      "name": "Turkish",
      "link": "https://www.amazon.com/..."
    }
  ],
  "deals": [
    {
      "name": "All Discounts",
      "link": "https://www.amazon.com/..."
    },
    {
      "name": "Today's Deals",
      "link": "https://www.amazon.com/..."
    }
  ],
  "other_items_to_consider": [],
  "url": "https://www.amazon.com/s?k=Beach+towel&page=1"
}
```

`popular_shopping_ideas`

```JSON
{
 "popular_shopping_ideas": [
     {
       "position": 1,
       "name": "Turkish",
       "link": "https://www.amazon.com/s?k=turkish+beach+towel&ref=sr_nr_p_cosmo_multi_pt_0"
     },
     {
       "position": 2,
       "name": "Microfiber",
       "link": "https://www.amazon.com/s?k=microfiber+beach+towel&ref=sr_nr_p_cosmo_multi_pt_1"
     },
     {
       "position": 3,
       "name": "Cotton",
       "link": "https://www.amazon.com/s?k=cotton+beach+towel&ref=sr_nr_p_cosmo_multi_pt_2"
     },
     {
       "position": 4,
       "name": "Quick Dry",
       "link": "https://www.amazon.com/s?k=quick+dry+beach+towel&ref=sr_nr_p_cosmo_multi_pt_3"
     },
     {
       "position": 5,
       "name": "Fantasy",
       "link": "https://www.amazon.com/s?k=fantasy+beach+towel&ref=sr_nr_p_cosmo_multi_pt_4"
     },
     {
       "position": 6,
       "name": "Fantasy",
       "link": "https://www.amazon.com/s?k=fantasy+beach+towel&ref=sr_nr_p_cosmo_multi_pt_4"
     },
     {
       "position": 7,
       "name": "Thin",
       "link": "https://www.amazon.com/s?k=thin+beach+towel&ref=sr_nr_p_cosmo_multi_pt_5"
     },
     {
       "position": 8,
       "name": "Lightweight",
       "link": "https://www.amazon.com/s?k=lightweight+beach+towel&ref=sr_nr_p_cosmo_multi_pt_6"
     },
     {
       "position": 9,
       "name": "Halloween",
       "link": "https://www.amazon.com/s?k=halloween+beach+towel&ref=sr_nr_p_cosmo_multi_pt_7"
     },
     {
       "position": 10,
       "name": "Print",
       "link": "https://www.amazon.com/s?k=print+beach+towel&ref=sr_nr_p_cosmo_multi_pt_8"
     },
     {
       "position": 11,
       "name": "Bohemian",
       "link": "https://www.amazon.com/s?k=bohemian+beach+towel&ref=sr_nr_p_cosmo_multi_pt_9"
     },
     {
       "position": 12,
       "name": "Floral",
       "link": "https://www.amazon.com/s?k=floral+beach+towel&ref=sr_nr_p_cosmo_multi_pt_10"
     },
     {
       "position": 13,
       "name": "Animal",
       "link": "https://www.amazon.com/s?k=animal+beach+towel&ref=sr_nr_p_cosmo_multi_pt_11"
     },
     {
       "position": 14,
       "name": "Cat",
       "link": "https://www.amazon.com/s?k=cat+beach+towel&ref=sr_nr_p_cosmo_multi_pt_12"
     },
     {
       "position": 15,
       "name": "Star",
       "link": "https://www.amazon.com/s?k=star+beach+towel&ref=sr_nr_p_cosmo_multi_pt_13"
     },
     {
       "position": 16,
       "name": "Anime",
       "link": "https://www.amazon.com/s?k=anime+beach+towel&ref=sr_nr_p_cosmo_multi_pt_14"
     },
     {
       "position": 17,
       "name": "Christmas",
       "link": "https://www.amazon.com/s?k=christmas+beach+towel&ref=sr_nr_p_cosmo_multi_pt_15"
     },
     {
       "position": 18,
       "name": "Terry Cloth",
       "link": "https://www.amazon.com/s?k=terry+cloth+beach+towel&ref=sr_nr_p_cosmo_multi_pt_16"
     },
     {
       "position": 19,
       "name": "Sandproof",
       "link": "https://www.amazon.com/s?k=sandproof+beach+towel&ref=sr_nr_p_cosmo_multi_pt_17"
     },
     {
       "position": 20,
       "name": "Sea Turtle",
       "link": "https://www.amazon.com/s?k=sea+turtle+beach+towel&ref=sr_nr_p_cosmo_multi_pt_18"
     },
     {
       "position": 21,
       "name": "Harry Potter",
       "link": "https://www.amazon.com/s?k=harry+potter+beach+towel&ref=sr_nr_p_cosmo_multi_pt_19"
     },
     {
       "position": 22,
       "name": "Birthday",
       "link": "https://www.amazon.com/s?k=birthday+beach+towel&ref=sr_nr_p_cosmo_multi_pt_20"
     },
     {
       "position": 23,
       "name": "Jeep",
       "link": "https://www.amazon.com/s?k=jeep+beach+towel&ref=sr_nr_p_cosmo_multi_pt_21"
     },
     {
       "position": 24,
       "name": "Hello Kitty",
       "link": "https://www.amazon.com/s?k=hello+kitty+beach+towel&ref=sr_nr_p_cosmo_multi_pt_22"
     },
     {
       "position": 25,
       "name": "Mickey Mouse",
       "link": "https://www.amazon.com/s?k=mickey+mouse+beach+towel&ref=sr_nr_p_cosmo_multi_pt_23"
     },
     {
       "position": 26,
       "name": "Butterfly",
       "link": "https://www.amazon.com/s?k=butterfly+beach+towel&ref=sr_nr_p_cosmo_multi_pt_24"
     }
   ]
}
```

# Changelog

This Actor's version history is a separate document: https://apify.com/amazon-scraper/amazon-search-scraper/changelog.md

# Actor input Schema

## `searchTermUrls` (type: `array`):

Amazon Search Term URLs from 9 different Amazon domains: **.com, com.au, .in, co.jp, .co.uk, .de, .fr, .es and .it.**

## `flattenResults` (type: `boolean`):

When enabled, only stores the results array instead of the complete data object. Default is false which stores the complete data object.

## `maxPages` (type: `integer`):

Max pages to scrape. Default is 1

## `retries` (type: `integer`):

Retries to get which is has blocked

## Actor input object example

```json
{
  "searchTermUrls": [
    "https://www.amazon.com/s?k=Beach+towel"
  ],
  "flattenResults": false,
  "maxPages": 1,
  "retries": 3
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchTermUrls": [
        "https://www.amazon.com/s?k=Beach+towel"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("amazon-scraper/amazon-search-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "searchTermUrls": ["https://www.amazon.com/s?k=Beach+towel"] }

# Run the Actor and wait for it to finish
run = client.actor("amazon-scraper/amazon-search-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchTermUrls": [
    "https://www.amazon.com/s?k=Beach+towel"
  ]
}' |
apify call amazon-scraper/amazon-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,amazon-scraper/amazon-search-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/434bTYc7ZZjlC3VLS/builds/4kUe1YMrRH1gdcuTR/openapi.json
