A Node.js LangChain plugin that enables developers to use Decodo's Scraper API alongside their LangChain applications.
- 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
 - Reddit Scraping: Scrape Reddit posts and subreddits
 - Full TypeScript Support: Complete type definitions for all parameters
 - LangChain Integration: Seamless integration with LangChain's Tool system
 
npm install @decodo/langchain-tsPrerequisites:
- Node.js >= v20
 - Decodo Web Advanced subscription
 
To use the tools in this project, you will need a Decodo Advanced Web Scraping API subscription. Free trials are available on the dashboard.
Once you have a plan activated, take a note of your generated username and password:
- Clone this repo and install dependencies:
 
git clone [email protected]:Decodo/decodo-langchain-ts.git
cd decodo-langchain-ts
npm i
- Run any of the sample agents:
 
npm run example:agent-universal
npm run example:agent-google
npm run example:agent-amazon
See the tools/ directory for a list of available tools.
See the examples/ directory to see tools in action.
All tools accept a DecodoConfig object:
type DecodoConfig = {
  username: string; // Your Web Advanced product username
  password: string; // Your Web Advanced product password
};See the Scraper API documentation for a list of available parameters.
MIT
For support, please visit Decodo's documentation or open an issue on GitHub.
