# Amazon Product Scraper (`w3crawler/amazon-scraper`) Actor

Scrapes public Amazon India product data with direct HTML and JSON-LD extraction.

- **URL**: https://apify.com/w3crawler/amazon-scraper.md
- **Developed by:** [w3crawler](https://apify.com/w3crawler) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 products

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## 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

## Amazon Product Scraper

Extract public Amazon product observations by ASIN, product URL, or paginated search source across eight marketplaces. Rows can include pricing, availability, ratings, media, feature bullets, specifications, seller and offer links, structured data, and optional JSON-LD review summaries when Amazon publishes them.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/amazon-scraper) and select **Try for free** or open the **Input** tab.
2. Choose `mode`: `asin` for ASINs, `productUrl` for direct product URLs, or `search` for search phrases and search URLs. Supply the matching target list.
3. Select `country` and `locale`, set `maxItems` and `maxPages`, and optionally add `filters` or change `sortBy`.
4. Start the Actor, open the dataset, and export the rows as JSON, CSV, or Excel. Open **Run summary** (`OUTPUT`) to check the outcome and counts.

### Input

All fields are optional. The shipped `.actor/input.json` runs a search for `wireless earbuds` in India; where that file sets a value it is shown as the default, and fields it omits fall back to the schema defaults. Unsupported field names and out-of-range values are rejected before requests start.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `mode` | string enum | Optional | `search` | Target type: `asin`, `productUrl`, or `search`. The schema fallback is `asin`, but the shipped input uses `search`. |
| `asins` | string array | Optional | Not supplied | ASINs used with `mode: "asin"`. |
| `productUrls` | string array | Optional | Not supplied | Public Amazon product URLs used with `mode: "productUrl"`. |
| `searchQuery` | string | Optional | `wireless earbuds` | One search phrase; retained as a compatibility alias for older inputs. |
| `searchQueries` | string array | Optional | Not supplied | Multiple public search phrases, processed in order. |
| `searchUrls` | string array | Optional | Not supplied | Public Amazon search URLs for specific result pages. |
| `country` | string enum | Optional | `in` | Default marketplace for ASINs and search phrases: `in`, `com`, `co.uk`, `de`, `co.jp`, `ca`, `com.au`, or `com.br`. Explicit supported-marketplace URLs keep their own marketplace. |
| `locale` | string | Optional | `en-IN` | `Accept-Language` value sent to public Amazon pages. |
| `maxItems` | integer | Optional | `4` | Maximum source-backed product rows emitted, from 1 to 1,000. The schema fallback is `20`. |
| `maxPages` | integer | Optional | `2` | Maximum ordered search-result pages visited per search source, from 1 to 20. |
| `deduplicate` | boolean | Optional | `true` | Keep one row per marketplace/ASIN across sources and pages. |
| `dedupe` | boolean | Optional | Not supplied | Compatibility alias for `deduplicate`. |
| `includeMedia` | boolean | Optional | `true` | Include product-scoped public gallery, thumbnail, and high-resolution image fields. |
| `includeTechnicalDetails` | boolean | Optional | `true` | Include public specification rows and attributes. |
| `extractReviews` | boolean | Optional | `false` | Include bounded review summaries found in public JSON-LD. |
| `maxReviews` | integer | Optional | `10` | Maximum JSON-LD review summaries retained per product, from 1 to 10. |
| `filters` | object | Optional | Not supplied | Post-extraction filters: `minRating`, `minReviewsCount`, `minPrice`, `maxPrice`, `includeKeywords`, and `excludeKeywords`. Applied before sorting and limiting. |
| `sortBy` | string enum | Optional | `input_order` | Stable sort: `input_order`, `rating_desc`, `reviews_desc`, `price_asc`, `price_desc`, or `title_asc`. |
| `requestTimeoutSecs` | integer | Optional | `15` | Maximum duration of each public request, 15–300 seconds. The schema fallback is `120`. |
| `requestTimeoutMs` | integer | Optional | Not supplied | Compatibility timeout alias in milliseconds, converted to seconds; 15,000–300,000. |
| `timeoutSecs` | integer | Optional | Not supplied | Compatibility alias for `requestTimeoutSecs`, 15–300 seconds. |
| `timeoutMs` | integer | Optional | Not supplied | Compatibility timeout alias in milliseconds, converted to seconds; 15,000–300,000. |
| `requestDelayMs` | integer | Optional | `0` | Pacing delay before each live request, 0–15,000 ms. The schema fallback is `500`. |
| `maxConcurrency` | integer | Optional | `2` | Maximum simultaneous detail requests, from 1 to 5. The schema fallback is `3`. |
| `concurrency` | integer | Optional | Not supplied | Compatibility alias for `maxConcurrency`, 1–5. |
| `maxRequestRetries` | integer | Optional | `1` | Retries for transient failures and rate limits, 0–10; access challenges are not bypassed. The schema fallback is `2`. |
| `maxRetries` | integer | Optional | Not supplied | Compatibility alias for `maxRequestRetries`, 0–10. |
| `maxResponseBytes` | integer | Optional | `15000000` | Reject oversized public responses before parsing, 100,000–50,000,000 bytes. |
| `maxBytes` | integer | Optional | Not supplied | Compatibility alias for `maxResponseBytes`. |
| `userAgent` | string | Optional | Not supplied | Optional transparent identifying user-agent string; no stealth rotation is performed. |
| `proxyConfiguration` | object | Optional | Not supplied | Optional ordinary Apify Proxy or public HTTP(S) routing. No access-control bypass is attempted. |

Shipped default input (`.actor/input.json`):

```json
{
  "mode": "search",
  "country": "in",
  "locale": "en-IN",
  "searchQuery": "wireless earbuds",
  "maxItems": 4,
  "maxPages": 2,
  "deduplicate": true,
  "sortBy": "input_order",
  "requestTimeoutSecs": 15,
  "requestDelayMs": 0,
  "maxConcurrency": 2,
  "maxRequestRetries": 1
}
```

Change `mode` and supply the matching `asins`, `productUrls`, `searchQueries`, or `searchUrls` list before running. Explicit product and search URLs must point at one of the eight supported marketplaces. `proxyConfiguration` accepts the standard `useApifyProxy`, `apifyProxyGroups`, `apifyProxyCountry`, and `proxyUrls` settings. When it is supplied, the proxy route is attempted first; a transient proxy failure can fall back to direct HTTP. The Actor does not sign in or bypass an access challenge.

### Output

The dataset contains one row per unique marketplace/ASIN after deduplication across sources and pages, subject to `filters`, `sortBy`, and `maxItems`. Optional values are omitted when Amazon does not publish them; no diagnostic or placeholder rows are written.

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `asin` | string | Always | Amazon Standard Identification Number for the product. |
| `title` | string | Always | Product title shown on the public page or search card. |
| `url` | string | Always | Canonical product URL used as the record identity. |
| `productUrl` | string | When published | Public product URL detected on the page or built from the ASIN. |
| `sourceUrl` | string | Always | Exact public product or listing URL requested for the row. |
| `searchUrl` | string | When published | Search-results URL that led to the product. |
| `country` | string | When published | Marketplace code used for the request. |
| `marketplace` | string | When published | Amazon marketplace host, such as `amazon.in`. |
| `userLocale` | string | When published | Locale sent with the request. |
| `position` | integer | When published | One-based position of the product in the saved output. |
| `pageNumber` | integer | When published | Search-results page on which the product was found. |
| `searchQuery` | string | When published | Search phrase attached to a search-sourced row. |
| `brand` | string | When published | Brand name shown on the product page. |
| `manufacturer` | string | When published | Manufacturer name when displayed separately. |
| `price` | object | When published | Current price as `{ "value": number, "currency": "XXX" }`. |
| `listPrice` | object | When published | List, MRP, or struck-through price as `{ "value", "currency" }`. |
| `seller` | string | When published | Seller display name when the page names one. |
| `offerUrl` | string | When published | Public offer or seller link shown with the product. |
| `stars` | number | When published | Average customer rating on a five-point scale. |
| `reviewsCount` | number | When published | Number of product ratings or reviews shown. |
| `reviewsLink` | string | When published | Public customer-reviews URL for the product. |
| `hasReviews` | boolean | When published | Whether the page indicates at least one review. |
| `availability` | string | When published | Availability label shown by Amazon, such as `In stock`. |
| `inStock` | boolean | When published | Whether the displayed availability indicates the product can be bought. |
| `description` | string | When published | Product description or page summary text. |
| `breadCrumbs` | string | When published | Category path joined with greater-than separators. |
| `features` | string array | When published | About-this-item feature bullets. |
| `attributes` | object array | When published | Specification rows as `{ "key", "value" }` objects. |
| `thumbnailImage` | string | When published | Primary product image URL. |
| `galleryImages` | string array | When published | Product gallery image URLs when media output is enabled. |
| `galleryThumbnails` | string array | When published | Smaller gallery image URLs when media output is enabled. |
| `highResolutionImages` | string array | When published | High-resolution product image URLs when media output is enabled. |
| `videosCount` | integer | When published | Number of product videos detected. |
| `reviews` | object array | When `extractReviews` is enabled | Bounded review summaries parsed from public JSON-LD. |
| `sourceStructuredData` | object array | When published | JSON-LD or structured-data objects found on the page. |
| `structuredDataTypes` | string array | When published | Structured-data types discovered, such as `Product`. |
| `wordCount` | integer | When published | Approximate word count of the extracted page text. |
| `scrapedAt` | string | Always | Time the product row was saved, in ISO UTC. |

The example below is a real saved row from the 2026-10-25 search run. Long arrays are shortened for readability; the values are otherwise unchanged and only schema-declared fields are shown.

```json
{
  "asin": "B0FMDL81GS",
  "title": "OnePlus Nord Buds 3r TWS Earbuds up to 54 Hours Playback, 2-mic Clear Calls, 3D Spatial Audio, AI Translation, 12.4mm Drivers, Dual-Device Connectivity, 47ms Low Latency - Ash Black",
  "url": "https://www.amazon.in/dp/B0FMDL81GS",
  "productUrl": "https://www.amazon.in/dp/B0FMDL81GS",
  "brand": "OnePlus",
  "price": {
    "value": 1879,
    "currency": "INR"
  },
  "listPrice": {
    "value": 1999,
    "currency": "INR"
  },
  "stars": 4.3,
  "reviewsCount": 52219,
  "breadCrumbs": "Electronics > Headphones, Earbuds & Accessories > Headphones > In-Ear",
  "features": [
    "[Our longest battery ever, up to 54 hrs Music Playback]: A full charge Nord Buds 3r gives upto 54 hours of music playback. 10 minutes of fast charging gives 8 hours of music.",
    "[Titanium-coated Drivers]: The Nord buds 3r comes with 12.4 mm Titanium-coated Drivers to enjoy deeper bass and powerful beats resulting in crystal - clear details in every note. It has fixed spatial audio specifically for OnePlus smartphone users."
  ],
  "attributes": [
    { "key": "Brand", "value": "OnePlus" },
    { "key": "Colour", "value": "Ash Black" },
    { "key": "Ear Placement", "value": "In Ear" }
  ],
  "thumbnailImage": "https://m.media-amazon.com/images/I/51nBTTG3hNL._SL1500_.jpg",
  "galleryImages": [
    "https://m.media-amazon.com/images/I/51nBTTG3hNL._SL1500_.jpg",
    "https://m.media-amazon.com/images/I/31WwCIKTZOL._SY300_SX300_QL70_ML2_.jpg",
    "https://m.media-amazon.com/images/I/51nBTTG3hNL._SY355_.jpg"
  ],
  "description": "OnePlus Nord Buds 3r TWS Earbuds up to 54 Hours Playback, 2-mic Clear Calls, 3D Spatial Audio, AI Translation, 12.4mm Drivers, Dual-Device Connectivity, 47ms Low Latency - Ash Black : Amazon.in: Electronics",
  "availability": "In stock",
  "inStock": true,
  "reviewsLink": "https://www.amazon.in/product-reviews/B0FMDL81GS/?reviewerType=all_reviews",
  "hasReviews": true,
  "sourceUrl": "https://www.amazon.in/dp/B0FMDL81GS",
  "searchUrl": "https://www.amazon.in/s?k=wireless+earbuds&page=1",
  "marketplace": "amazon.in",
  "country": "in",
  "userLocale": "en-IN",
  "position": 1,
  "pageNumber": 1,
  "galleryThumbnails": [
    "https://m.media-amazon.com/images/I/51nBTTG3hNL._SL1500_.jpg",
    "https://m.media-amazon.com/images/I/31WwCIKTZOL._SY300_SX300_QL70_ML2_.jpg",
    "https://m.media-amazon.com/images/I/51nBTTG3hNL._SY355_.jpg"
  ],
  "highResolutionImages": [
    "https://m.media-amazon.com/images/I/51nBTTG3hNL._SL1500_.jpg",
    "https://m.media-amazon.com/images/I/31WwCIKTZOL._SY300_SX300_QL70_ML2_.jpg",
    "https://m.media-amazon.com/images/I/51nBTTG3hNL._SY355_.jpg"
  ],
  "wordCount": 4901,
  "scrapedAt": "2026-10-25T20:41:01.821Z"
}
```

`price` and `listPrice` are money objects with a numeric `value` and a three-letter `currency`; no currency conversion is performed. `attributes` is an array of `key`/`value` pairs. `reviews` is populated only when `extractReviews` is enabled and the page exposes review data in JSON-LD; it is not a scrape of the full review section. `galleryImages`, `galleryThumbnails`, and `highResolutionImages` are controlled by `includeMedia`. The saved row above did not attach `searchQuery` even though the run used a search phrase, so that optional field is absent rather than empty.

### Run summary

**Run summary** is stored separately from the dataset in the run's key-value store under `OUTPUT`.

| Field | Meaning |
| --- | --- |
| `status` | Overall Actor run status: `SUCCEEDED` or `FAILED`. |
| `runStatus` | Canonical run status; matches `status`. |
| `dataStatus` | Completeness of the source-backed dataset rows. |
| `recordCount` | Product records reported for the run. |
| `diagnosticCount` | Operational issues recorded in the summary and log. |
| `recordsEmitted` | Product records emitted to the dataset. |
| `requestedUrlCount` | ASIN, product-URL, or search-source targets accepted from the input. |
| `requestCount` | Source requests made. |
| `attempts` | Total request attempts, including retries. |
| `retries` | Retries performed after transient failures. |
| `successfulItems` | Source-backed products saved. |
| `datasetWriteFailureCount` | Dataset writes that failed. |
| `summaryWriteFailureCount` | Run-summary persistence attempts that failed. |
| `blockedCount` | Blocked or denied source responses. |
| `requestErrorCount` | Request errors recorded for the run. |
| `pagesFetched` | Search or listing pages fetched. |
| `detailPagesFetched` | Product detail pages fetched. |
| `candidateItems` | Products extracted before filters and limits. |
| `filteredCount` | Products removed by `filters` or `maxItems`. |
| `mode` | Target mode used for the run. |
| `country` | Default marketplace code used for the run. |
| `marketplace` | Marketplace host used for the run. |
| `maxItems` | Item limit used for the run. |
| `maxPages` | Search-page limit used for the run. |
| `sortBy` | Sort order applied after filters. |
| `extractReviews` | Whether JSON-LD review extraction was requested. |
| `includeMedia` | Whether gallery and image fields were requested. |
| `requestTimeoutSecs` | Per-request timeout used for the run. |
| `requestDelayMs` | Delay used between live requests. |
| `maxConcurrency` | Detail-request concurrency used for the run. |
| `maxRequestRetries` | Retry budget used for the run. |
| `proxyEnabled` | Whether proxy routing was enabled. |
| `proxyRequested` | Whether a proxy was requested in the input. |
| `proxyRouteAvailable` | Whether a usable proxy route was available. |
| `proxyAttempted` | Whether a proxy request was attempted. |
| `proxyUsed` | Whether a proxy carried at least one request. |
| `proxyUsageStatus` | Proxy state recorded for the run. |
| `fallbackAttempts` | Bounded direct-transport fallbacks performed. |
| `transportsUsed` | Transports used, such as `direct_undici`. |
| `fixtureMode` | QA-only flag: whether the run parsed a bundled fixture instead of live pages. Normal runs report `false`. |
| `completedAt` | Time the summary was written, in ISO UTC. |

| Status | Data status | Meaning |
| --- | --- | --- |
| `SUCCEEDED` | `COMPLETE` | Eligible products were saved without an extraction problem. |
| `SUCCEEDED` | `PARTIAL` | Some products were saved, but a later request or parse problem prevented a complete run. |
| `SUCCEEDED` | `NO_RESULTS` | The source completed cleanly and returned no matching products. |
| `FAILED` | `FAILED` | A fatal error occurred before any usable product was saved. |

Example `OUTPUT` from the 2026-10-25 search run:

```json
{
  "status": "SUCCEEDED",
  "runStatus": "SUCCEEDED",
  "dataStatus": "COMPLETE",
  "recordCount": 4,
  "diagnosticCount": 0,
  "recordsEmitted": 4,
  "requestedUrlCount": 2,
  "requestCount": 6,
  "attempts": 6,
  "retries": 0,
  "successfulItems": 4,
  "datasetWriteFailureCount": 0,
  "summaryWriteFailureCount": 0,
  "blockedCount": 0,
  "requestErrorCount": 0,
  "pagesFetched": 2,
  "detailPagesFetched": 4,
  "candidateItems": 4,
  "filteredCount": 0,
  "mode": "search",
  "country": "in",
  "marketplace": "amazon.in",
  "maxItems": 4,
  "maxPages": 2,
  "sortBy": "input_order",
  "extractReviews": false,
  "includeMedia": true,
  "requestTimeoutSecs": 15,
  "requestDelayMs": 0,
  "maxConcurrency": 2,
  "maxRequestRetries": 1,
  "proxyEnabled": false,
  "proxyRequested": false,
  "proxyRouteAvailable": false,
  "proxyAttempted": false,
  "proxyUsed": false,
  "proxyUsageStatus": "not_requested",
  "fallbackAttempts": 0,
  "transportsUsed": [
    "direct_undici"
  ],
  "fixtureMode": false,
  "completedAt": "2026-10-25T20:41:02.068Z"
}
```

### Coverage and limitations

The Actor supports eight marketplace codes: `in`, `com`, `co.uk`, `de`, `co.jp`, `ca`, `com.au`, and `com.br`. ASINs and search phrases use `country`; explicit product and search URLs keep the marketplace in the URL. Search sources are read in order up to `maxPages` per source, and duplicates are removed by marketplace/ASIN when `deduplicate` is enabled.

The Actor does not sign in, access private data, solve CAPTCHAs, or bypass access controls. It rejects cross-product detail pages and records blocked or unusable pages as summary counts and log details rather than dataset rows. Optional Apify Proxy or public HTTP(S) routing can be supplied; transient failures receive a bounded fallback and the configured retry budget, but a challenge is not treated as a product.

Only public product-page data is extracted. Books, apparel, and other categories expose different modules, so a successful parse does not guarantee every optional field. `extractReviews` reads bounded JSON-LD summaries and does not crawl the full review section; `reviewsCount` is the count Amazon displays, which may include ratings without written reviews. `fixtureMode` is an internal QA flag and is `false` for normal live runs.

### Usage and support

Cost depends on the number of search or listing pages, one detail request per candidate product, and the selected concurrency, delay, retry, timeout, and proxy settings. Start with a small target list, `maxItems` around 4–10, and `maxPages` at 1, then inspect the dataset and `OUTPUT` before scaling. See the Actor's Pricing tab for current account rates.

Use the [Actor Issues page](https://apify.com/w3crawler/amazon-scraper/issues) to report a problem. Include the run ID, the input used, and the run summary; do not include tokens, cookies, or private data. This Actor is not affiliated with Amazon. Use it only for public data and in accordance with Amazon's terms, robots guidance, and applicable law. Public pages can contain personal information; use the output only for lawful purposes.

# Actor input Schema

## `mode` (type: `string`):

Choose ASINs, direct product URLs, or public Amazon search sources.

## `asins` (type: `array`):

Amazon Standard Identification Numbers when mode is asin.

## `productUrls` (type: `array`):

Public Amazon product URLs when mode is productUrl.

## `searchQuery` (type: `string`):

One public Amazon search phrase; retained as a compatibility alias.

## `searchQueries` (type: `array`):

Multiple public Amazon search phrases processed in order.

## `searchUrls` (type: `array`):

Optional public Amazon search URLs for multiple source pages.

## `country` (type: `string`):

Default marketplace for ASINs and search phrases; explicit supported-marketplace URLs preserve their own marketplace.

## `locale` (type: `string`):

Accept-Language value for public requests.

## `maxItems` (type: `integer`):

Maximum source-backed product rows emitted.

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

Maximum ordered search result pages visited for each source.

## `deduplicate` (type: `boolean`):

Keep one row per marketplace/ASIN across sources and pages.

## `dedupe` (type: `boolean`):

Compatibility alias for deduplicate.

## `includeMedia` (type: `boolean`):

Include product-scoped public gallery fields.

## `includeTechnicalDetails` (type: `boolean`):

Include public specification rows.

## `extractReviews` (type: `boolean`):

Include bounded review summaries exposed in public JSON-LD.

## `maxReviews` (type: `integer`):

Maximum public review summaries retained.

## `filters` (type: `object`):

Filters applied after product extraction and before sorting/limit.

## `sortBy` (type: `string`):

Stable sort applied after filters.

## `requestTimeoutSecs` (type: `integer`):

Maximum duration for each public request.

## `requestTimeoutMs` (type: `integer`):

Compatibility alias converted to seconds.

## `timeoutSecs` (type: `integer`):

Compatibility alias for requestTimeoutSecs.

## `timeoutMs` (type: `integer`):

Compatibility alias converted to seconds.

## `requestDelayMs` (type: `integer`):

Pacing delay before each live request.

## `maxConcurrency` (type: `integer`):

Maximum simultaneous detail requests.

## `concurrency` (type: `integer`):

Compatibility alias for maxConcurrency.

## `maxRequestRetries` (type: `integer`):

Retries transient failures and rate limits; challenges are not bypassed.

## `maxRetries` (type: `integer`):

Compatibility alias for maxRequestRetries.

## `maxResponseBytes` (type: `integer`):

Reject unusually large public responses.

## `maxBytes` (type: `integer`):

Compatibility alias for maxResponseBytes.

## `userAgent` (type: `string`):

Optional identifying user-agent string; no stealth rotation is performed.

## `proxyConfiguration` (type: `object`):

Optional ordinary Apify Proxy or public HTTP(S) routing.

## Actor input object example

```json
{
  "mode": "asin",
  "country": "in",
  "locale": "en-IN",
  "maxItems": 20,
  "maxPages": 2,
  "deduplicate": true,
  "includeMedia": true,
  "includeTechnicalDetails": true,
  "extractReviews": false,
  "maxReviews": 10,
  "sortBy": "input_order",
  "requestTimeoutSecs": 120,
  "requestDelayMs": 500,
  "maxConcurrency": 3,
  "maxRequestRetries": 2,
  "maxResponseBytes": 15000000
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `runSummary` (type: `string`):

Run status and counters stored by the Actor.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/amazon-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("w3crawler/amazon-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 '{}' |
apify call w3crawler/amazon-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,w3crawler/amazon-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/FlOCVVmkq6t6MPI3c/builds/yj24651pdOUx9Njxc/openapi.json
