> ## Documentation Index
> Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ScraperAPI integrations

> Integrate with ScraperAPI using LangChain Python.

[ScraperAPI](https://www.scraperapi.com/) enables data collection from any public website with its web scraping API, without worrying about proxies, browsers, or CAPTCHA handling. [langchain-scraperapi](https://github.com/scraperapi/langchain-scraperapi) wraps this service, making it easy for AI agents to browse the web and scrape data from it.

## Installation and setup

<CodeGroup>
  ```bash pip theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
  pip install langchain-scraperapi
  ```

  ```bash uv theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
  uv add langchain-scraperapi
  ```
</CodeGroup>

Get an API key from [ScraperAPI](https://www.scraperapi.com/) and set it as an environment variable:

```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
import os

os.environ["SCRAPERAPI_API_KEY"] = "your-api-key"
```

## Tools

The package offers 3 tools to scrape any website, get structured Google search results, and get structured Amazon search results respectively.

See detailed documentation for each tool:

* [ScraperAPITool](/oss/python/integrations/tools/scraperapi) - Browse and scrape any website
* ScraperAPIGoogleSearchTool - Get structured Google Search SERP data
* ScraperAPIAmazonSearchTool - Get structured Amazon product search data

For a more detailed walkthrough, see the [official repository](https://github.com/scraperapi/langchain-scraperapi).

***

<div className="source-links">
  <Callout icon="terminal-2">
    [Connect these docs](/use-these-docs) to Claude, VSCode, and more via MCP for real-time answers.
  </Callout>

  <Callout icon="edit">
    [Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/oss/python/integrations/providers/scraperapi.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
  </Callout>
</div>
