Integration · Agent framework
CleanedWeb for the Vercel AI SDK
The cleanedweb npm package exports AI SDK tools as cleanedweb/ai-sdk. An agent searches the API catalog, reads an API's inputs and sample records, then runs it and gets the records back as JSON.
Install and run an agent
npm install cleanedweb ai @ai-sdk/openai
Searching the catalog needs no key. To run an API, set CLEANEDWEB_API_KEY on the server to a key with the run scope. Keep it out of browser code.
import { generateText, isStepCount } from 'ai';
import { openai } from '@ai-sdk/openai';
import { cleanedwebTools } from 'cleanedweb/ai-sdk';
const { text } = await generateText({
model: openai('gpt-5-mini'),
prompt: 'Find five GitHub repositories under the "web-scraping" topic and list their names and URLs.',
tools: cleanedwebTools(),
stopWhen: isStepCount(8),
});
Use AI SDK 5 or later. Any AI SDK model provider works.
Tools
findApiSearch the catalog by words, site, category and fields. No key; nothing runs.getApiOne API's inputs, output fields and three saved sample records.runApiRun an endpoint and return its records. Charged per record delivered.
The full guide, with options and error handling: Vercel AI SDK.
More integrations
-
LangChain
langchain-cleanedweb: three tools and a toolkit for LangChain agents.
-
LlamaIndex
llama-index-tools-cleanedweb: a tool spec with find, get and run.
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.