CleanedWeb

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

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.

More integrations

All integrations

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.