# Amazon Search Scraper

Scrape Amazon search results by keyword or search URL across 22 marketplaces. Collect product names, ASINs, prices, ratings, image links, delivery text, and sponsored ad flags.

- Template page: [https://www.octoparse.com/template/amazon-search-scraper](https://www.octoparse.com/template/amazon-search-scraper)
- Categories: E-Commerce
- Status: `PUBLISHED`
- Run mode: `CLOUD`

## Pricing

Current price: **$0.3/1,000 lines**. Billing is based on output rows; an Octoparse subscription may be required.

## What is an Octoparse template?

An Octoparse template is a ready-to-use scraping workflow with predefined inputs and structured outputs. Use the exact parameter keys below; do not invent parameters.

## Overview

This ready-to-use template collects structured data from search-results pages.

## Output

The current workflow extracts 24 fields, including `ASIN`, `Current_price`, `Current_time`, `Delivery`, `Image_link`, `In_stock`, `Keyword`, `Original_price`, `Page`, `Page_URL`, `Product_URL`, `Product_URL_clean`, `Product_name`, `Product_status`, `Rating_count`, `Recent_purchase`, `Result_index`, `Search_category`, `Shipping_free`, `Shipping_price`, `Site`, `Stars`, `adTag`, `input_parameters`.

## Use Cases

- Use structured results for research, comparison, and monitoring.
- Collect rows without building the extraction workflow from scratch.
- Combine results with other templates for downstream enrichment.
- Review a representative result before starting a large batch.

## Why Octoparse

- **No coding required:** complete Search Term (up to 10,000), Marketplaces, Amazon Search URL (up to 10,000) and start the template in cloud mode.
- **Flexible export:** review and export results as CSV, Excel, or JSON.

## Input

At least one of the following input combinations is required:

- **Search Term (up to 10,000)**
- **Amazon Search URL (up to 10,000)**

### Search Term (up to 10,000)

Required when using its input combination. Search Term (up to 10,000) Constraints: minItems=1; maxItems=10000; items.minLength=1; items.maxLength=5000.

### Marketplaces

Optional. Please use space to separate each marketplace. Constraints: minLength=1; maxLength=5000.

### Amazon Search URL (up to 10,000)

Required when using its input combination. MainKeys Constraints: minItems=1; maxItems=100000; items.minLength=1; items.maxLength=10000.

### Number of product per search (up to 1,000)

Optional. limit采集多少条 Constraints: minimum=1, maximum=1000.

### StepLength

Required. StepLength Constraints: minimum=1, maximum=200.

## How to Use

## Amazon Search Scraper

Collect structured Amazon search result data from 22 supported marketplaces.

**Coverage:** 22 Amazon marketplaces  
**Input:** Search terms with marketplace codes, or Amazon search result URLs  
**Result limit:** Up to 1,000 products per search input by default  
**Pricing:** $0.30 per 1,000 lines (Free, Basic, Standard accounts; Professional/Enterprise may be lower)

### Supported Marketplaces

`AU`, `CA`, `UK`, `US`, `IN`, `DE`, `SE`, `NL`, `BE`, `JP`, `IT`, `FR`, `ES`, `PL`, `TR`, `MX`, `AE`, `SA`, `IE`, `SG`, `BR`, `EG`

### Input

#### Search Term (up to 10,000)
One per line. Example:
```
mouse
wireless keyboard
```
When using search terms, also enter one or more marketplace codes in **Marketplaces**.

#### Marketplaces
Enter one or more codes separated by spaces. Example: `US JP DE FR`

#### Amazon Search URL (up to 10,000)
Enter one URL per line. Use when you have a filtered or sorted search page. Example:
```
https://www.amazon.com/s?k=mouse
https://www.amazon.com/s?k=mouse&s=price-asc-rank
```
You can mix search terms with marketplaces and URLs in the same task.

#### Number of product per search (up to 1,000)
Optional. Default: 1,000.

#### StepLength
Required. Set to `200`.

### How to Use

1. Open the template and select **Try it** or **Start**.
2. Choose input method: search terms + marketplaces, or URLs, or both.
3. Optionally set **Number of product per search**.
4. Set **StepLength** to `200`.
5. Start the cloud task and monitor.
6. Export data in your preferred format.

Test one or two search inputs first.

### Output Fields

The template returns these fields when available:

- `Page_URL`, `Site`, `Keyword`, `input_parameters`, `Search_category`, `Current_time`
- `ASIN`, `Product_URL`, `Product_URL_clean`, `Product_name`, `Image_link`
- `Current_price`, `Original_price`, `Shipping_price`, `Delivery`, `Shipping_free`, `Recent_purchase`
- `Stars`, `Rating_count`
- `adTag`, `In_stock`, `Product_status`
- `Organic_rank`, `Result_position`, `Result_index`, `Current_progress`

Optional fields can be empty when Amazon does not show that information.

### Limitations

- Collects search result pages only, not product details or reviews.
- Results vary by marketplace, keyword, sorting, filtering, delivery location, and availability.
- Delivery text varies by marketplace; no ZIP/postal code input.
- Some fields may be empty.
- Text may appear in different languages.
- **StepLength** must be `200` in current version.
- Comply with Amazon's terms and applicable laws.

### Tips

- Use specific search terms to reduce noise.
- Use direct URLs for sort/filter options.
- Use marketplace codes to compare same keyword across sites.
- Keep **Number of product per search** small for testing.
- Keep `Page_URL`, `Keyword`, `input_parameters` in export for auditing.
- Use `adTag` to identify sponsored results.
- Use `Product_URL_clean` for stable product detail links.

## Limitations

Results depend on what the source site exposes at run time. Fields may be empty when a source page does not provide a value. The template enforces the input limits shown above.

## Tips

Use specific, valid inputs and review a representative result before starting a large batch. Remove duplicate inputs when repeated records are not needed.

## FAQ

### What do I need to enter?

Use the exact inputs and limits listed above.

### What data does this template return?

See Output Schema below; availability can vary by source record.

### How is usage billed?

See the Pricing section above for current pricing and billing details.

## Related Templates

- [Google Search Scraper](https://www.octoparse.com/template/google-search-scraper)
- [Google Search Scraper (Free)](https://www.octoparse.com/template/google-advanced-search)
- [Twitter Advanced Search Scraper](https://www.octoparse.com/template/twitter-scraper-by-keywords)
- [Bing Search Results Scraper](https://www.octoparse.com/template/bing-search-results-scraper)

## Input Schema

```json
{
  "title": "Amazon Search Scraper input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "search_Term": {
      "title": "Search Term (up to 10,000)",
      "description": "Search Term (up to 10,000)",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 5000
      },
      "minItems": 1,
      "maxItems": 10000,
      "x-octoparse": {
        "apiEnabled": true
      }
    },
    "marketplaces": {
      "title": "Marketplaces",
      "description": "Please use space to separate each marketplace.",
      "type": "string",
      "minLength": 1,
      "maxLength": 5000,
      "x-octoparse": {
        "apiEnabled": true
      }
    },
    "amazon_Search_URL": {
      "title": "Amazon Search URL (up to 10,000)",
      "description": "MainKeys",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 10000
      },
      "minItems": 1,
      "maxItems": 100000,
      "x-octoparse": {
        "apiEnabled": true
      }
    },
    "number_of_product_per_search": {
      "title": "Number of product per search (up to 1,000)",
      "description": "limit采集多少条",
      "type": "integer",
      "minimum": 1,
      "maximum": 1000,
      "x-octoparse": {
        "apiEnabled": true
      }
    },
    "stepLength": {
      "title": "StepLength",
      "description": "StepLength",
      "type": "integer",
      "minimum": 1,
      "maximum": 200,
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": [
    "stepLength"
  ],
  "anyOf": [
    {
      "title": "Search Terms",
      "required": [
        "search_Term"
      ]
    },
    {
      "title": "Amazon Search URLs",
      "required": [
        "amazon_Search_URL"
      ]
    }
  ]
}
```

## Input JSON Example

Example 1

```json
{
  "marketplaces": "US",
  "number_of_product_per_search": 50,
  "search_Term": [
    "iPhone Duo"
  ],
  "stepLength": 1
}
```

Example 2

```json
{
  "marketplaces": "US",
  "number_of_product_per_search": 50,
  "search_Term": [
    "iPhone Duo"
  ],
  "stepLength": 1
}
```

Example 3

```json
{
  "marketplaces": "US",
  "number_of_product_per_search": 50,
  "search_Term": [
    "iPhone Duo"
  ],
  "stepLength": 1
}
```

Example 4

```json
{
  "marketplaces": "US",
  "number_of_product_per_search": 20,
  "search_Term": [
    "iPhone Duo"
  ],
  "stepLength": 1
}
```

Example 5

```json
{
  "marketplaces": "US",
  "number_of_product_per_search": 50,
  "search_Term": [
    "iPhone Duo"
  ],
  "stepLength": 1
}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "ASIN": {
      "type": "string",
      "description": ""
    },
    "Current_price": {
      "type": "string",
      "description": ""
    },
    "Current_time": {
      "type": "string",
      "description": ""
    },
    "Delivery": {
      "type": "string",
      "description": ""
    },
    "Image_link": {
      "type": "string",
      "description": ""
    },
    "In_stock": {
      "type": "string",
      "description": ""
    },
    "Keyword": {
      "type": "string",
      "description": ""
    },
    "Original_price": {
      "type": "string",
      "description": ""
    },
    "Page": {
      "type": "string",
      "description": ""
    },
    "Page_URL": {
      "type": "string",
      "description": ""
    },
    "Product_URL": {
      "type": "string",
      "description": ""
    },
    "Product_URL_clean": {
      "type": "string",
      "description": ""
    },
    "Product_name": {
      "type": "string",
      "description": ""
    },
    "Product_status": {
      "type": "string",
      "description": ""
    },
    "Rating_count": {
      "type": "string",
      "description": ""
    },
    "Recent_purchase": {
      "type": "string",
      "description": ""
    },
    "Result_index": {
      "type": "string",
      "description": ""
    },
    "Search_category": {
      "type": "string",
      "description": ""
    },
    "Shipping_free": {
      "type": "string",
      "description": ""
    },
    "Shipping_price": {
      "type": "string",
      "description": ""
    },
    "Site": {
      "type": "string",
      "description": ""
    },
    "Stars": {
      "type": "string",
      "description": ""
    },
    "adTag": {
      "type": "string",
      "description": ""
    },
    "input_parameters": {
      "type": "string",
      "description": ""
    }
  },
  "title": "Amazon Search Scraper output",
  "description": "Initial output fields derived from the current published implementation. Field descriptions are maintained by Data Center; production field names and types should be refreshed from recent successful runs.",
  "additionalProperties": false
}
```

## Output Example

Example 1

```json
{
  "ASIN": "B0H1265SZQ",
  "Current_price": "$1,749.99",
  "Current_time": "2026-11-18 16:13:11",
  "Delivery": "Join Prime to get FREE delivery Tomorrow, Nov 19 Or Non-members get FREE delivery Mon, Nov 23",
  "Image_link": "https://m.media-amazon.com/images/I/51PFW8uARvL._AC_UY218_.jpg",
  "In_stock": "",
  "Keyword": "iPhone Duo",
  "Original_price": "$2,099.99",
  "Page": "1",
  "Page_URL": "https://www.amazon.com/s?k=iPhone+Duo",
  "Product_URL": "https://www.amazon.com/dp/B0H1265SZQ",
  "Product_URL_clean": "https://www.amazon.com/dp/B0H1265SZQ",
  "Product_name": "Galaxy Z Fold8 Unlocked Android Smartphone, 512GB Graphite",
  "Product_status": "Valid",
  "Rating_count": "114",
  "Recent_purchase": "300+ bought in past month",
  "Result_index": "3",
  "Search_category": "",
  "Shipping_free": "FREE delivery",
  "Shipping_price": "",
  "Site": "Amazon",
  "Stars": "4.6",
  "adTag": "false",
  "input_parameters": "{\"source\": \"search_term_marketplaces\", \"search_term\": \"iPhone Duo\", \"marketplaces\": \"US\", \"number_of_product_per_search\": \"50\"}"
}
```

Example 2

```json
{
  "ASIN": "B0H1265SZQ",
  "Current_price": "$1,749.99",
  "Current_time": "2026-11-18 15:52:29",
  "Delivery": "Join Prime to get FREE delivery Tomorrow, Nov 19 Or Non-members get FREE delivery Mon, Nov 23",
  "Image_link": "https://m.media-amazon.com/images/I/51PFW8uARvL._AC_UY218_.jpg",
  "In_stock": "",
  "Keyword": "iPhone Duo",
  "Original_price": "$2,099.99",
  "Page": "1",
  "Page_URL": "https://www.amazon.com/s?k=iPhone+Duo",
  "Product_URL": "https://www.amazon.com/dp/B0H1265SZQ",
  "Product_URL_clean": "https://www.amazon.com/dp/B0H1265SZQ",
  "Product_name": "Galaxy Z Fold8 Unlocked Android Smartphone, 512GB Graphite",
  "Product_status": "Valid",
  "Rating_count": "114",
  "Recent_purchase": "300+ bought in past month",
  "Result_index": "2",
  "Search_category": "",
  "Shipping_free": "FREE delivery",
  "Shipping_price": "",
  "Site": "Amazon",
  "Stars": "4.6",
  "adTag": "false",
  "input_parameters": "{\"source\": \"search_term_marketplaces\", \"search_term\": \"iPhone Duo\", \"marketplaces\": \"US\", \"number_of_product_per_search\": \"50\"}"
}
```

Example 3

```json
{
  "ASIN": "B0GTL93GV4",
  "Current_price": "$29.69",
  "Current_time": "2026-11-18 15:45:46",
  "Delivery": "Join Prime to get FREE delivery Today 3 PM - 6 PM Or Non-members get FREE delivery Mon, Nov 23 on $35 of items shipped by Amazon",
  "Image_link": "https://m.media-amazon.com/images/I/61RVPP9H18L._AC_UY218_.jpg",
  "In_stock": "",
  "Keyword": "iPhone Duo",
  "Original_price": "$32.99",
  "Page": "15",
  "Page_URL": "https://www.amazon.com/s?k=iPhone+Duo",
  "Product_URL": "https://www.amazon.com/dp/B0GTL93GV4",
  "Product_URL_clean": "https://www.amazon.com/dp/B0GTL93GV4",
  "Product_name": "Sponsored Ad - [Apple MFi Certified]45W Retractable iPhone 17 Charger Fast Charging,4 in 1 Foldable Apple Charging Block Retractable Charger Dual USB Type C Cable Cords for‌ iPhone Duo/18/17/17Air/16/16e/15/Pro/iPad",
  "Product_status": "Valid",
  "Rating_count": "26",
  "Recent_purchase": "500+ bought in past month",
  "Result_index": "2",
  "Search_category": "",
  "Shipping_free": "FREE delivery",
  "Shipping_price": "",
  "Site": "Amazon",
  "Stars": "4.7",
  "adTag": "true",
  "input_parameters": "{\"source\": \"search_term_marketplaces\", \"search_term\": \"iPhone Duo\", \"marketplaces\": \"US\", \"number_of_product_per_search\": \"50\"}"
}
```

Example 4

```json
{
  "ASIN": "B0H1265SZQ",
  "Current_price": "$1,749.99",
  "Current_time": "2026-11-18 15:45:46",
  "Delivery": "Join Prime to get FREE delivery Tomorrow, Nov 19 Or Non-members get FREE delivery Mon, Nov 23",
  "Image_link": "https://m.media-amazon.com/images/I/51PFW8uARvL._AC_UY218_.jpg",
  "In_stock": "",
  "Keyword": "iPhone Duo",
  "Original_price": "$2,099.99",
  "Page": "1",
  "Page_URL": "https://www.amazon.com/s?k=iPhone+Duo",
  "Product_URL": "https://www.amazon.com/dp/B0H1265SZQ",
  "Product_URL_clean": "https://www.amazon.com/dp/B0H1265SZQ",
  "Product_name": "Galaxy Z Fold8 Unlocked Android Smartphone, 512GB Graphite",
  "Product_status": "Valid",
  "Rating_count": "114",
  "Recent_purchase": "300+ bought in past month",
  "Result_index": "4",
  "Search_category": "",
  "Shipping_free": "FREE delivery",
  "Shipping_price": "",
  "Site": "Amazon",
  "Stars": "4.6",
  "adTag": "false",
  "input_parameters": "{\"source\": \"search_term_marketplaces\", \"search_term\": \"iPhone Duo\", \"marketplaces\": \"US\", \"number_of_product_per_search\": \"20\"}"
}
```

Example 5

```json
{
  "ASIN": "B0H1265SZQ",
  "Current_price": "$1,749.99",
  "Current_time": "2026-11-18 15:42:23",
  "Delivery": "Join Prime to get FREE delivery Tomorrow, Nov 19 Or Non-members get FREE delivery Mon, Nov 23",
  "Image_link": "https://m.media-amazon.com/images/I/51PFW8uARvL._AC_UY218_.jpg",
  "In_stock": "",
  "Keyword": "iPhone Duo",
  "Original_price": "$2,099.99",
  "Page": "1",
  "Page_URL": "https://www.amazon.com/s?k=iPhone+Duo",
  "Product_URL": "https://www.amazon.com/dp/B0H1265SZQ",
  "Product_URL_clean": "https://www.amazon.com/dp/B0H1265SZQ",
  "Product_name": "Galaxy Z Fold8 Unlocked Android Smartphone, 512GB Graphite",
  "Product_status": "Valid",
  "Rating_count": "114",
  "Recent_purchase": "300+ bought in past month",
  "Result_index": "2",
  "Search_category": "",
  "Shipping_free": "FREE delivery",
  "Shipping_price": "",
  "Site": "Amazon",
  "Stars": "4.6",
  "adTag": "false",
  "input_parameters": "{\"source\": \"search_term_marketplaces\", \"search_term\": \"iPhone Duo\", \"marketplaces\": \"US\", \"number_of_product_per_search\": \"50\"}"
}
```

## API

`POST https://openapi.octoparse.com/api/agentTools/executeTask`

This is the OpenAPI Agent Tools `executeTask` endpoint. Authenticate with a Bearer token.

Request body:

`templateName` is the template slug; `parameters` is a JSON object string whose keys match Input Schema; `taskName`, `idempotencyKey`, and `maxCollectedRows` are optional.

Obtain a token:

```http
POST https://openapi.octoparse.com/token
Content-Type: application/json

{
  "username": "YOUR_USERNAME",
  "password": "YOUR_PASSWORD",
  "grant_type": "password"
}
```

Use `data.access_token` as `Authorization: Bearer <token>`. After starting, poll `getTaskStatus` and export with `exportData`.

```json
{
  "templateName": "amazon-search-scraper",
  "taskName": "Amazon Search Scraper",
  "parameters": "{\"marketplaces\":\"US\",\"number_of_product_per_search\":50,\"search_Term\":[\"iPhone Duo\"],\"stepLength\":1}"
}
```

## Python Example

```python
import json
import requests

OPENAPI_BASE = "https://openapi.octoparse.com"
ACCESS_TOKEN = "YOUR_ACCESS_TOKEN"

parameters = json.loads("{\"marketplaces\":\"US\",\"number_of_product_per_search\":50,\"search_Term\":[\"iPhone Duo\"],\"stepLength\":1}")

response = requests.post(
    f"{OPENAPI_BASE}/api/agentTools/executeTask",
    headers={
        "Authorization": f"Bearer {ACCESS_TOKEN}",
        "Content-Type": "application/json",
    },
    json={
        "templateName": "amazon-search-scraper",
        "taskName": "Amazon Search Scraper",
        "parameters": json.dumps(parameters, ensure_ascii=False),
    },
    timeout=60,
)
print(response.status_code)
print(response.json())
```

## HTTP/cURL Example

```bash
curl -X POST "https://openapi.octoparse.com/api/agentTools/executeTask" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "templateName": "amazon-search-scraper",
  "taskName": "Amazon Search Scraper",
  "parameters": "{\"marketplaces\":\"US\",\"number_of_product_per_search\":50,\"search_Term\":[\"iPhone Duo\"],\"stepLength\":1}"
}
JSON
```

## MCP Setup

Connect an MCP-compatible AI client to `https://mcp.octoparse.com` using browser OAuth or an Octoparse API key. Find `amazon-search-scraper`, inspect its inputs, create a cloud task with the exact Input Schema keys, and export JSON results.

## Machine-readable Resources

- [Template contract](https://www.octoparse.com/templates/amazon-search-scraper.json)
- [Manifest](https://www.octoparse.com/templates/amazon-search-scraper-manifest.json)
