# Amazon Asin Scraper (`laisi/amazon-asin-scraper`) Actor

Bulk-fetch structured Amazon product details by ASIN and marketplace country.

- **URL**: https://apify.com/laisi/amazon-asin-scraper.md
- **Developed by:** [laisi](https://apify.com/laisi) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 5 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 results

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

## Amazon Product Details Scraper

Scrape **Amazon product details by ASIN** across 23 global marketplaces. This Apify Actor returns structured product data — title, price, images, ratings, BSR, seller info, variants, and more — in real time. Built for pricing intelligence, catalog enrichment, competitor research, and e-commerce data pipelines.

### What you get

- **Product details by ASIN** — one JSON record per product in your Apify dataset
- **23 Amazon marketplaces** — US, UK, DE, JP, and 19 other country stores
- **Localized content** — set page language independently from marketplace country
- **Rich product fields** — price, brand, images, ratings, review summaries, BSR, availability, seller, variants, A+ content flags, and more
- **Pipeline-ready output** — structured JSON for databases, BI dashboards, webhooks, and automation

### Input parameters

| Parameter | Type | Required | Default | Description |
| --------- | ---- | -------- | ------- | ----------- |
| `asins` | string\[] | Yes | — | Amazon product ASINs to scrape (e.g. `B0CMJB2WJX`) |
| `country` | string | No | `US` | Amazon marketplace country code |
| `language` | string | No | `en_US` | Page language for titles, descriptions, and UI text |

#### Supported marketplaces (`country`)

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

#### `language` parameter

Controls the **page language** Amazon serves for the product page. **Country and language are separate settings** — you can scrape the German marketplace (`DE`) with English content (`en_GB`), or the US store with Spanish (`es_US`).

- **Format:** `<language>_<REGION>` — Amazon's `language` query parameter (e.g. `en_US`, `de_DE`, `ja_JP`, `fr_CA`)
- **What it affects:** product title, description, bullet points, UI labels, and other on-page text
- **What it does not change:** the marketplace domain and currency (those follow `country`)
- **Fallback:** if the code is not supported for the selected `country`, the Actor uses that marketplace's default language and logs a warning

##### Supported languages by marketplace

| Country | Supported `language` codes | Default |
| ------- | -------------------------- | ------- |
| US | `en_US`, `es_US` | `en_US` |
| CA | `en_CA`, `fr_CA` | `en_CA` |
| MX | `es_MX` | `es_MX` |
| BR | `pt_BR` | `pt_BR` |
| GB | `en_GB` | `en_GB` |
| IE | `en_IE` | `en_IE` |
| FR | `fr_FR`, `en_GB` | `fr_FR` |
| DE | `de_DE`, `en_GB`, `nl_NL`, `pl_PL`, `tr_TR` | `de_DE` |
| IT | `it_IT`, `en_GB` | `it_IT` |
| ES | `es_ES`, `pt_PT`, `en_GB` | `es_ES` |
| NL | `nl_NL`, `en_GB` | `nl_NL` |
| SE | `sv_SE`, `en_GB` | `sv_SE` |
| PL | `pl_PL` | `pl_PL` |
| BE | `fr_BE`, `nl_BE`, `en_GB` | `fr_BE` |
| JP | `ja_JP`, `en_US`, `zh_CN` | `ja_JP` |
| AU | `en_AU` | `en_AU` |
| IN | `en_IN` | `en_IN` |
| SG | `en_SG` | `en_SG` |
| AE | `en_AE`, `ar_AE` | `en_AE` |
| SA | `ar_AE`, `en_AE` | `ar_AE` |
| TR | `tr_TR` | `tr_TR` |
| EG | `ar_AE`, `en_AE` | `ar_AE` |
| ZA | `en_ZA` | `en_ZA` |

#### Input example

```json
{
  "asins": ["B0CMJB2WJX", "B00S5M2S28"],
  "country": "US",
  "language": "en_US"
}
```

Scrape Amazon Germany with English product text:

```json
{
  "asins": ["B0CMJB2WJX"],
  "country": "DE",
  "language": "en_GB"
}
```

#### Output example

Each run pushes **one dataset record per ASIN**. Example:

```json
{
  "status": 200,
  "message": "success",
  "asin": "B0CMJB2WJX",
  "country": "US",
  "language": "en_US",
  "currency": "USD",
  "url": "https://www.amazon.com/dp/B0CMJB2WJX?language=en_US&th=1&psc=1",
  "timestamp": "1779176899807",
  "title": "Dell WD19S Docking Station Dual Monitor...",
  "brand": "Amazon Renewed",
  "current_asin": "B0CMJB2WJX",
  "parent_asin": "B0CMJB2WJX",
  "current_price": "$164.99",
  "original_price": null,
  "sold_by": "Koncept Technologies",
  "ships_from": "Amazon",
  "main_image_url": "https://m.media-amazon.com/images/I/71KY5nODOAL...",
  "images": ["https://m.media-amazon.com/images/I/71KY5nODOAL...", "..."],
  "average_rating": "3.8",
  "total_reviews": 75,
  "rating_distribution": [
    { "text": "5 star", "value": "60%" },
    { "text": "4 star", "value": "8%" }
  ],
  "availability": "In Stock",
  "main_bsr_category": { "name": "Electronics", "rank": "8129" },
  "about_item": ["The Upgrade Your Workstation Needs...", "..."],
  "product_overview": [{ "name": "Brand", "value": "Koncept" }],
  "reviews": [{ "rating": "5", "author": "John C Slusser", "title": "Great product" }],
  "variants": [],
  "is_amazon_choice": false,
  "has_aplus": true
}
```

**Main field groups**

| Group | Fields |
| ----- | ------ |
| Metadata | `status`, `message`, `asin`, `country`, `language`, `currency`, `url`, `timestamp` |
| Pricing | `current_price`, `original_price`, `saving_percentage`, `availability` |
| Identity | `title`, `brand`, `brand_url`, `current_asin`, `parent_asin`, `seller_id`, `sold_by`, `ships_from` |
| Media | `main_image_url`, `images` |
| Ratings | `average_rating`, `total_reviews`, `rating_distribution`, `customers_say_summary`, `reviews` |
| Catalog | `about_item`, `description`, `product_overview`, `product_details`, `category_path`, `variants` |
| Rankings | `main_bsr_category`, `sub_bsr_categories` |
| Flags | `is_amazon_choice`, `is_best_seller`, `has_aplus`, `has_brandstory` |

Invalid or missing ASIN:

```json
{
  "status": 404,
  "message": "page not found",
  "url": "https://www.amazon.com/dp/INVALID?language=en_US&th=1&psc=1"
}
```

### Typical use cases

- **Price monitoring** — track current price, discounts, and availability across marketplaces
- **Catalog enrichment** — fill product titles, images, specs, and BSR into your PIM or database
- **Competitor research** — compare listings, ratings, and seller info for rival ASINs
- **Cross-border e-commerce** — pull localized product content from multiple Amazon locales
- **Data pipelines** — feed structured product JSON into BI tools, warehouses, and alerting systems

### Stability and security

- Input validation for `country` and `language` with automatic language fallback
- Structured `404` responses when a product page is not found
- Logging is sanitized to avoid printing token-bearing connection strings

# Actor input Schema

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

List of Amazon product ASINs to scrape

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

Country code for the Amazon marketplace

## `language` (type: `string`):

Page language code (titles, descriptions, UI text). Country and language are separate: you can search a marketplace in a non-default language (e.g. DE + en_GB). Supported languages vary by country — US: en_US, es_US | CA: en_CA, fr_CA | MX: es_MX | BR: pt_BR | GB: en_GB | IE: en_IE | FR: fr_FR, en_GB | DE: de_DE, en_GB, nl_NL, pl_PL, tr_TR | IT: it_IT, en_GB | ES: es_ES, pt_PT, en_GB | NL: nl_NL, en_GB | SE: sv_SE, en_GB | PL: pl_PL | BE: fr_BE, nl_BE, en_GB | JP: ja_JP, en_US, zh_CN | AU: en_AU | IN: en_IN | SG: en_SG | AE: ar_AE, en_AE | SA: ar_AE, en_AE | TR: tr_TR | EG: ar_AE, en_AE | ZA: en_ZA. If the code is not supported for the selected country, the Actor falls back to that country's default.

## Actor input object example

```json
{
  "asins": [
    "B00S5M2S28",
    "B0CMJB2WJX"
  ],
  "country": "US",
  "language": "en_US"
}
```

# Actor output Schema

## `results` (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": [
        "B00S5M2S28",
        "B0CMJB2WJX"
    ],
    "country": "US"
};

// Run the Actor and wait for it to finish
const run = await client.actor("laisi/amazon-asin-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": [
        "B00S5M2S28",
        "B0CMJB2WJX",
    ],
    "country": "US",
}

# Run the Actor and wait for it to finish
run = client.actor("laisi/amazon-asin-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": [
    "B00S5M2S28",
    "B0CMJB2WJX"
  ],
  "country": "US"
}' |
apify call laisi/amazon-asin-scraper --silent --output-dataset

```

## MCP server setup

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