E-Commerce & RetailDifficulty: HardOpen Source on GitHub

How to Scrape Amazon in Python (2026 Guide)

Extract product search results, buy box prices, ASINs, review ratings, and seller availability without getting blocked by Amazon Robot Check. Overcome AWS WAF + Amazon Robot Check (CAPTCHA) using open-source Python scrapers powered by 2Captcha Web Scraping API and 2Captcha Cloud Browser.

Target Domain
amazon.com
Anti-Bot Defense
AWS WAF + Amazon Robot Check (CAPTCHA)
2Captcha Bypass Rate
99.4% (via 2Captcha Scraper API)
Recommended Engine
Scraper API
📦 Verified Open-Source Scraper Blueprint:Full production Python script with automated anti-bot bypass for amazon.com.
Jump to Code ↓

1. Why Standard Scrapers Fail on Amazon

Amazon employs rigorous IP rate limits, automated CAPTCHA challenges on search and product pages, and dynamic DOM rotation to deter basic scrapers. When standard scraping scripts (like Python requests, urllib, or basic headless Puppeteer) make requests directly to amazon.com, the server detects datacenter IP subnets, unnatural TLS ClientHello fingerprints, and automated bot flags, resulting in instant HTTP 403 Forbidden, 503 Service Unavailable, or blocking CAPTCHA puzzles.

Facing persistent CAPTCHA challenges during extraction? Compare solving speeds and costs on SolvCaptcha and inspect high-reputation residential proxy pools on 2-Proxy.

Data Fields Targeted for Extraction:
✓ ASIN✓ Product Title✓ Current Price✓ Original Price✓ Star Rating✓ Review Count✓ Stock Status

2. Method 1 (Fastest): 2Captcha Web Scraping API (Zero Browser Overhead)

The most reliable and cost-effective method. You don't need to install Chromium, manage WebDrivers, or handle CAPTCHAs. Submit the target URL to 2Captcha Scraper API, and it automatically handles proxy rotation, TLS JA4 fingerprint spoofing, and anti-bot challenge solving:

# Python 3 — scraper_api_client.py
import os
import requests
from bs4 import BeautifulSoup

# Obtain API key from https://2captcha.com/scraper/scraper-api
API_KEY = os.getenv("TWO_CAPTCHA_API_KEY", "YOUR_2CAPTCHA_API_KEY")
TARGET_URL = "https://www.amazon.com/dp/B08N5WRWNW"

def scrape_amazon(url: str) -> str:
    """Submits target URL to 2Captcha Scraper API for automated anti-bot clearance."""
    endpoint = "https://scraper.2captcha.com/v1"
    payload = {
        "apiKey": API_KEY,
        "url": url,
        "proxy": "residential",
        "country": "us",
        "renderJs": True
    }
    headers = {"Content-Type": "application/json"}
    
    response = requests.post(endpoint, json=payload, headers=headers, timeout=60)
    response.raise_for_status()
    return response.text

if __name__ == "__main__":
    print(f"[*] Fetching Amazon target: {TARGET_URL}")
    html_data = scrape_amazon(TARGET_URL)
    soup = BeautifulSoup(html_data, "html.parser")
    print(f"[+] Page successfully fetched: {len(html_data)} bytes rendered without blocks!")
🚀 Get Free 2Captcha Scraper API Key →🛡️ Test Site Protection Live

3. Method 2: Playwright with 2Captcha Cloud Browser (For Dynamic Interactions)

If you need to click pagination buttons, scroll infinitely, or interact with JavaScript tabs, connect Python Playwright over Chrome DevTools Protocol (CDP) to 2Captcha Cloud Browser ($0.05/hour). It runs genuine hardware-accelerated Chromium instances with residential IP rotation. Compare cloud browser features and CDP benchmarks on Browser-Review.

# Python 3 — playwright_scraper.py
import asyncio
from playwright.async_api import async_playwright

API_KEY = "YOUR_2CAPTCHA_API_KEY"
WS_ENDPOINT = f"wss://browser.2captcha.com/webdriver/v1?apiKey={API_KEY}"
TARGET_URL = "https://www.amazon.com/dp/B08N5WRWNW"

async def main():
    async with async_playwright() as p:
        print("[*] Connecting to 2Captcha Cloud Chromium...")
        browser = await p.chromium.connect_over_cdp(WS_ENDPOINT)
        page = await browser.new_page()

        print(f"[*] Navigating to Amazon...")
        await page.goto(TARGET_URL, wait_until="domcontentloaded")

        # Extract title and rendered DOM
        title = await page.title()
        print(f"[+] Page Title: {title}")
        
        content = await page.content()
        print(f"[+] Rendered content: {len(content)} bytes")
        await browser.close()

if __name__ == "__main__":
    asyncio.run(main())

4. Sample Structured Output (JSON)

Output produced by parsing the extracted HTML with the open-source amazon-scraper library:

# JSON Output Data
{
  "asin": "B08N5WRWNW",
  "title": "Apple MacBook Air Laptop: M1 Chip, 13” Retina Display",
  "price": "$699.00",
  "currency": "USD",
  "rating": 4.8,
  "reviews_count": 73921,
  "in_stock": true,
  "seller": "Amazon.com"
}

5. Frequently Asked Questions

Why does Amazon return 503 errors and CAPTCHA images when scraping?

Amazon monitors request concurrency from single IP addresses and evaluates TLS ClientHello fingerprints. Standard Python requests leak default ciphers, causing Amazon to return an HTTP 503 status with an image CAPTCHA. 2Captcha Scraper API routes requests through authentic residential pools with automated CAPTCHA solving.

How do I extract Amazon prices across international marketplaces (UK, DE, JP)?

Amazon alters pricing and delivery flags based on the requester geographic location. Pass the `country` parameter (e.g., `gb`, `de`, `jp`) in the 2Captcha Scraper API payload to ensure pricing and delivery estimates match the target region.

Recommended Infrastructure Stack for Amazon

High-volume scraping on Amazon requires residential IP diversity, automated puzzle solving, and cloud browser execution to avoid detection:

🏠

Rotating Residential Proxies

Rotate genuine ISP consumer IPs across 220+ countries to bypass Amazon ASN blocks and rate limits.

2Captcha Proxy ($3.99/GB) on 2-Proxy →
⚡

CAPTCHA Bypass Core

Automatically decode AWS WAF + Amazon Robot Check (CAPTCHA) challenges in sub-3s using hybrid AI + human workforce fallback.

2Captcha Benchmarks on SolvCaptcha →
🌐

Cloud Headless Browser

Execute Playwright scripts in remote Chromium clusters over CDP without local memory exhaustion.

2Captcha Browser ($0.15/hr) on BrowserReviews →
🤖

AI Agent Browser MCP

Connect Claude Desktop or Cursor to live Amazon browsing with native bot bypass.

2Captcha MCP on MCP-Review →

Explore Other Scraping Targets

Social Media & E-Commerce
TikTok & TikTok Shop →
Akamai Bot Manager + Dynamic X-Bogus / _signature
E-Commerce & Crafts
Etsy →
DataDome Bot Protection
Fast Fashion & Retail
SHEIN →
Cloudflare Turnstile + Geolocation Redirects

Start Scraping Amazon with 2Captcha Today

Sign up on 2Captcha to get your API key. Enjoy residential proxy routing, automated Cloudflare & DataDome bypass, and pay-as-you-go pricing with zero monthly minimums.

Get 2Captcha Web Scraping API Key →Browse All 40+ Targets