CleanedWeb

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

The full guide, with options and error handling: Vercel AI SDK.

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.