# Keepa Scraper: Amazon Price History, Buy Box & Trends (`vant47/keepa-price-history-scraper`) Actor

Get Amazon price history from Keepa for ASINs or URLs: current prices, dated history arrays, 30/90/180-day statistics, buy box, public ratings and offer counts. $0.0045 per product: 100 cost $0.45 plus $0.001 start. No login, Keepa account or API key.

- **URL**: https://apify.com/vant47/keepa-price-history-scraper.md
- **Developed by:** [fortbrand](https://apify.com/vant47) (community)
- **Categories:** E-commerce, Automation
- **Features:** Limited permissions
- **Stats:** 7 total users, 4 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.60 / 1,000 products

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Keepa Scraper: Amazon Price History, Buy Box & Trends

For price analysts, brands, resellers and comparison services monitoring known Amazon products. Get Keepa price-history arrays, current prices and calculated 30, 90 and 180-day statistics for ASINs or Amazon product links. Public buy-box, rating, offer-count and rank values are included when supplied. **$0.0045 per delivered product**, so **100 products cost $0.45**, plus a minimum **$0.001 start charge**. No Keepa account, login, subscription or API key is required.

Reuse product lists for fresh observations and optional comparisons with the previous completed run. Save an Apify task for scheduled database or spreadsheet workflows.

### What you get

One row represents one ASIN on one Amazon marketplace. Two marketplaces produce separate observations and currencies. Source identity must match before delivery. Overlapping identifiers are delivered once per run.

| Field | Meaning |
| --- | --- |
| `verdict` | Readable product, selected current price and history-window summary. |
| `recordType` | `PRODUCT` for a delivered observation or `NOTE` for a free explanation. |
| `asin`, `domain`, `country`, `currency` | Verified product and marketplace identity. |
| `title`, `brand`, `manufacturer` | Source metadata, with manufacturer kept separate from brand. |
| `imageUrl`, `category`, `categoryIds` | Source image and available category information. |
| `currentPrices` | Latest supplied Amazon, third-party new, used, buy-box, list and additional price types. |
| `priceHistory` | Dated change-point arrays for the requested window. |
| `statistics30Days`, `statistics90Days`, `statistics180Days` | Window minimum, maximum, dates, weighted mean and coverage. |
| `allTimeStatistics` | Equivalent calculations across the supplied history. |
| `historyPointCounts` | Number of delivered points per price series. |
| `salesRankCurrent`, `salesRankHistory` | Source rank values and history when public. |
| `offerCountNew`, `offerCountUsed` | Latest reported offer counts, not inventory quantities. |
| `ratingAverage`, `ratingCount`, `reviewCount` | Separate rating and written-review measures, where supplied. |
| `lastPriceChangeAt` | Keepa's latest registered price change across its price types. |
| `sourceUpdatedAt`, `trackedSince` | Source update and tracking-start timestamps. |
| `currentPriceDates` | Timestamp of the latest source point in each price series. |
| `keepaUrl`, `amazonUrl` | Product links for the verified marketplace. |
| `scrapedAt`, `statisticsAsOf` | Collection time and endpoint used for statistics. |
| `comparison` | Optional current-price differences against the previous completed watch. |

The Products view groups identity, currency and current prices. Open Full price histories and statistics for nested arrays and calculations. A free `SUMMARY` contains delivered counts, outcomes, duplicates, notes, source coverage and spending-limit status. Read it before accepting a snapshot as complete.

### Start in three steps

1. Add ASINs or Amazon product URLs and choose the marketplace for bare ASINs.
2. Select the history window and global product cap.
3. Start the Actor, inspect Products and SUMMARY, then export or connect your workflow.

The prefill uses `B0BN72FYFG`, a renewed iPhone. Preserve the product title and condition when comparing it with new handsets or other variants. The source check on 9 November 2026 returned a used price of $257.00, a buy-box item price of $294.95 with zero reported shipping, and historical change-point arrays. These are dated source observations, not checkout guarantees.

### Inputs

| Input | Behavior |
| --- | --- |
| `asins` | Product identifiers, one per line. Leading zeros remain intact. |
| `amazonUrls` | Amazon product links containing an ASIN. Each URL supplies its own marketplace. |
| `domain` | Marketplace for bare ASINs, such as `com`, `co.uk`, `de` or `co.jp`. |
| `historyDays` | `30`, `90`, `180`, `365` or `all`; default `90`. |
| `includeOffers` | Current public counts are included; seller offer lists remain outside coverage. |
| `compareWithPreviousRun` | Create or reuse a baseline for the same product list. |
| `maxItems` | Maximum distinct delivered products, from 1 to 400; default 20. |
| `proxyConfiguration` | Automatic datacenter first, with residential fallback where needed. Explicit choices are preserved. |

ASINs and URLs are combined and deduplicated before the cap. A URL's marketplace overrides `domain` for that entry. A bare ASIN uses `domain`. Different marketplaces remain distinct even when their ASIN is identical.

```json
{
  "asins": ["B0BN72FYFG", "B09W14BJF1"],
  "domain": "com",
  "historyDays": "90",
  "maxItems": 2
}
```

For cross-market monitoring:

```json
{
  "amazonUrls": [
    "https://www.amazon.com/dp/0141439513",
    "https://www.amazon.co.uk/dp/0141439513"
  ],
  "historyDays": "365",
  "compareWithPreviousRun": true,
  "maxItems": 2
}
```

### Understand the price types

`amazon` is Keepa's Amazon price series. `new` is its lowest-new marketplace series and can include Amazon itself. It is not relabeled as an exclusively third-party price.

`newThirdParty` is derived from the source's explicitly third-party FBA and FBM item-price histories. It takes the lowest known item price among those supplied components, excluding shipping and Amazon. `newFba` and `newFbm` retain the components for inspection. This calculation depends on the histories Keepa provides.

`buyBox` adds reported item price and shipping, staying null when either is unknown. Shipping components remain visible. Refurbished and Warehouse series remain separate. Inaccessible products can retain reported offer counts, with current prices and ratings null.

Keepa changed its NEW, USED and REFURBISHED definitions on 23 February 2026: older entries represent listing prices; later entries represent landing prices including shipping. The Actor preserves those source values and states their scope in `priceScopes`.

A missing price remains null. An unavailable state is never converted into a zero-dollar offer, and the latest unavailable state is not replaced with an older positive price. Non-standard or inaccessible product types do not imply a current offer merely because old history exists.

### Read change points and statistics

History points represent source changes, not equally spaced observations. Every date comes from Keepa's minute timestamp and is exported in UTC, retaining the original Keepa time for audit.

A selected window can retain one earlier point to establish the price entering that window. It keeps its original source date and is marked `carriedFromBeforeWindow`. This avoids inventing a new observation at the window boundary.

Statistics use a step function between source change points. The mean is weighted by the time a known price applies; unavailable and unknown-price intervals are excluded. `availableDays` and `coveragePercent` expose how much of the requested period has a usable price.

Minimum and maximum dates identify actual source change points. `appliesFrom` identifies where that price begins applying inside the window, which can be later than its original change date. A shorter tracking history or an availability gap therefore stays visible.

The 30, 90 and 180-day statistics are included regardless of the selected export window. Choosing 30 days limits the returned arrays while retaining the broader analytical summaries. `all` returns all available points, subject to the single-row size limit described below.

### Monitor prices every day

Save a task with a stable product list. In Apify Console, create a schedule, choose that task and set the desired schedule and timezone. Connect its completed-run webhook to your database, Sheets, Make, Zapier or n8n workflow. The Actor does not create schedules automatically.

Join snapshots using `domain + asin`; retain currency, price type and timestamps. `scrapedAt` records collection; `sourceUpdatedAt` records Keepa's update. A fresh collection can contain older source observations.

Enable comparison on the baseline run and later runs. The first enabled run returns `firstObservation`. Subsequent runs with the same product list report `changed` or `unchanged`, the previous collection time and affected price types. Product order does not change the watch identity.

Comparisons show prior/current values and differences when both exist. Null transitions remain visible without becoming zero. Schedule each watch sequentially; an unfinished prior run produces a free note until resumed. Baselines are scoped to this Actor and running Apify user.

### Pricing and spending limits

The base price is **$0.0045 per delivered product with history**. Bronze is $0.004275, Silver $0.00405, and Gold $0.0036. Platinum and Diamond use the Gold price. There is no separate price-history, comparison or default dataset-row fee.

| Products | Base product charges | Bronze | Silver | Gold |
| --- | --- | --- | --- | --- |
| 20 | $0.09 | $0.0855 | $0.081 | $0.072 |
| 100 | $0.45 | $0.4275 | $0.405 | $0.36 |
| 400 | $1.80 | $1.71 | $1.62 | $1.44 |

Add the minimum **$0.001 Actor start charge**. Apify counts one start unit per GB of selected memory, with a minimum of one. The default 512 MB run uses one start unit. Two delivered products at base pricing cost $0.010 including that start charge.

Duplicates, failed lookups, missing products, notes and SUMMARY have no product charge. A start charge can still apply to a run containing only notes. Capacity is checked before fetching and delivering another product. At the buyer's maximum charge, collection stops cleanly and SUMMARY records that limit.

### API and automation

Use your own Apify token to start the Actor and retrieve its dataset and SUMMARY:

```bash
curl -X POST \
  'https://api.apify.com/v2/acts/vant47~keepa-price-history-scraper/runs' \
  -H 'Authorization: Bearer YOUR_APIFY_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"asins":["B0BN72FYFG"],"historyDays":"90","maxItems":1}'
```

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("vant47/keepa-price-history-scraper").call(
    run_input={"asins": ["B0BN72FYFG"], "maxItems": 1}
)
rows = list(client.dataset(run["defaultDatasetId"]).iterate_items())
summary = client.key_value_store(run["defaultKeyValueStoreId"]).get_record("SUMMARY")
```

Filter exported rows by `recordType === "PRODUCT"` when importing prices. Keep notes or SUMMARY beside the snapshot so missing observations have an explanation. JSON preserves nested statistics and arrays directly; CSV and spreadsheet exports work best when selecting the fields needed by your analysis.

### Use with AI agents (MCP)

Connect to `https://mcp.apify.com`, find this Actor and provide ASINs or Amazon links. Ask for the marketplace, current prices, requested history window and product cap. Ask the agent to read SUMMARY, preserve nulls and keep currencies and price types separate.

For monitoring, reuse the product list and enable comparison. For analytical backfill, choose the history window and retain carry-in flags and coverage percentages. Your Apify spending limit remains the upper bound.

### Limits

Keepa's published marketplace coverage includes the US, UK, Germany, France, Japan, Canada, Italy, Spain, India, Mexico and Brazil. Australia produces a free coverage note. Unsupported markets are never replaced with another country's prices.

Public fields vary. Brand, category names, rank history, detailed offer history and written-review counts can be absent. Rating count is retained separately from written-review count. A manufacturer is not guessed to be a brand. Category IDs and ASINs are not labeled as barcodes.

Seller offer lists, seller contact data, private account information and subscription-only fields are not requested. `includeOffers` does not unlock those fields or add a fee. Missing values remain null.

The source may return cached data, unavailable states, incomplete histories or unusual values. Values are preserved with their scope and update times. They do not establish checkout taxes, delivery eligibility or an audited stock quantity.

Verification requests and rate limits stop further source requests in that run. Already delivered rows remain available; undelivered inputs have no product charge. No login or CAPTCHA solving is used. Oversized all-history rows produce a free note requesting a shorter window instead of truncating points silently.

Each run accepts at most 400 distinct ASIN and marketplace pairs. Excess input produces a free note; the first 400 pairs are accepted. Split larger watchlists across separate scheduled runs. Source verification still stops requests, and undelivered products have no Product charge.

Apify can reject schema-invalid input before starting a run. Parseable invalid selections produce notes; invalid global caps or windows create no product lookups. Saved dataset rows and charge receipts survive reboots. Recovery checks authoritative counts before continuing, and ambiguous billing evidence stops additional charges.

### FAQ

**Does lowest new mean third-party only?** No. `new` can include Amazon. `newThirdParty` uses explicitly third-party FBA and FBM component histories and states that scope.

**Is the average a simple mean of points?** No. It is weighted by the time a known price applies, with gaps excluded and coverage reported.

**Are repeated inputs charged twice?** A duplicate ASIN and marketplace is charged once per run. Fresh observations in later monitoring runs are charged again.

**What should I include in a support report?** The Apify run ID, ASIN, marketplace and the relevant SUMMARY note.

# Actor input Schema

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

Amazon ASINs for the selected marketplace. Price history is fetched signed out from Keepa. Duplicate ASIN and domain combinations are delivered once.

## `amazonUrls` (type: `array`):

Amazon product URLs. Each URL supplies its ASIN and marketplace, overriding domain for that entry. Unsupported marketplaces produce a free note.

## `domain` (type: `string`):

Marketplace for bare ASINs. URLs supply their own marketplace. Australia is accepted as a selection but produces a free coverage note.

## `historyDays` (type: `string`):

Return 30, 90, 180, 365 days or all available source change points. A prior change point can be retained with its original date to establish the price entering the window. Statistics always include 30, 90 and 180 days.

## `includeOffers` (type: `boolean`):

Current offer counts are included when public. Seller offer lists are not supplied by the signed-out route, so offers remains null and no extra charge applies.

## `compareWithPreviousRun` (type: `boolean`):

Save a baseline for this ASIN list and report price changes against the previous completed run with the same list. Run each watch sequentially. The first enabled run creates the baseline.

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

At most 400 distinct ASIN and marketplace pairs per run. Split longer lists across separate scheduled runs. 100 delivered products cost $0.45 plus the $0.001 minimum start charge. Duplicates and notes have no product charge.

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

Automatic default datacenter routing, with US residential retries if necessary. Explicit proxy disable, custom URLs, groups and country settings are respected.

## Actor input object example

```json
{
  "asins": [
    "B0BN72FYFG"
  ],
  "amazonUrls": [],
  "domain": "com",
  "historyDays": "90",
  "includeOffers": false,
  "compareWithPreviousRun": false,
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `products` (type: `string`):

No description

## `history` (type: `string`):

No description

## `summary` (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 = {
    "asins": [
        "B0BN72FYFG"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("vant47/keepa-price-history-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 = {
    "asins": ["B0BN72FYFG"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("vant47/keepa-price-history-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 '{
  "asins": [
    "B0BN72FYFG"
  ],
  "maxItems": 20
}' |
apify call vant47/keepa-price-history-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vant47/keepa-price-history-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/MREPgjdOtUYVkBFbR/builds/u2jMaKacQ0cuf0tAc/openapi.json
