Skip to main content
The @decodo/langchain-ts package enables developers to use Decodo’s Web Scraper API alongside their LangChain applications. The Web Scraper API features:
  • Easy web data access. Simplified retrieval of information from websites and online sources.
  • Geographic flexibility. Access content regardless of regional restrictions.
  • Reliable scraping. Advanced techniques to avoid detection and blocks.

Features

The @decodo/langchain-ts plugin features:
  • Web Scraping: Scrape any URL and retrieve Markdown content
  • Google Search: Search Google and retrieve structured results
  • Amazon Search: Search Amazon and retrieve structured product data
  • Geolocation selection for location-sensitive content
  • JavaScript rendering for targets that require a real browser
  • Markdown output for token-efficient connection to LLMs

Installation

Quickstart

To use the tools in this project, you will need a Decodo Advanced Web Scraping API subscription. Free trials are available on the dashboard.

Examples

A set of agentic examples for each tool.

Universal

For more examples, see the @decodo/langchain-ts on GitHub.

Configuration

All tools accept a DecodoConfig object:

API parameters

See the Scraper API documentation for a list of available parameters

License

MIT

Support

For support, please visit Decodo’s documentation or open an issue on GitHub.