# Amazon Realtime Data Scraper (Cheapest) (`freecamp008/amazon-realtime-data-scraper-cheapest`) Actor

Powerful Amazon web scraper that extracts comprehensive product data including titles, prices, ratings, reviews, images, and detailed specifications. Features advanced proxy rotation with residential IPs to avoid blocks and ensure reliable data collection.

- **URL**: https://apify.com/freecamp008/amazon-realtime-data-scraper-cheapest.md
- **Developed by:** [Camp8 fr0](https://apify.com/freecamp008) (community)
- **Categories:** E-commerce, Developer tools, Automation
- **Features:** Full permissions
- **Stats:** 4 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

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

## Amazon Product Scraper Actor

This Apify Actor scrapes Amazon products using Playwright with proxy support for better reliability and to avoid blocking.

### Features

- **Two modes of operation:**

  - **Keyword Search**: Search for products by keyword across multiple pages
  - **Product Details**: Extract detailed information for specific products using ASIN or URL

- **Proxy Support**: Configurable proxy settings using Apify's proxy service

- **Anti-blocking measures**: Realistic user agents and request patterns

- **Structured data output**: Clean, structured JSON output saved to Apify dataset

### Input Parameters

#### Required

- `mode`: Choose between "keyword" or "product-details"

#### For Keyword Search Mode

- `keyword`: Search term (default: "notebook")
- `pages`: Number of search result pages to scrape (1-10, default: 2)

#### For Product Details Mode

- `asin`: Amazon Standard Identification Number (10-character code)
- `url`: Alternative to ASIN - full Amazon product URL

#### Proxy Configuration

- `useApifyProxy`: Enable Apify's proxy service (recommended: true)
- `groups`: Proxy groups to use (default: \["RESIDENTIAL"])
- `countryCode`: Country code for proxy location (default: "US")

#### Performance Settings

- `maxConcurrency`: Maximum concurrent pages (1-5, default: 1)

### Output

#### Keyword Search Mode

Returns an array of products with:

- `title`: Product title
- `image`: Main product image URL
- `price`: Product price
- `reviews`: Rating and review count
- `link`: Product page URL
- `asin`: Product ASIN

#### Product Details Mode

Returns detailed product information including:

- Basic info (title, price, images, rating)
- Product specifications
- Availability status
- Brand information
- Product descriptions
- Technical specifications
- Dimensions and weight
- Best sellers rank
- Category breadcrumbs

### Usage Examples

#### Keyword Search

```json
{
  "mode": "keyword",
  "keyword": "wireless headphones",
  "pages": 3,
  "useApifyProxy": true,
  "proxyGroups": ["RESIDENTIAL"],
  "proxyCountryCode": "US"
}
```

#### Product Details

```json
{
  "mode": "product-details",
  "asin": "B0CHVS3MH1",
  "useApifyProxy": true,
  "proxyGroups": ["RESIDENTIAL"],
  "proxyCountryCode": "US"
}
```

Or using URL:

```json
{
  "mode": "product-details",
  "url": "https://www.amazon.com/dp/B0CHVS3MH1",
  "useApifyProxy": true,
  "proxyGroups": ["RESIDENTIAL"],
  "proxyCountryCode": "US"
}
```

### Best Practices

1. **Use proxies**: Always enable proxy configuration to avoid being blocked
2. **Reasonable concurrency**: Keep maxConcurrency low (1-2) to avoid overwhelming Amazon's servers
3. **Rate limiting**: The Actor includes built-in delays and respectful scraping practices
4. **Error handling**: The Actor handles common errors and retries failed requests

# Actor input Schema

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

Choose between keyword search or product details extraction

## `keyword` (type: `string`):

Keyword to search for products (used when mode is 'keyword')

## `pages` (type: `integer`):

Number of search result pages to scrape (used when mode is 'keyword')

## `asin` (type: `string`):

Amazon Standard Identification Number for specific product (used when mode is 'product-details')

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

Full Amazon product URL (alternative to ASIN, used when mode is 'product-details')

## `useApifyProxy` (type: `boolean`):

Enable Apify's proxy service for better scraping reliability

## `proxyGroups` (type: `array`):

Proxy groups to use (RESIDENTIAL, DATACENTER, etc.)

## `proxyCountryCode` (type: `string`):

Country code for proxy location (e.g., US, GB, DE)

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

Maximum number of concurrent pages to process

## Actor input object example

```json
{
  "mode": "keyword",
  "keyword": "notebook",
  "pages": 2,
  "useApifyProxy": true,
  "proxyGroups": [
    "RESIDENTIAL"
  ],
  "proxyCountryCode": "US",
  "maxConcurrency": 1
}
```

# 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("freecamp008/amazon-realtime-data-scraper-cheapest").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("freecamp008/amazon-realtime-data-scraper-cheapest").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 freecamp008/amazon-realtime-data-scraper-cheapest --silent --output-dataset

```

## MCP server setup

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

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/hScbsWXGGlhkeExu4/builds/q8JFCLAfocgYlric1/openapi.json
