Integration · Agent framework
CleanedWeb for LangChain
langchain-cleanedweb gives a LangChain agent three tools: find a published website API, read its contract and sample records, and run it for structured records. Finding and reading need no key.
Install and run an agent
pip install -U langchain-cleanedweb langchain
Create an API key with the run scope under API keys in the console and export it as CLEANEDWEB_API_KEY.
from langchain.agents import create_agent
from langchain_cleanedweb import CleanedWebToolkit
tools = CleanedWebToolkit().get_tools() # find, get, run
agent = create_agent("anthropic:claude-sonnet-4-5", tools=tools)
agent.invoke({"messages": [("user", "Get 5 trending Python repositories from GitHub topics.")]})
Tools
CleanedWebFindAPIFind published APIs by site, fields or query. No key; nothing runs.CleanedWebGetAPIInputs, output fields, limitations and three saved sample records. No key.CleanedWebRunAPIRun an endpoint and return its records. Needs therunscope; charged per record.
The run tool starts at 5 records and is capped at 100 unless you change default_max_items and max_items_limit. A run still going after wait_seconds returns its idempotency key; calling again with the same key reads the same run and never charges twice.
Links
- langchain-cleanedweb on PyPI The package.
- Source on GitHub README, options and changelog.
- Python client
The
cleanedwebpackage the tools are built on.
More integrations
-
LlamaIndex
llama-index-tools-cleanedweb: a tool spec with find, get and run.
-
Vercel AI SDK
cleanedweb/ai-sdk: findApi, getApi and runApi for AI SDK agents.
Every integration calls the same APIs
Pick an API in the catalog, or ask for a site it does not cover yet. 5,000 records are free once; after that you pay per record delivered.