Skip to content

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Amazon Scraper API by ScrapeBadger

Get API key Docs MCP server Pricing

Amazon Scraper API

Get Amazon product data as clean JSON with one HTTP request. The Amazon Scraper API covers search results, full product pages, every seller's offer, reviews, bestsellers, new releases, deals and seller storefronts on 20 Amazon marketplaces. This repo has a runnable Python, Node.js and cURL example for each endpoint, plus the real response each one returned.

What does an Amazon scraper do?

An Amazon scraper collects public data from Amazon pages, such as product titles, prices, ratings, reviews, sellers and search rankings, and turns it into structured data you can store or analyse. Instead of running browsers and handling blocks yourself, you send an ASIN or a keyword to the API and get back JSON, for any of 20 Amazon marketplaces.

Contents

Quick start

  1. Create a free ScrapeBadger account. You get 1,000 free credits, no card needed.

  2. Copy your API key from the dashboard and export it:

    export SCRAPEBADGER_API_KEY="your_api_key"
  3. Make your first request: search Amazon products.

cURL

curl -sS --max-time 120 -G "https://scrapebadger.com/v1/amazon/search" \
  -H "X-API-Key: $SCRAPEBADGER_API_KEY" \
  --data-urlencode 'query=wireless earbuds' \
  --data-urlencode 'domain=com'

Python (pip install requests)

import json
import os

import requests

API_KEY = os.environ["SCRAPEBADGER_API_KEY"]

response = requests.get(
    "https://scrapebadger.com/v1/amazon/search",
    headers={"X-API-Key": API_KEY},
    params={
        "query": "wireless earbuds",
        "domain": "com",
    },
    timeout=120,
)
response.raise_for_status()
print(json.dumps(response.json(), indent=2, ensure_ascii=False))

Node.js (18+, no dependencies)

const params = new URLSearchParams({
  query: 'wireless earbuds',
  domain: 'com',
});

const response = await fetch(`https://scrapebadger.com/v1/amazon/search?${params}`, {
  headers: { 'X-API-Key': process.env.SCRAPEBADGER_API_KEY },
  signal: AbortSignal.timeout(120000),
});
if (!response.ok) {
  throw new Error(`HTTP ${response.status}: ${await response.text()}`);
}
console.log(JSON.stringify(await response.json(), null, 2));

Every endpoint below has the same three versions in examples/, and the real response it returned is in output-samples/.

Endpoints

Base URL: https://scrapebadger.com. Authenticate with the X-API-Key header. Credits are charged only for successful requests.

Endpoint What it returns Credits per request Docs
GET /v1/amazon/search Search Amazon products 8 Docs
GET /v1/amazon/autocomplete Keyword suggestions 2 Docs
GET /v1/amazon/products/{asin} Get product detail 13 Docs
GET /v1/amazon/products/{asin}/offers Get all seller offers (buybox) 11 Docs
GET /v1/amazon/products/{asin}/reviews Get product reviews 13 Docs
GET /v1/amazon/bestsellers Bestsellers by category 8 Docs
GET /v1/amazon/new-releases New releases by category 8 Docs
GET /v1/amazon/deals Today's deals 8 Docs
GET /v1/amazon/category Browse-node category listing 8 Docs
GET /v1/amazon/sellers/{seller_id} Get seller profile 4 Docs
GET /v1/amazon/sellers/{seller_id}/products Get seller storefront products 8 Docs
GET /v1/amazon/sellers/{seller_id}/feedback Get seller feedback 4 Docs
GET /v1/amazon/markets List marketplaces Free Docs
GET /v1/amazon/categories List category aliases Free Docs

Common parameters

Parameter Description Default
domain Amazon marketplace TLD, e.g. com, co.uk, de, fr, co.jp, in. GET /v1/amazon/markets lists all 20. com
page Results page for list endpoints (search, offers, reviews, bestsellers, sellers). 1
zip Delivery postal code, for localized prices and availability (search, product, offers).
language Result locale where the marketplace has several, e.g. en_US, es_US, fr_CA.

Examples by endpoint

Each example prints the JSON response. The Python versions are below; Node.js and cURL versions are linked under each one.

Search Amazon products

Search the Amazon catalog with filters and sorting.

GET /v1/amazon/search · Credits: 8 · Docs

Parameter Required Type Default Description
query Yes string Search keywords
domain string com Amazon marketplace TLD or code (com, co.uk, de…)
page integer 1 Results page for list endpoints (search, offers, reviews, bestsellers, sellers).
sort_by string relevance | price_low_to_high | price_high_to_low | avg_review | newest
category string Department/category alias (i= param)
min_price number Lowest price, in the marketplace's currency
max_price number Highest price, in the marketplace's currency
zip string Delivery postal/zip code for localized pricing
language string Locale for results, e.g. en_US, fr_FR
import json
import os

import requests

API_KEY = os.environ["SCRAPEBADGER_API_KEY"]

response = requests.get(
    "https://scrapebadger.com/v1/amazon/search",
    headers={"X-API-Key": API_KEY},
    params={
        "query": "wireless earbuds",
        "domain": "com",
    },
    timeout=120,
)
response.raise_for_status()
print(json.dumps(response.json(), indent=2, ensure_ascii=False))

Node.js · cURL · Output sample (31 KB)

Get product details

Full product detail by ASIN (price, variants, badges, buybox, ranks…).

GET /v1/amazon/products/{asin} · Credits: 13 · Docs

Parameter Required Type Default Description
asin Yes string Amazon product ID (ASIN), 10 characters, e.g. B0CHWRXH8B
domain string com Amazon marketplace TLD, e.g. com, co.uk, de, fr, co.jp, in. GET /v1/amazon/markets lists all 20.
zip string Delivery postal/zip for localized buybox
language string Result locale where the marketplace has several, e.g. en_US, es_US, fr_CA.
import json
import os

import requests

API_KEY = os.environ["SCRAPEBADGER_API_KEY"]

asin = "B0CHWRXH8B"

response = requests.get(
    f"https://scrapebadger.com/v1/amazon/products/{asin}",
    headers={"X-API-Key": API_KEY},
    params={
        "domain": "com",
    },
    timeout=120,
)
response.raise_for_status()
print(json.dumps(response.json(), indent=2, ensure_ascii=False))

Node.js · cURL · Output sample (3 KB)

Get all offers for a product

All third-party offers for an ASIN, including the Buy Box winner.

GET /v1/amazon/products/{asin}/offers · Credits: 11 · Docs

Parameter Required Type Default Description
asin Yes string Amazon product ID (ASIN), 10 characters, e.g. B0CHWRXH8B
domain string com Amazon marketplace TLD, e.g. com, co.uk, de, fr, co.jp, in. GET /v1/amazon/markets lists all 20.
zip string Delivery postal code, for localized prices and availability (search, product, offers).
page integer 1 Offer page, 10 rows each
import json
import os

import requests

API_KEY = os.environ["SCRAPEBADGER_API_KEY"]

asin = "B0CHWRXH8B"

response = requests.get(
    f"https://scrapebadger.com/v1/amazon/products/{asin}/offers",
    headers={"X-API-Key": API_KEY},
    params={
        "domain": "com",
    },
    timeout=120,
)
response.raise_for_status()
print(json.dumps(response.json(), indent=2, ensure_ascii=False))

Node.js · cURL · Output sample (2 KB)

Get product reviews

Customer reviews for an ASIN, filtered, sorted and paginated. Public reviews are the ones Amazon shows to signed-out visitors. Some marketplaces, amazon.com among them, currently show none; there the call answers 422 and isn't billed.

GET /v1/amazon/products/{asin}/reviews · Credits: 13 · Docs

Parameter Required Type Default Description
asin Yes string Amazon product ID (ASIN), 10 characters, e.g. B0CHWRXH8B
domain string com Amazon marketplace TLD, e.g. com, co.uk, de, fr, co.jp, in. GET /v1/amazon/markets lists all 20.
page integer 1 Review page (10 reviews/page)
sort_by string helpful helpful | recent
star string 1-5 | one_star..five_star | positive | critical | all_stars
verified_only boolean false
media_only boolean false
mode string public public (default): the reviews shown on the product page. full: the product's wider review history, with the same filters and paging.
max_pages integer 10 full mode: pages to walk per star sweep
per_star boolean false full mode: sweep each star filter and merge + dedupe
limit integer full mode: stop at this many distinct reviews
import json
import os

import requests

API_KEY = os.environ["SCRAPEBADGER_API_KEY"]

asin = "B0CHX1W1XY"

response = requests.get(
    f"https://scrapebadger.com/v1/amazon/products/{asin}/reviews",
    headers={"X-API-Key": API_KEY},
    params={
        "domain": "de",
    },
    timeout=120,
)
response.raise_for_status()
print(json.dumps(response.json(), indent=2, ensure_ascii=False))

Node.js · cURL · Output sample (3 KB)

Get bestsellers by category

Top-selling products for a category (browse node).

GET /v1/amazon/bestsellers · Credits: 8 · Docs

Parameter Required Type Default Description
domain string com Amazon marketplace TLD, e.g. com, co.uk, de, fr, co.jp, in. GET /v1/amazon/markets lists all 20.
category string Bestsellers node id or slug
page integer 1 Results page for list endpoints (search, offers, reviews, bestsellers, sellers).
import json
import os

import requests

API_KEY = os.environ["SCRAPEBADGER_API_KEY"]

response = requests.get(
    "https://scrapebadger.com/v1/amazon/bestsellers",
    headers={"X-API-Key": API_KEY},
    params={
        "domain": "com",
        "category": "electronics",
    },
    timeout=120,
)
response.raise_for_status()
print(json.dumps(response.json(), indent=2, ensure_ascii=False))

Node.js · cURL · Output sample (20 KB)

Get new releases by category

Newly released products for a category (browse node).

GET /v1/amazon/new-releases · Credits: 8 · Docs

Parameter Required Type Default Description
domain string com Amazon marketplace TLD, e.g. com, co.uk, de, fr, co.jp, in. GET /v1/amazon/markets lists all 20.
category string
page integer 1 Results page for list endpoints (search, offers, reviews, bestsellers, sellers).
import json
import os

import requests

API_KEY = os.environ["SCRAPEBADGER_API_KEY"]

response = requests.get(
    "https://scrapebadger.com/v1/amazon/new-releases",
    headers={"X-API-Key": API_KEY},
    params={
        "domain": "com",
        "category": "electronics",
    },
    timeout=120,
)
response.raise_for_status()
print(json.dumps(response.json(), indent=2, ensure_ascii=False))

Node.js · cURL · Output sample (20 KB)

Get today's deals

Current Amazon deals (lightning deals, best deals).

GET /v1/amazon/deals · Credits: 8 · Docs

Parameter Required Type Default Description
domain string com Amazon marketplace TLD, e.g. com, co.uk, de, fr, co.jp, in. GET /v1/amazon/markets lists all 20.
category string
page integer 1 Results page for list endpoints (search, offers, reviews, bestsellers, sellers).
import json
import os

import requests

API_KEY = os.environ["SCRAPEBADGER_API_KEY"]

response = requests.get(
    "https://scrapebadger.com/v1/amazon/deals",
    headers={"X-API-Key": API_KEY},
    params={
        "domain": "com",
    },
    timeout=120,
)
response.raise_for_status()
print(json.dumps(response.json(), indent=2, ensure_ascii=False))

Node.js · cURL · Output sample (25 KB)

Browse a category node

List products within an Amazon browse-node category.

GET /v1/amazon/category · Credits: 8 · Docs

Parameter Required Type Default Description
node Yes string Amazon browse node ID (the node= value in a category URL), e.g. 172282 for Electronics
domain string com Amazon marketplace TLD, e.g. com, co.uk, de, fr, co.jp, in. GET /v1/amazon/markets lists all 20.
page integer 1 Results page for list endpoints (search, offers, reviews, bestsellers, sellers).
sort_by string
import json
import os

import requests

API_KEY = os.environ["SCRAPEBADGER_API_KEY"]

response = requests.get(
    "https://scrapebadger.com/v1/amazon/category",
    headers={"X-API-Key": API_KEY},
    params={
        "node": "172282",
        "domain": "com",
    },
    timeout=120,
)
response.raise_for_status()
print(json.dumps(response.json(), indent=2, ensure_ascii=False))

Node.js · cURL · Output sample (42 KB)

Get keyword suggestions

Get Amazon search autocomplete suggestions for keyword research.

GET /v1/amazon/autocomplete · Credits: 2 · Docs

Parameter Required Type Default Description
query Yes string Partial search term
domain string com Amazon marketplace TLD, e.g. com, co.uk, de, fr, co.jp, in. GET /v1/amazon/markets lists all 20.
import json
import os

import requests

API_KEY = os.environ["SCRAPEBADGER_API_KEY"]

response = requests.get(
    "https://scrapebadger.com/v1/amazon/autocomplete",
    headers={"X-API-Key": API_KEY},
    params={
        "query": "wireless ear",
        "domain": "com",
    },
    timeout=120,
)
response.raise_for_status()
print(json.dumps(response.json(), indent=2, ensure_ascii=False))

Node.js · cURL · Output sample (1 KB)

Get a seller profile

Seller profile, ratings and feedback summary.

GET /v1/amazon/sellers/{seller_id} · Credits: 4 · Docs

Parameter Required Type Default Description
seller_id Yes string Amazon seller ID, e.g. ALAQLAKJ574UN (from an offer's seller.id)
domain string com Amazon marketplace TLD, e.g. com, co.uk, de, fr, co.jp, in. GET /v1/amazon/markets lists all 20.
import json
import os

import requests

API_KEY = os.environ["SCRAPEBADGER_API_KEY"]

seller_id = "ALAQLAKJ574UN"

response = requests.get(
    f"https://scrapebadger.com/v1/amazon/sellers/{seller_id}",
    headers={"X-API-Key": API_KEY},
    params={
        "domain": "com",
    },
    timeout=120,
)
response.raise_for_status()
print(json.dumps(response.json(), indent=2, ensure_ascii=False))

Node.js · cURL · Output sample (1 KB)

Get a seller's products

Products listed in a seller's storefront.

GET /v1/amazon/sellers/{seller_id}/products · Credits: 8 · Docs

Parameter Required Type Default Description
seller_id Yes string Amazon seller ID, e.g. ALAQLAKJ574UN (from an offer's seller.id)
domain string com Amazon marketplace TLD, e.g. com, co.uk, de, fr, co.jp, in. GET /v1/amazon/markets lists all 20.
page integer 1 Results page for list endpoints (search, offers, reviews, bestsellers, sellers).
import json
import os

import requests

API_KEY = os.environ["SCRAPEBADGER_API_KEY"]

seller_id = "ALAQLAKJ574UN"

response = requests.get(
    f"https://scrapebadger.com/v1/amazon/sellers/{seller_id}/products",
    headers={"X-API-Key": API_KEY},
    params={
        "domain": "com",
    },
    timeout=120,
)
response.raise_for_status()
print(json.dumps(response.json(), indent=2, ensure_ascii=False))

Node.js · cURL · Output sample (18 KB)

Get seller feedback

Buyer feedback entries for a seller.

GET /v1/amazon/sellers/{seller_id}/feedback · Credits: 4 · Docs

Parameter Required Type Default Description
seller_id Yes string Amazon seller ID, e.g. ALAQLAKJ574UN (from an offer's seller.id)
domain string com Amazon marketplace TLD, e.g. com, co.uk, de, fr, co.jp, in. GET /v1/amazon/markets lists all 20.
page integer 1 Results page for list endpoints (search, offers, reviews, bestsellers, sellers).
import json
import os

import requests

API_KEY = os.environ["SCRAPEBADGER_API_KEY"]

seller_id = "ALAQLAKJ574UN"

response = requests.get(
    f"https://scrapebadger.com/v1/amazon/sellers/{seller_id}/feedback",
    headers={"X-API-Key": API_KEY},
    params={
        "domain": "com",
    },
    timeout=120,
)
response.raise_for_status()
print(json.dumps(response.json(), indent=2, ensure_ascii=False))

Node.js · cURL · Output sample (2 KB)

List marketplaces

List all supported Amazon marketplaces.

GET /v1/amazon/markets · Credits: Free · Docs

import json
import os

import requests

API_KEY = os.environ["SCRAPEBADGER_API_KEY"]

response = requests.get(
    "https://scrapebadger.com/v1/amazon/markets",
    headers={"X-API-Key": API_KEY},
    timeout=120,
)
response.raise_for_status()
print(json.dumps(response.json(), indent=2, ensure_ascii=False))

Node.js · cURL · Output sample (3 KB)

List category aliases

List common Amazon department/category aliases and bestseller nodes.

GET /v1/amazon/categories · Credits: Free · Docs

Parameter Required Type Default Description
domain string com Amazon marketplace TLD, e.g. com, co.uk, de, fr, co.jp, in. GET /v1/amazon/markets lists all 20.
import json
import os

import requests

API_KEY = os.environ["SCRAPEBADGER_API_KEY"]

response = requests.get(
    "https://scrapebadger.com/v1/amazon/categories",
    headers={"X-API-Key": API_KEY},
    params={
        "domain": "com",
    },
    timeout=120,
)
response.raise_for_status()
print(json.dumps(response.json(), indent=2, ensure_ascii=False))

Node.js · cURL · Output sample (2 KB)

Example output

A real response from GET /v1/amazon/search, trimmed to the first items of each list. The full response is in output-samples/search.json.

{
  "query": "wireless earbuds",
  "domain": "com",
  "results": [
    {
      "position": 1,
      "asin": "B09DT48V16",
      "title": "TAGRY Bluetooth Headphones True Wireless Earbuds 60H Playback LED Power Display Earphones with Wireless Charging Case IPX5 Waterproof in-Ear Ear buds with Mic for TV Smart Phone Laptop Computer Sports",
      "link": "https://www.amazon.com/dp/B09DT48V16",
      "image": "https://m.media-amazon.com/images/I/61uEvVoizoL._AC_UY218_.jpg",
      "price": {
        "value": 35.99,
        "currency": "USD",
        "symbol": "$",
        "raw": "$35.99"
      },
      "list_price": null,
      "unit_price": null,
      "rating": 4.4,
      "ratings_total": 90260,
      "is_prime": false,
      "is_sponsored": true,
      "is_amazons_choice": false,
      "is_best_seller": false,
      "bought_past_month": "10K+ bought in past month",
      "coupon": null,
      "availability": null
    }
  ],
  "pagination": {
    "current_page": 1,
    "total_pages": 20,
    "total_results": 20000
  },
  "scraped_utc": 1796170056.320428,
  "scraped_at": "2026-12-02T00:07:36.320428Z"
}

Use it with AI agents (MCP)

ScrapeBadger runs a hosted MCP server, so Claude, Cursor, ChatGPT and other agents can call the Amazon endpoints as tools, with no code.

  • Claude (claude.ai or Claude Desktop): Settings → Connectors → Add custom connector → https://mcp.scrapebadger.com/mcp, then sign in. No API key needed.
  • Cursor, VS Code, Windsurf and other clients: add this server to your MCP config:
{
  "mcpServers": {
    "scrapebadger": {
      "url": "https://mcp.scrapebadger.com/mcp?apis=amazon",
      "headers": { "Authorization": "Bearer YOUR_SCRAPEBADGER_API_KEY" }
    }
  }
}

Then ask:

Find the 5 best-rated wireless earbuds under $50 on amazon.com, then compare their prices on amazon.co.uk and amazon.de.

Setup guides for each client are in the MCP docs.

Use cases

Use case What you collect Endpoints
Price monitoring Current price, list price, coupon and Buy Box seller for your own or competitors' ASINs Get product details, Get all offers for a product
Product research Top products for a keyword or category, with rating, review count and rank Search Amazon products, Get bestsellers by category, Get new releases by category
Review analysis Review text, stars, dates and verified-purchase flags for sentiment and feature requests Get product reviews
Seller and reseller tracking Who sells an ASIN, at what price, and their ratings and storefront Get all offers for a product, Get a seller profile, Get a seller's products, Get seller feedback
Keyword and SEO research What shoppers type, and which products rank for it Get keyword suggestions, Search Amazon products
Deal alerts Current deals and discounts by category Get today's deals, Browse a category node

Pricing

  • Each endpoint's credit cost is listed in the endpoints table.
  • Only successful requests are billed. Blocked, empty and failed results cost nothing.
  • New accounts get 1,000 free credits. After that, pay as you go or pick a monthly plan. Credits on pay-as-you-go never expire.

See ScrapeBadger pricing for the price per credit on each plan.

Errors

Errors come back as JSON with a detail field (and an error code on some).

Status Meaning What to do
400 / 422 A parameter is missing or invalid Check the parameter table for the endpoint
401 Missing, invalid or expired API key Send the key in the X-API-Key header
402 Out of credits Top up or upgrade in the dashboard
403 The key can't call this API, or the request came from an IP the key doesn't allow Check the key's scopes and IP allowlist
404 The item, page or profile doesn't exist (or is no longer public) Check the ID; not billed
429 Over your account's max concurrency Wait Retry-After (1 s) and retry; run fewer calls in parallel (concurrency)
502 / 503 / 504 The target site failed or timed out on this attempt Not billed. Retry with backoff

Long calls can run asynchronously: send Prefer: respond-async and poll the returned request_id (async requests).

FAQ

Is it legal to scrape Amazon?

Collecting publicly available data, such as prices, product details and public reviews, is generally lawful in most jurisdictions, and courts have repeatedly treated public web data differently from data behind a login. This API reads public product, review and seller pages. How you store and use the data is up to you, so check the rules that apply to your use case (for example personal data in reviews under GDPR), and talk to a lawyer if you're unsure.

What Amazon data can I get?

Search results, product pages (title, price, images, variants, rating, best-seller rank, specs, A+ content), all seller offers with the Buy Box, reviews with filters by star and verified purchase, bestsellers, new releases, deals, category listings, autocomplete suggestions and seller profiles, storefronts and feedback. See the endpoints table.

How much does it cost?

Each request costs a fixed number of credits, shown in the endpoints table, and only successful requests are billed. You get 1,000 free credits when you sign up, then pay as you go or pick a plan on the pricing page.

Which Amazon marketplaces are supported?

20: United States, United Kingdom, Germany, France, Italy, Spain, Netherlands, Sweden, Poland, Canada, Mexico, Brazil, Japan, India, Australia, Singapore, UAE, Saudi Arabia, Turkey and Egypt. Pass the marketplace TLD in domain (com, co.uk, de and so on).

How fast is it, and are there rate limits?

Most calls answer in 2 to 8 seconds. There's no per-minute cap: you can run as many requests in parallel as your plan's max concurrency allows, and a request over it gets 429 without being billed. For long jobs, send requests asynchronously and poll the result.

Other languages

These examples use plain HTTP. Official SDKs wrap every endpoint with types and retries:

Language Repository Install
Python scrape-badger/scrapebadger-python pip install scrapebadger
Node.js / TypeScript scrape-badger/scrapebadger-node npm install scrapebadger
Go scrape-badger/scrapebadger-go
Java scrape-badger/scrapebadger-java
C# scrape-badger/scrapebadger-csharp
PHP scrape-badger/scrapebadger-php
Ruby scrape-badger/scrapebadger-ruby
Rust scrape-badger/scrapebadger-rust
Kotlin scrape-badger/scrapebadger-kotlin
Swift scrape-badger/scrapebadger-swift
Dart scrape-badger/scrapebadger-dart
C++ scrape-badger/scrapebadger-cpp

There is also a CLI (pip install scrapebadger-cli) and an n8n node.

Related scrapers

Learn more

Disclaimer

ScrapeBadger is an independent tool and is not affiliated with, endorsed by, or sponsored by Amazon.com, Inc. or any of its subsidiaries or affiliates. "Amazon" is a trademark of Amazon.com, Inc., used here only to describe the platform this scraper works with. This repository only covers publicly available data. You are responsible for how you use the data you collect and for following the laws that apply to you.

License

MIT. The examples are free to copy into your own projects.