# Amazon Scraper (`crawlerbros/amazon-scraper`) Actor

Scrapes products from Amazon category and search result pages. Extracts detailed product data including prices, reviews, seller info, variants, and delivery details. Supports multiple Amazon domains.

- **URL**: https://apify.com/crawlerbros/amazon-scraper.md
- **Developed by:** [Crawler Bros](https://apify.com/crawlerbros) (community)
- **Categories:** E-commerce, Developer tools, Other
- **Stats:** 6 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $3.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Amazon Category & Search Scraper

Scrape **Amazon search results, category/browse-node pages, seller storefronts, direct
product URLs, and ASIN lookups** in one actor. Extract prices, ratings, reviews, badges,
deals, delivery info, and (optionally) full product-detail-page data — across 20+ Amazon
marketplaces. No login, cookies, or API key required.

### What this actor does

- **6 input modes, combinable in a single run:** plain search keywords, ASINs, direct
  product URLs, seller/merchant storefront IDs, browse-node (category) IDs, or full
  category/search URLs.
- **Server-side + client-side filters:** sort order, price range, minimum rating, sponsored/
  deals/Prime toggles.
- **Optional full product-detail enrichment:** turn on `scrapeProductDetails` to also visit
  each product's own page for description, features, seller info, bestseller ranks, and
  variants.
- **Rich search-card metadata:** badges (Best Seller, Amazon's Choice, Limited Time Deal),
  "bought in past month", coupons, delivery estimates, sponsored/organic classification, and
  result position — across up to 50 pages per category/search, deduplicated by ASIN.
- **Empty fields are omitted** — a field only appears on a record when Amazon actually
  displayed that information for that product.

### Output per product

- `title` — product title
- `url` — direct Amazon product URL
- `asin` — Amazon Standard Identification Number
- `price` — current price `{value, currency, display}`
- `listPrice` — original/strike-through price, if a genuine discount is shown
- `stars` — average star rating (0-5)
- `reviewsCount` — total number of customer reviews
- `thumbnailImage` — main product thumbnail image URL
- `badge` — merchandising badge (e.g. `BestSeller`, `AmazonsChoice`, `LimitedTimeDeal`)
- `boughtInPastMonth`, `boughtInPastMonthText` — units bought in the past month (parsed value
  - raw "X+ bought in past month" text)
- `coupon` — coupon text shown on the card, if any
- `deliveryEstimate`, `shipsTo` — estimated delivery text and ships-to location, if shown
- `sustainabilityFeatures` — Climate Pledge Friendly / sustainability badge labels
- `variantsCount` — number of additional color/style variants shown via the card's "+N" hint
- `offerCount`, `lowestOfferPrice` — number and lowest price of "More Buying Choices" offers
- `sponsored` / `isSponsored`, `resultType` — whether this is a sponsored/ad placement
  (`ORGANIC`, `SPONSORED`, or `OTHER`)
- `prime` / `isPrime` — whether the card shows an Amazon Prime badge (evidence-only)
- `sourceLayout` — page layout this card came from: `SEARCH_GRID`, `MERCHANDISING_LANDING`,
  or `MIXED`
- `categoryUrl`, `categoryPage`, `categoryPosition` — the source URL, page number, and overall
  position across all pages of that source
- `position` — position metadata `{page, positionOnPage, globalPosition, uuid}`
- `resultsTotal`, `resultsFrom`, `resultsTo` — result-count metadata from the page's own
  results-info bar
- `facets` — refinement facets available on this results page
- `relatedSearches` — related search suggestions shown on this results page
- `scrapedAt` — ISO timestamp when the item was scraped

#### Additional fields when `scrapeProductDetails` is true

- `brand` — product brand name
- `inStock`, `inStockText` — whether the product is currently in stock + raw availability text
- `shippingPrice` — shipping cost, when explicitly shown
- `starsBreakdown` — rating breakdown by star count
- `answeredQuestions` — number of answered customer questions
- `breadCrumbs` — category breadcrumb path
- `description` — full product description
- `features` — product feature bullet points
- `variantAsins`, `variantAttributes` — ASINs of other variants (color/size/style) and their
  attribute names
- `priceVariants` — price by variant, when the page exposes one
- `reviewsLink` — link to the full reviews page
- `delivery`, `fastestDelivery` — delivery estimates
- `returnPolicy` — return policy text
- `support` — support/warranty information
- `seller` — seller info `{name, id, url, ...}`
- `bestsellerRanks` — bestseller rankings by category
- `locationText` — delivery destination the page rendered for

### Input

At least one of `categoryUrls`, `productUrls`, `keywords`, `asins`, `sellerIds`, or
`categoryNodeIds` is required. All six modes are additive — combine several in one run and
every URL they produce is scraped.

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `categoryUrls` | array | – | Amazon category/search result URLs, used as-is (e.g. `amazon.com/s?k=laptops`, `amazon.com/b?node=123`). A direct product URL pasted here also works. |
| `productUrls` | array | – | Direct Amazon product page URLs (e.g. `amazon.com/dp/B08N5WRWNW`) — always fetches the exact product, no search approximation |
| `keywords` | array | – | Plain search keywords/phrases — each builds a search URL automatically |
| `asins` | array | – | Amazon ASINs to look up (searched, then the matching result card is scraped). For a guaranteed exact match, use `productUrls` instead. |
| `sellerIds` | array | – | Seller/merchant IDs — each builds that seller's storefront search |
| `categoryNodeIds` | array | – | Amazon browse-node IDs — each builds a category landing-page URL |
| `marketplaceDomain` | string | `amazon.com` | Amazon domain used to build URLs for the keywords/ASINs/sellerIds/categoryNodeIds modes (ignored for `categoryUrls`/`productUrls`, used as-is) |
| `maxItemsPerCategory` | integer | `10` | Maximum products to return per URL (1-1000) |
| `maxPages` | integer | `1` | Maximum pages to paginate through per URL (1-50) |
| `scrapeProductDetails` | boolean | `true` | If true, also visits each product's own page for full detail-page fields. If false, returns only what's visible on the search/category card (much faster) |
| `sortBy` | select | `relevanceblender` | Sort order: Featured/Relevance, Price Low-to-High, Price High-to-Low, Avg. Customer Review, Newest Arrivals, Best Sellers |
| `priceMin` | number | – | Only return products priced at or above this amount |
| `priceMax` | number | – | Only return products priced at or below this amount |
| `minRating` | number | – | Only return products with a star rating at or above this value (0-5) |
| `includeSponsored` | boolean | `true` | If false, sponsored/ad results are excluded |
| `onlyDeals` | boolean | `false` | If true, only return products with a visible coupon, "Limited Time Deal" badge, or list/strike-through price |
| `primeOnly` | boolean | `false` | If true, only return products with a visible Amazon Prime badge |
| `proxyCountry` | select | `AUTO` | Proxy country for geo-targeting; `AUTO` picks a country based on the Amazon domain |
| `useResidentialProxy` | boolean | `false` | Start every session on residential proxies instead of datacenter proxies. Default (false) uses datacenter and escalates to residential automatically only after repeated blocks |
| `rateLimitDelay` | integer | `2` | Base delay in seconds between requests (1-30) |

#### Example: keyword search with filters, cards only (fast mode)

```json
{
  "keywords": ["wireless earbuds", "bluetooth speaker"],
  "maxItemsPerCategory": 100,
  "maxPages": 5,
  "scrapeProductDetails": false,
  "sortBy": "review-rank",
  "minRating": 4,
  "primeOnly": true
}
```

#### Example: full product-detail enrichment for a category URL

```json
{
  "categoryUrls": ["https://www.amazon.com/s?k=laptops"],
  "maxItemsPerCategory": 20,
  "scrapeProductDetails": true
}
```

#### Example: look up specific ASINs

```json
{
  "asins": ["B08N5WRWNW", "B09X7MPX8L"],
  "scrapeProductDetails": true
}
```

#### Example: fetch exact products by direct URL (guaranteed match, no search approximation)

```json
{
  "productUrls": [
    "https://www.amazon.com/dp/B08N5WRWNW",
    "https://www.amazon.com/dp/B09X7MPX8L"
  ]
}
```

#### Example: seller storefront + browse-node category, non-US marketplace

```json
{
  "sellerIds": ["A1B2C3D4E5F6G7"],
  "categoryNodeIds": ["172282"],
  "marketplaceDomain": "amazon.co.uk",
  "onlyDeals": true
}
```

### Supported Amazon Marketplaces

amazon.com (US), amazon.co.uk (UK), amazon.de (Germany), amazon.fr (France),
amazon.it (Italy), amazon.es (Spain), amazon.ca (Canada), amazon.com.au (Australia),
amazon.co.jp (Japan), amazon.in (India), amazon.com.br (Brazil), amazon.com.mx (Mexico),
amazon.nl (Netherlands), amazon.se (Sweden), amazon.pl (Poland), amazon.com.tr (Turkey),
amazon.ae (UAE), amazon.sa (Saudi Arabia), amazon.sg (Singapore), amazon.com.be
(Belgium), amazon.eg (Egypt), and more.

### Use cases

- **Competitor price monitoring** — track price, list price, and deal status for a set of
  competing products or keywords over time.
- **Market research** — pull the top products for a category or keyword to understand what
  sells, what's rated highly, and which brands dominate.
- **Sponsored-ad tracking** — measure how many sponsored placements appear for a keyword and
  which brands are bidding on it.
- **Seller storefront audits** — list every product a given seller ID currently has listed.
- **Deal & Prime coverage analysis** — filter by `onlyDeals`/`primeOnly` to see which products
  in a category currently have an active deal or Prime badge.
- **Product-detail enrichment for a shortlist** — combine `asins` with
  `scrapeProductDetails: true` to fetch full descriptions, variants, and seller info for a
  known list of products.

### FAQ

**Do I need to provide Amazon login cookies or an API key?**
No. This actor scrapes public search/category/storefront pages and product pages directly —
no account, cookies, or API key required.

**What's the fastest way to get a lot of products quickly?**
Set `scrapeProductDetails` to `false`. This skips visiting each individual product page and
only returns the fields already visible on the search/category card — much faster and
cheaper for large `maxItemsPerCategory` values.

**Can I combine a keyword search with a price/rating filter?**
Yes — `priceMin`/`priceMax`/`minRating`/`primeOnly`/`onlyDeals`/`includeSponsored` all apply
uniformly regardless of whether you used `keywords`, `asins`, `sellerIds`,
`categoryNodeIds`, or `categoryUrls`.

**Why are some fields missing from a record instead of showing `null`?**
Only fields that were actually found on the page are included. A missing field means Amazon
didn't display that information for that specific product (e.g. no visible price, no rating
yet, no Prime badge) — the actor never fabricates a placeholder value.

**Why did I get 0 results for some searches?**
Very restrictive filter combinations (e.g. a tight price range plus a high minimum rating)
can legitimately return 0 matching products. Also, some ASIN lookups may not have an exact
Amazon search match, in which case Amazon's own search may return related — sometimes
unrelated-looking — products instead. If you need a guaranteed exact match for a known
product, use `productUrls` instead of `asins`.

**Do the price/rating/Prime/sponsored/deal filters apply to `productUrls`?**
No. Those filters only make sense when choosing among multiple search/category results.
`productUrls` fetches one specific product you already identified by URL, so it's always
returned when the fetch succeeds, regardless of filter settings.

**Does this actor need a proxy?**
A proxy is used automatically (datacenter by default) to reduce blocking; you don't need to
configure or pay for your own. `useResidentialProxy` is available for higher reliability on
harder-to-scrape marketplaces, at a higher cost.

**How many pages/products can I scrape per source?**
Up to `maxPages` (max 50) pages and `maxItemsPerCategory` (max 1000) products per
category/search/seller/node URL, with automatic deduplication by ASIN across pages.

**Is this affiliated with Amazon?**
No, this is an independent third-party actor that scrapes Amazon's public search, category,
and storefront pages.

### More Amazon Actors

Part of a full Amazon scraper suite — also check out:

- [Amazon Product Scraper](https://apify.com/crawlerbros/amazon-product-scraper)
- [Amazon Best Sellers & Rankings Scraper](https://apify.com/crawlerbros/amazon-bestseller-scraper)
- [Amazon Reviews Scraper](https://apify.com/crawlerbros/amazon-reviews-scraper)
- [Amazon Reviews Scraper Pro](https://apify.com/crawlerbros/amazon-reviews-scraper-pro)
- [Amazon Offers Scraper (All Offers Display)](https://apify.com/crawlerbros/amazon-offers-scraper)
- [Amazon Seller & Shop Scraper](https://apify.com/crawlerbros/amazon-seller-shop-scraper)
- [Amazon Deals Scraper](https://apify.com/crawlerbros/amazon-deals-scraper)
- [Amazon Brand Store Scraper](https://apify.com/crawlerbros/amazon-brand-store-scraper)
- [Amazon Creator Shop Scraper](https://apify.com/crawlerbros/amazon-creator-shop-scraper)
- [Amazon Wishlist & Registry Scraper](https://apify.com/crawlerbros/amazon-list-registry-scraper)
- [Amazon Keyword Suggestions Scraper](https://apify.com/crawlerbros/amazon-keyword-suggestions-scraper)

# Actor input Schema

## `categoryUrls` (type: `array`):

List of Amazon category or search result URLs to scrape. Supports search pages (e.g., amazon.com/s?k=laptops) and browse nodes (e.g., amazon.com/b?node=123). A direct product URL (amazon.com/dp/...) pasted here also works and is fetched directly, same as Product URLs below. At least one of Category/Search URLs, Product URLs, Keywords, ASINs, Seller IDs, or Category Node IDs is required.

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

Direct Amazon product page URLs to scrape (e.g. amazon.com/dp/B08N5WRWNW). Always fetches full product-detail data for the exact product at that URL -- a guaranteed exact match, unlike ASINs (which search by text and take the closest result). Price/rating/Prime/sponsored/deal filters do not apply to this mode, since you're asking for one specific product by URL.

## `keywords` (type: `array`):

Plain search keywords/phrases. Each keyword builds an Amazon search URL (/s?k={query}) automatically.

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

Amazon ASINs to look up. Each ASIN is searched (/s?k={ASIN}) and the matching search-result card is scraped, reusing the same search-card parser as other input modes. For a guaranteed exact match instead of a search approximation, use Product URLs (amazon.com/dp/{ASIN}) instead.

## `sellerIds` (type: `array`):

Amazon seller/merchant IDs. Each seller ID builds a storefront search URL (/s?me={sellerId}) listing that seller's products.

## `categoryNodeIds` (type: `array`):

Amazon browse-node IDs. Each node ID builds a browse-node/category landing URL (/b?node={id}).

## `marketplaceDomain` (type: `string`):

Amazon marketplace domain used to build URLs for the Keywords/ASINs/Seller IDs/Category Node IDs input modes (ignored for Category/Search URLs, which are used as-is).

## `maxItemsPerCategory` (type: `integer`):

Maximum number of products to scrape per category URL

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

Maximum number of pages to scrape per category

## `scrapeProductDetails` (type: `boolean`):

If true, scrapes full product details from individual product pages. If false, returns only data visible on category pages (faster).

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

Sort order applied to search/category results.

## `priceMin` (type: `number`):

Only return products priced at or above this amount (in dollars).

## `priceMax` (type: `number`):

Only return products priced at or below this amount (in dollars).

## `minRating` (type: `number`):

Only return products with a star rating at or above this value (0-5).

## `includeSponsored` (type: `boolean`):

If true (default), sponsored/ad results are included in the output. Set to false to only return organic results.

## `onlyDeals` (type: `boolean`):

If true, only return products with evidence of a deal (coupon, limited-time-deal badge, or a visible list/strike-through price).

## `primeOnly` (type: `boolean`):

If true, only return products with a visible Amazon Prime badge.

## `proxyCountry` (type: `string`):

Proxy country for geo-targeting. Use AUTO to automatically select based on Amazon domain.

## `useResidentialProxy` (type: `boolean`):

Start every session on residential proxies (more reliable but more expensive ~$12.50/GB). Default (false) uses datacenter proxies (~$0.50/GB) and automatically escalates a session to residential only after repeated blocks.

## `rateLimitDelay` (type: `integer`):

Base delay between requests in seconds to avoid rate limiting

## Actor input object example

```json
{
  "categoryUrls": [
    "https://www.amazon.com/s?k=laptops",
    "https://www.amazon.com/s?k=wireless+headphones"
  ],
  "productUrls": [
    "https://www.amazon.com/dp/B08N5WRWNW"
  ],
  "keywords": [
    "running shoes",
    "wireless headphones"
  ],
  "asins": [
    "B08N5WRWNW"
  ],
  "sellerIds": [
    "A1B2C3D4E5F6G7"
  ],
  "categoryNodeIds": [
    "172282"
  ],
  "marketplaceDomain": "amazon.com",
  "maxItemsPerCategory": 3,
  "maxPages": 1,
  "scrapeProductDetails": true,
  "sortBy": "relevanceblender",
  "includeSponsored": true,
  "onlyDeals": false,
  "primeOnly": false,
  "proxyCountry": "AUTO",
  "useResidentialProxy": false,
  "rateLimitDelay": 2
}
```

# Actor output Schema

## `title` (type: `string`):

Product title

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

Direct Amazon URL for the product page

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

Amazon Standard Identification Number

## `brand` (type: `string`):

Product brand name

## `price` (type: `string`):

Current price (JSON object with value and currency)

## `listPrice` (type: `string`):

Original list price before discounts

## `stars` (type: `string`):

Average star rating from 1 to 5

## `reviewsCount` (type: `string`):

Total number of customer reviews

## `inStock` (type: `string`):

Whether the product is currently in stock

## `inStockText` (type: `string`):

Detailed stock availability text

## `thumbnailImage` (type: `string`):

Main product image URL

## `features` (type: `string`):

List of product features and bullet points (JSON array)

## `description` (type: `string`):

Full product description

## `breadCrumbs` (type: `string`):

Product category breadcrumb path

## `bestsellerRanks` (type: `string`):

Bestseller rankings in different categories (JSON array)

## `seller` (type: `string`):

Seller information (JSON object)

## `delivery` (type: `string`):

Delivery information and estimated date

## `shippingPrice` (type: `string`):

Shipping cost (JSON object)

## `variantAsins` (type: `string`):

List of variant product ASINs (JSON array)

## `variantAttributes` (type: `string`):

Available variant options (JSON array)

## `reviewsLink` (type: `string`):

Link to all product reviews

## `categoryUrl` (type: `string`):

Source category/search URL

## `categoryPage` (type: `string`):

Page number in search results

## `categoryPosition` (type: `string`):

Position in search results

## `scrapedAt` (type: `string`):

ISO timestamp when the data was scraped

## `sourceLayout` (type: `string`):

Which page layout this record was extracted from: SEARCH\_GRID, MERCHANDISING\_LANDING, MIXED, or PRODUCT\_PAGE (direct product URL / ASIN-exact fetch)

## `sponsored` (type: `string`):

Whether this result is a sponsored/ad placement (evidence-only)

## `resultType` (type: `string`):

Result classification: ORGANIC, SPONSORED, EDITORIAL, or OTHER

## `badge` (type: `string`):

Merchandising badge shown on the card (e.g. BestSeller, AmazonsChoice)

## `boughtInPastMonth` (type: `string`):

Number of units bought in the past month, parsed from the card's compact-count hint

## `boughtInPastMonthText` (type: `string`):

Raw "X+ bought in past month" card text

## `coupon` (type: `string`):

Coupon text shown on the card, if any

## `deliveryEstimate` (type: `string`):

Estimated delivery text shown on the card

## `shipsTo` (type: `string`):

Ships-to location text shown on the card, if any

## `sustainabilityFeatures` (type: `string`):

Sustainability/Climate Pledge Friendly badge labels (JSON array)

## `variantsCount` (type: `string`):

Number of additional color/style variants shown via the card's "+N" hint

## `prime` (type: `string`):

Whether the card shows an Amazon Prime badge (evidence-only)

## `offerCount` (type: `string`):

Number of "More Buying Choices" offers shown on the card

## `lowestOfferPrice` (type: `string`):

Lowest "More Buying Choices" offer price (JSON object with value and currency)

## `resultsTotal` (type: `string`):

Total number of results reported by the results-info bar

## `resultsFrom` (type: `string`):

Starting result index reported by the results-info bar

## `resultsTo` (type: `string`):

Ending result index reported by the results-info bar

## `position` (type: `string`):

Position metadata (JSON object with page, positionOnPage, globalPosition, uuid)

## `facets` (type: `string`):

Refinement facets available on this results page (JSON array)

## `relatedSearches` (type: `string`):

Related search suggestions shown on this results page (JSON array of text/url pairs)

# 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 = {
    "categoryUrls": [
        "https://www.amazon.com/s?k=laptops"
    ],
    "marketplaceDomain": "amazon.com",
    "maxItemsPerCategory": 3,
    "scrapeProductDetails": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlerbros/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 = {
    "categoryUrls": ["https://www.amazon.com/s?k=laptops"],
    "marketplaceDomain": "amazon.com",
    "maxItemsPerCategory": 3,
    "scrapeProductDetails": False,
}

# Run the Actor and wait for it to finish
run = client.actor("crawlerbros/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 '{
  "categoryUrls": [
    "https://www.amazon.com/s?k=laptops"
  ],
  "marketplaceDomain": "amazon.com",
  "maxItemsPerCategory": 3,
  "scrapeProductDetails": false
}' |
apify call crawlerbros/amazon-scraper --silent --output-dataset

```

## MCP server setup

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