Skip to main content
The Olostep LangChain integration provides comprehensive tools to build AI agents that can search, scrape, analyze, and structure data from any website. Perfect for LangChain and LangGraph applications.

Features

The integration provides access to all 5 Olostep API capabilities:

Scrapes

Extract content from any single URL in multiple formats (Markdown, HTML, JSON, text)

Batches

Process up to 10,000 URLs in parallel. Batch jobs complete in 5-8 minutes

Answers

AI-powered web search with natural language queries and structured output

Maps

Extract all URLs from a website for site structure analysis

Crawls

Autonomously discover and scrape entire websites by following links

Installation

Setup

Set your Olostep API key as an environment variable:
Get your API key from the Olostep Dashboard.

Available Tools

scrape_website

Extract content from a single URL. Supports multiple formats and JavaScript rendering.
string
required
Website URL to scrape (must include http:// or https://)
string
default:"markdown"
Output format: markdown, html, json, or text
string
Country code for location-specific content (e.g., “US”, “GB”, “CA”)
integer
Wait time in milliseconds for JavaScript rendering (0-10000)
string
Optional parser ID for specialized extraction (e.g., “@olostep/amazon-product”)

scrape_batch

Process multiple URLs in parallel (up to 10,000 at once).
array
required
List of URLs to scrape
string
default:"markdown"
Output format for all URLs: markdown, html, json, or text
string
Country code for location-specific content
integer
Wait time in milliseconds for JavaScript rendering
string
Optional parser ID for specialized extraction

answer_question

Search the web and get AI-powered answers with sources. Perfect for data enrichment and research.
string
required
Question or task to search for
object
Optional JSON schema dict/string describing desired output format

extract_urls

Extract all URLs from a website for site structure analysis.
string
required
Website URL to extract URLs from
string
Optional search query to filter URLs
integer
Limit the number of URLs returned
array
Glob patterns to include (e.g., [“/blog/**”])
array
Glob patterns to exclude (e.g., [“/admin/**”])

crawl_website

Autonomously discover and scrape entire websites by following links.
string
required
Starting URL for the crawl
integer
default:"100"
Maximum number of pages to crawl
array
Glob patterns to include (e.g., [”/**”] for all)
array
Glob patterns to exclude (e.g., [“/admin/**”])
integer
Maximum depth to crawl from start_url
boolean
default:"false"
Include external URLs

LangChain Agent Integration

Build intelligent agents that can search and scrape the web:

LangGraph Integration

Build complex multi-step workflows with LangGraph:

Advanced Use Cases

Data Enrichment

Enrich spreadsheet data with web information:

E-commerce Product Scraping

Scrape product data with specialized parsers:

SEO Audit

Analyze entire websites for SEO:

Documentation Scraping

Crawl and extract documentation:

Specialized Parsers

Olostep provides pre-built parsers for popular websites:
  • @olostep/google-search - Google search results
Use them with the parser parameter:

Error Handling

Best Practices

When scraping more than 3-5 URLs, use scrape_batch instead of multiple scrape_website calls. Batch processing is much faster and more cost-effective.
For JavaScript-heavy sites, use wait_before_scraping parameter (2000-5000ms is typical). This ensures dynamic content is fully loaded.
For popular websites (Amazon, LinkedIn, Google), use our pre-built parsers to get structured data automatically.
When using extract_urls or crawl_website, use glob patterns to focus on relevant pages and avoid unnecessary processing.
Implement exponential backoff for rate limit errors. The API automatically handles most rate limiting internally.

Support

Scrapes API

Learn about the Scrapes endpoint

Batches API

Learn about the Batches endpoint

Answers API

Learn about the Answers endpoint

Maps API

Learn about the Maps endpoint

Crawls API

Learn about the Crawls endpoint

Python SDK

Explore the Python SDK

LangChain Website

LangChain platform