langchain-scraperapi package adds three ready-to-use LangChain tools backed by the ScraperAPI service:
| Tool class | Use it to |
|---|---|
ScraperAPITool | Grab the HTML/text/markdown of any web page |
ScraperAPIGoogleSearchTool | Get structured Google Search SERP data |
ScraperAPIAmazonSearchTool | Get structured Amazon product-search data |
Overview
Integration details
| Package | Serializable | JS support | Package latest |
|---|---|---|---|
langchain-scraperapi | ❌ | ❌ |
Setup
Install thelangchain-scraperapi package:
Credentials
Create an account at ScraperAPI and get an API key:Instantiation
Invocation
Invoke directly with args
Features
1. ScraperAPITool — browse any website
Invoke the raw ScraperAPI endpoint and get HTML, rendered DOM, text, or markdown.
Invocation arguments:
url(required) – target page URL- Optional (mirror ScraperAPI query params):
output_format:"text"|"markdown"(default returns raw HTML)country_code: e.g."us","de"device_type:"desktop"|"mobile"premium:bool– use premium proxiesrender:bool– run JS before returning HTMLkeep_headers:bool– include response headers
2. ScraperAPIGoogleSearchTool — structured Google search
Structured SERP data via /structured/google/search.
Invocation arguments:
query(required) – natural-language search string- Optional:
country_code,tld,uule,hl,gl,ie,oe,start,num output_format:"json"(default) or"csv"
3. ScraperAPIAmazonSearchTool — structured Amazon search
Structured product results via /structured/amazon/search.
Invocation arguments:
query(required) – product search terms- Optional:
country_code,tld,page output_format:"json"(default) or"csv"
Use within an agent
Here is an example of using the tools in an AI agent. TheScraperAPITool gives the AI the ability to browse any website, summarize articles, and click on links to navigate between pages.
API reference
Below you can find more information on additional parameters to the tools to customize your requests: The LangChain wrappers surface these parameters directly.Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

