For AI agents: a documentation index is available at /llms.txt
Skip to main content

Scrape Amazon product listings

Search Amazon for a keyword and extract product titles, prices, ratings, and links from the results page.

Prerequisites

Steps

Amazon aggressively blocks automated browsers with CAPTCHAs and fingerprinting. A plain HTTP request or standard headless browser returns a bot-detection page instead of product data. The examples below search for "wireless headphones" and route through stealth mode with a residential proxy to bypass Amazon's protections.

Selector stability

Amazon updates its markup frequently. If .s-result-item or nested selectors stop returning results, inspect the live page with browser DevTools to find the current element names.

Use the Browserless MCP server to scrape product listings from Amazon from any MCP-compatible AI agent (Claude Desktop, Cursor, Windsurf, ChatGPT, etc.).

1. Connect the MCP server

Send this prompt to your AI agent to install the Browserless MCP server:

Go to https://github.com/browserless/browserless-mcp/blob/main/install.md
and follow the instructions to install the Browserless MCP server
for my client.

2. Scrape Amazon

Use browserless_smartscraper. It handles Amazon's bot protection automatically.

Use the browserless_smartscraper tool to scrape product listings
from https://www.amazon.com/s?k=wireless+headphones
and return the results as markdown

Next steps