Quick Start
Scrape HTML, text, or markdown from any webpage:
import os
os.environ["SCRAPERAPI_API_KEY"] = "API_KEY"
from langchain_scraperapi.tools import ScraperAPITool
tool = ScraperAPITool()
# Get text content
result = tool.invoke({
"url": "https://quotes.toscrape.com/",
"output_format": "text",
"render": True
})
print(result)Parameters
Details
URL (required)
Target page URL
OUTPUT_FORMAT
"text" | "markdown" (default returns HTML)
COUNTRY_CODE
country_code – e.g. "us", "de"
For the full list of supported parameters, please visit this page.
ScraperAPIGoogleSearchTool
Get Google Search results in a structured JSON or CSV format:
Parameters
Details
QUERY (required)
Search terms.
OUTPUT_FORMAT
"json" (default) or "csv".
COUNTRY_CODE
country_code – e.g. "us", "de".
For the full list of supported parameters, please visit this page.
ScraperAPIAmazonSearchTool
Get Amazon Product Search results in a structured JSON or CSV format:
Parameters
Details
QUERY (required)
Product Search terms.
OUTPUT_FORMAT
"json" (default) or "csv".
COUNTRY_CODE
country_code – e.g. "us", "de".
For the full list of supported parameters, please visit this page.
Last updated

