Features
The integration provides access to all 6 Olostep API capabilities:Scrapes
Extract content from any single URL in multiple formats (Markdown, HTML, JSON, text)
Searches
Search the web and get each result’s URL, title and description, with optional page content as markdown
Batches
Process up to 100,000 URLs in parallel. Batch jobs complete in up to 20-25 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:Available Tools
scrape_website
Extract content from a single URL. Supports multiple formats and JavaScript rendering.Maximum characters of content returned. Longer pages are cut and marked with
truncated and full_length; the full page is at the <format>_url linkscrape_batch
Process multiple URLs in parallel (up to 100,000 at once).get_batch_results
Get the content of a batch’s pages, a set at a time. If the batch is still running, it returns the status so the agent can call again later.Maximum characters of content per page. Longer pages are cut and marked with
truncated and full_lengthsearch_web
Search the web when you don’t have a URL yet. Returns each result’s URL, title and description. Withscrape_results, each result also includes the page content as markdown, so the agent can read the pages without a separate scrape.
Also return each result’s content as markdown. Each scraped page uses extra credits
Maximum characters of markdown kept per page. Longer pages are cut and marked with
truncated and full_lengthanswer_question
Search the web and get AI-powered answers with sources. Perfect for data enrichment and research.extract_urls
Extract all URLs from a website for site structure analysis.crawl_website
Autonomously discover and scrape entire websites by following links.get_crawl_results
Get the content of the pages a crawl found, a set at a time. If the crawl is still running, it returns the status so the agent can call again later.Maximum characters of content per page. Longer pages are cut and marked with
truncated and full_lengthLangChain 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
parser parameter:
Error Handling
Best Practices
Use Batch Processing for Multiple URLs
Use Batch Processing for Multiple URLs
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.Set Appropriate Timeouts
Set Appropriate Timeouts
For JavaScript-heavy sites, use
wait_before_scraping parameter (2000-5000ms is typical). This ensures dynamic content is fully loaded.Use Specialized Parsers
Use Specialized Parsers
For popular websites (Amazon, LinkedIn, Google), use our pre-built parsers to get structured data automatically.
Filter URLs Efficiently
Filter URLs Efficiently
When using
extract_urls or crawl_website, use glob patterns to focus on relevant pages and avoid unnecessary processing.Handle Rate Limits
Handle Rate Limits
Implement exponential backoff for rate limit errors. The API automatically handles most rate limiting internally.
Support
- PyPI Package: langchain-olostep
- LangChain docs: Olostep in the tools list
- Documentation: docs.olostep.com
- Source: olostep-api/langchain-olostep
- Issues: GitHub Issues
- Email: info@olostep.com
Related Resources
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