Agents
Framework adapters
LangChain

LangChain

StructuredTool wrappers for LangChain and LangGraph agents: scrape, search, extract and enrich.

⚠️

Not on npm yet. @superscraper/langchain cannot be installed with npm install today. Until it ships, wrap the REST API in your own StructuredTool. A POST /v1/scrape with the x-api-key header is all it needs.

Install

The package is not on npm yet. It is available on request: contact support@superscraper.dev. It expects @langchain/core and zod as peers.

Scrape in 5 lines

import { createScrapeTool } from '@superscraper/langchain';
 
// Reads SUPERSCRAPER_API_KEY from the environment.
const scrape = await createScrapeTool();
const result = await scrape.invoke({ url: 'https://example.com' });
console.log(result); // clean markdown + listing + provenance

In an agent

import { createAllTools } from '@superscraper/langchain';
import { createReactAgent } from '@langchain/langgraph/prebuilt';
import { ChatAnthropic } from '@langchain/anthropic';
 
const tools = await createAllTools();
const agent = createReactAgent({
  llm: new ChatAnthropic({ model: 'claude-sonnet-4-6' }),
  tools,
});
 
const result = await agent.invoke({
  messages: [{ role: 'user', content: 'What is the tech stack of stripe.com?' }],
});

Tools

FactoryTool nameEndpoint
createScrapeTool()superscraper_scrape/v1/scrape
createSearchTool()superscraper_search/v1/search
createExtractTool()superscraper_extract/v1/extract
createEnrichTool()superscraper_enrich/v1/enrich/website
createAllTools()all of the above