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

Scrape IMDb movie ratings

Extract movie titles, release years, and ratings from IMDb's Top 250 chart.

Prerequisites

Steps

IMDb's Top 250 page renders with JavaScript and is owned by Amazon, which applies bot-detection measures. The examples below extract the top-rated movies and route through stealth mode with a residential proxy.

Selector stability

IMDb updates its markup periodically. If selectors stop returning results, inspect the live page with browser DevTools to find the current element names.

Use the Browserless MCP server to scrape movie ratings from IMDb 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 IMDb

Use browserless_smartscraper. It handles IMDb's dynamic content and bot protection automatically.

Use the browserless_smartscraper tool to scrape the top 250 movies
from https://www.imdb.com/chart/top/
and return the results as markdown

Next steps