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

Fetches public Amazon deals pages and emits normalized deal records from product state embedded in the page.

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

## Pricing

from $2.99 / 1,000 deals

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 Deals Scraper

Read a public Amazon deals grid and save one record per deal product. Each row carries the deal price and basis price with validation metadata, savings, deal type, brand, department IDs, card position, and the embedded deal and media state that the page publishes.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/amazon-deals-scraper) and select **Try for free** or open the **Input** tab.
2. Enter a public deals URL such as `https://www.amazon.com/deals` for the marketplace you need.
3. Keep `maxItems` and `maxPages` small, and leave `includeDetails` and `includeMedia` on for the richest records.
4. Start the Actor, open the dataset, and export the deals as JSON, CSV, or Excel. Open **Run summary** (`OUTPUT_SUMMARY`) to check pages, parsed items, and counts.

### Input

All fields are optional; the defaults below are ready to use. Unsupported field names and out-of-range values are rejected before requests start.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `url` | string | Optional | `https://www.amazon.com/deals` | Public Amazon deals grid URL on a supported marketplace host. |
| `maxItems` | integer | Optional | `30` | Maximum deal records emitted after filters and deduplication, from 1 to 1,000. |
| `maxPages` | integer | Optional | `1` | Maximum serialized page offsets requested, from 1 to 10. |
| `pageSize` | integer | Optional | `30` | Offset increment used for each later page request, from 1 to 100. |
| `startIndex` | integer | Optional | `0` | Zero-based offset for the first request, from 0 to 10,000. |
| `filters` | object | Optional | `{}` | Local filters applied to fields the page exposes: `brands`, `departmentIds`, `dealTypes`, `minSavingsPercent`, `minPrice`, and `maxPrice`. |
| `includeDetails` | boolean | Optional | `true` | Include embedded deal state, badge, review, category, cart, and variation fields. |
| `includeMedia` | boolean | Optional | `true` | Include embedded product image URLs and media metadata. |
| `deduplicate` | boolean | Optional | `true` | Remove repeated ASINs across page responses before applying `maxItems`. |
| `locale` | string | Optional | `en-US` | Locale sent in the ordinary `Accept-Language` header, such as `en-US` or `de-DE`. The user-agent stays fixed and transparent. |
| `concurrency` | integer | Optional | `1` | Compatibility field accepted for older saved inputs, 1–3. Page requests are always serialized. |
| `requestDelayMs` | integer | Optional | `800` | Pause before each later serialized page request, 0–10,000 ms. |
| `retries` | integer | Optional | `0` | Compatibility field accepted for older saved inputs, 0–5. Requests are attempted once and not retried. |
| `maxRetries` | integer | Optional | `0` | Compatibility alias for `retries`, 0–5. |
| `requestTimeoutMs` | integer | Optional | `45000` | Maximum time allowed for each direct public request, 5,000–120,000 ms. |

Full default input:

```json
{
  "url": "https://www.amazon.com/deals",
  "maxItems": 30,
  "maxPages": 1,
  "pageSize": 30,
  "startIndex": 0,
  "filters": {},
  "includeDetails": true,
  "includeMedia": true,
  "deduplicate": true,
  "locale": "en-US",
  "concurrency": 1,
  "requestDelayMs": 800,
  "retries": 0,
  "maxRetries": 0,
  "requestTimeoutMs": 45000
}
```

The Actor reads the public deals response directly over HTTP. It does not request product detail pages, use proxies, sign in, or retry a denied request. The deals URL host selects the marketplace; `locale` only changes the `Accept-Language` header.

### Output

The dataset contains one row per deal product after deduplication and filtering. Price and deal fields are taken from state embedded in the public deals response; values that fail the price checks are reported instead of being smoothed over. No diagnostic or placeholder rows are written.

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `sourceUrl` | string | Always | Deals page URL the record was read from. |
| `canonicalUrl` | string | When published | Canonical `/dp/ASIN` product URL. |
| `asin` | string | When published | Amazon Standard Identification Number of the deal product. |
| `title` | string | Always | Product title shown on the deal card. |
| `productUrl` | string | When published | Public product page URL. |
| `dealPrice` | number | When published | Current deal price normalized to major currency units. |
| `basisPrice` | number | When published | Reference or typical price normalized to major currency units. |
| `dealPriceRaw` | string | When published | Deal price digits exactly as published, before normalization. |
| `basisPriceRaw` | string | When published | Basis price digits exactly as published, before normalization. |
| `dealPriceText` | string | When published | Deal price label and value as displayed, such as `Deal Price: 19.99`. |
| `basisPriceText` | string | When published | Basis price label and value, such as `Typical: 28.92`. |
| `priceNormalization` | string | When published | Normalization applied to the deal price, such as `major_units_from_public_state`. |
| `basisPriceNormalization` | string | When published | Normalization applied to the basis price. |
| `priceSource` | string | When published | Page path the price pair was read from. |
| `priceValidation` | string enum | When published | Price check result: `valid`, `not_available`, `rejected_inconsistent`, or `badge_mismatch`. |
| `currency` | string | When published | ISO currency code for the price pair. |
| `currencySource` | string | When published | Where the currency came from, such as the page currency code, a page label, or the marketplace fallback. |
| `savingsPercent` | number | When published | Savings percentage displayed by Amazon or computed from the validated price pair. |
| `dealType` | string | When published | Embedded deal type, such as `BEST_DEAL`. |
| `percentClaimed` | number | When published | Share of the deal already claimed, when the page reports it. |
| `brand` | string | When published | Brand shown for the deal product. |
| `departmentIds` | string array | When published | Amazon department identifiers attached to the product. |
| `position` | integer | When published | One-based position of the deal card on its page. |
| `pageNumber` | integer | When published | One-based page number in the pagination sequence. |
| `details` | object | When `includeDetails` is enabled | Embedded deal state: `dealState`, `dealId`, badge label and messaging, category and subcategory IDs, product type, cart URL, and lightning-deal flag. |
| `media` | object | When `includeMedia` is enabled | Embedded image object: `imageUrl`, `imageUrlLow`, `imageAltText`, image ID, extension, dimensions, and variant. |
| `pageTitle` | string | When published | HTML title of the deals page. |
| `scrapedAt` | string | Always | Time the record was saved, in ISO UTC. |

The example below is a real saved row from the 2026-10-25 run. The stored row also has an undeclared `url` alias; it is omitted here because the dataset schema does not declare it.

```json
{
  "sourceUrl": "https://www.amazon.com/deals",
  "canonicalUrl": "https://www.amazon.com/dp/B07MJL8NXR",
  "scrapedAt": "2026-10-25T21:06:33.949Z",
  "asin": "B07MJL8NXR",
  "title": "Premier Protein 30g High Protein Shake, Chocolate, 12 Pack | 160 Calories, 24 Vitamins & Minerals, No Added Sugar, Supports Muscle Health, Gluten-Free, 11.5 oz",
  "productUrl": "https://www.amazon.com/dp/B07MJL8NXR",
  "dealPrice": 19.99,
  "basisPrice": 28.92,
  "currency": "USD",
  "savingsPercent": 31,
  "dealPriceRaw": "19.99",
  "basisPriceRaw": "28.92",
  "dealPriceText": "Deal Price: 19.99",
  "basisPriceText": "Typical: 28.92",
  "priceNormalization": "major_units_from_public_state",
  "basisPriceNormalization": "major_units_from_public_state",
  "priceSource": "public_product.price",
  "priceValidation": "valid",
  "currencySource": "page_currencyIsoCode",
  "dealType": "BEST_DEAL",
  "brand": "Premier Protein",
  "departmentIds": [
    "16310101",
    "16310211"
  ],
  "position": 1,
  "pageNumber": 1,
  "details": {
    "dealState": "AVAILABLE",
    "dealId": "6395c5e8",
    "dealBadgeLabel": "31% off",
    "dealBadgeMessaging": "Limited time deal",
    "categoryId": "12105000",
    "categorySymbol": "gl_drugstore",
    "productType": "PROTEIN_DRINK",
    "subCategoryId": "12105010",
    "websiteDisplayGroup": "grocery_display_on_website",
    "addToCartUrl": "https://www.amazon.com/cart/carts/retail/items",
    "isLightningDeal": false,
    "addToCartDisplayString": "Add to cart"
  },
  "media": {
    "imageUrl": "https://m.media-amazon.com/images/I/71Y8GT3GYvL.jpg",
    "imageUrlLow": "https://m.media-amazon.com/images/I/51NR0gINcZL.jpg",
    "imageAltText": "Premier Protein 30g High Protein Shake, Chocolate, 12 Pack | 160 Calories, 24 Vitamins & Minerals, No Added Sugar, Supports Muscle Health, Gluten-Free, 11.5 oz",
    "imagePhysicalId": "71Y8GT3GYvL",
    "imageExtension": "jpg",
    "imageWidth": 1500,
    "imageHeight": 1500,
    "imageVariant": "MAIN"
  }
}
```

`details` and `media` are embedded objects whose keys vary by deal card; the example shows the keys seen in the saved run. `dealPriceRaw` and `basisPriceRaw` keep the published strings, while `dealPrice` and `basisPrice` are numeric and safe to aggregate. `priceValidation` explains whether the pair and the displayed discount agree.

### Run summary

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

| Field | Meaning |
| --- | --- |
| `status` | Overall Actor run status. |
| `actorName` | Actor name recorded by the run. |
| `actorSlug` | Actor slug recorded by the run. |
| `sourceWebsite` | Amazon marketplace host used for the run. |
| `targetKind` | Kind of record collected; `amazon_deal_product` for this Actor. |
| `directTransport` | Whether direct HTTP transport was used. |
| `inputUrl` | Deals URL supplied in the input. |
| `requestCount` | Number of page requests made. |
| `pagesRequested` | Page offsets requested. |
| `pagesFetched` | Pages fetched successfully. |
| `pagesSkipped` | Page offsets skipped by the pagination logic. |
| `failedPages` | Page requests that failed. |
| `parsedItems` | Deal cards parsed before filtering and deduplication. |
| `filteredItems` | Cards removed by `filters`. |
| `duplicateItems` | Repeated ASINs removed. |
| `requestedMaxItems` | Item limit requested for the run. |
| `itemCount` | Records written to the dataset. |
| `emittedItemCount` | Records emitted by the workflow. |
| `successfulItems` | Deal records that produced a usable row. |
| `diagnosticCount` | Operational issues recorded for the run. |
| `diagnosticItems` | Diagnostic dataset rows; always zero. |
| `blockedCount` | Blocked or challenged responses. |
| `requestErrorCount` | Request errors. |
| `dataAvailable` | Whether source-backed rows were saved. |
| `usedProxy` | Whether a proxy was used; always false for this direct-only Actor. |
| `completedAt` | Time the summary was written, in ISO UTC. |
| `runStatus` | Canonical run status; matches `status`. |
| `dataStatus` | Completeness of the saved dataset rows. |

| Status | Data status | Meaning |
| --- | --- | --- |
| `SUCCEEDED` | `COMPLETE` | Deals were parsed and every selected record was saved. |
| `SUCCEEDED` | `PARTIAL` | Some records were saved, but a later page failed or returned incomplete data. Saved rows remain available. |
| `SUCCEEDED` | `NO_RESULTS` | The page loaded but exposed no matching deals. |
| `FAILED` | `FAILED` | A fatal error occurred before any usable deal was saved. |

Example `OUTPUT_SUMMARY` from the 2026-10-25 run:

```json
{
  "status": "SUCCEEDED",
  "actorName": "amazon-deals-scraper",
  "actorSlug": "amazon-deals-scraper",
  "sourceWebsite": "https://www.amazon.com",
  "targetKind": "amazon_deal_product",
  "directTransport": true,
  "inputUrl": "https://www.amazon.com/deals",
  "requestCount": 1,
  "pagesRequested": 1,
  "pagesFetched": 1,
  "pagesSkipped": 0,
  "failedPages": 0,
  "parsedItems": 30,
  "filteredItems": 0,
  "duplicateItems": 0,
  "requestedMaxItems": 5,
  "itemCount": 5,
  "emittedItemCount": 5,
  "successfulItems": 5,
  "diagnosticCount": 0,
  "diagnosticItems": 0,
  "blockedCount": 0,
  "requestErrorCount": 0,
  "dataAvailable": true,
  "usedProxy": false,
  "completedAt": "2026-10-25T21:06:34.318Z",
  "runStatus": "SUCCEEDED",
  "dataStatus": "COMPLETE"
}
```

The saved summary also contained an `actorStoreUrl` value without the publisher path; it is omitted here so no incorrect Store link is published. Use the Actor Store link at the top of this page.

### Coverage and limitations

Coverage is limited to the deals grid returned for the requested marketplace and offset. The Actor does not open product pages, so fields that only exist on a detail page, such as full descriptions, specifications, and seller offers, are not available. Pagination is offset-based with `pageSize`; Amazon may return the same cards for different offsets, which is why deduplication runs across pages.

Deals are time-sensitive and personalized by locale and session. Prices, savings, claimed percentages, and inventory can change between requests, so compare records by `scrapedAt` rather than treating them as current. Price pairs that disagree with the displayed savings are marked `rejected_inconsistent` or `badge_mismatch`, and missing values are omitted rather than filled from another field. Denials, challenge pages, and failed offsets are recorded in `OUTPUT_SUMMARY`; they do not become dataset rows.

### Usage and support

Cost is driven by compute time and the number of page offsets requested. Deals are read from one response per offset, so raising `maxPages` and `pageSize` increases requests and run time; `maxItems` caps only the rows that are kept. Start with one page and a small `maxItems`, inspect the dataset and summary, then widen the run. See the Actor's Pricing tab for current account rates.

Use the [Actor Issues page](https://apify.com/w3crawler/amazon-deals-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, endorsed by, or sponsored by 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

## `url` (type: `string`):

Public Amazon deals grid URL on a supported marketplace.

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

Maximum source-backed deal records emitted after filters and deduplication. Diagnostics are emitted in addition to this limit.

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

Maximum serialized public page offsets requested.

## `pageSize` (type: `integer`):

Offset increment used for later public page requests.

## `startIndex` (type: `integer`):

Zero-based public page offset for the first request.

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

Optional local filters applied only to fields exposed by the public page.

## `includeDetails` (type: `boolean`):

Include embedded deal state, badge, review, category, cart, and variation fields.

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

Include embedded product image URLs and media metadata.

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

Remove repeated ASINs across serialized page responses before applying maxItems.

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

BCP-47-like locale used in the ordinary Accept-Language header; the User-Agent remains fixed and transparent.

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

Accepted for older saved inputs only; direct public page requests are always serialized.

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

Pause before each later serialized page request.

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

Accepted for older saved inputs only; direct public requests are attempted once and never retried.

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

Accepted for older saved inputs only; direct public requests are attempted once and never retried.

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

Maximum time allowed for each direct public request.

## Actor input object example

```json
{
  "url": "https://www.amazon.com/deals",
  "maxItems": 30,
  "maxPages": 1,
  "pageSize": 30,
  "startIndex": 0,
  "filters": {},
  "includeDetails": true,
  "includeMedia": true,
  "deduplicate": true,
  "locale": "en-US",
  "concurrency": 1,
  "requestDelayMs": 800,
  "retries": 0,
  "maxRetries": 0,
  "requestTimeoutMs": 45000
}
```

# Actor output Schema

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

Dataset containing only normalized source-backed deal records.

## `summary` (type: `string`):

Run status, serialized request counts, data availability, and failure evidence.

## `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 = {
    "url": "https://www.amazon.com/deals",
    "maxItems": 30,
    "maxPages": 1,
    "pageSize": 30,
    "startIndex": 0,
    "includeDetails": true,
    "includeMedia": true,
    "deduplicate": true,
    "locale": "en-US",
    "concurrency": 1,
    "requestDelayMs": 800,
    "retries": 0,
    "maxRetries": 0,
    "requestTimeoutMs": 45000
};

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/amazon-deals-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 = {
    "url": "https://www.amazon.com/deals",
    "maxItems": 30,
    "maxPages": 1,
    "pageSize": 30,
    "startIndex": 0,
    "includeDetails": True,
    "includeMedia": True,
    "deduplicate": True,
    "locale": "en-US",
    "concurrency": 1,
    "requestDelayMs": 800,
    "retries": 0,
    "maxRetries": 0,
    "requestTimeoutMs": 45000,
}

# Run the Actor and wait for it to finish
run = client.actor("w3crawler/amazon-deals-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 '{
  "url": "https://www.amazon.com/deals",
  "maxItems": 30,
  "maxPages": 1,
  "pageSize": 30,
  "startIndex": 0,
  "includeDetails": true,
  "includeMedia": true,
  "deduplicate": true,
  "locale": "en-US",
  "concurrency": 1,
  "requestDelayMs": 800,
  "retries": 0,
  "maxRetries": 0,
  "requestTimeoutMs": 45000
}' |
apify call w3crawler/amazon-deals-scraper --silent --output-dataset

```

## MCP server setup

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