Vercel AI SDK
Integrate You.com’s real-time web search and webpage content extraction capabilities into any application you’ve built with Vercel’s AI SDK.
The @youdotcom-oss/ai-sdk-plugin package provides three ready-made tools for the Vercel AI SDK:
youSearch()for real-time web and news searchyouContents()for page content extractionyouResearch()for comprehensive web research with citations
Drop all three into any generateText, streamText, or generateObject call to give your AI application real-time web access.
Starting from scratch? We recommend using Skills, so your agent can build this integration for you. Learn how.
Getting Started
Usage
youSearch
youContents
youResearch
All tools
Explicit API key
Use youSearch() to give a model access to structured real-time web and news results.
Resources
GitHub Repository
Source code for the AI SDK plugin
Vercel AI SDK Docs
Official Vercel AI SDK documentation
Web Search API Reference
Full Web Search API parameters and response schema
Contents API Reference
Full Contents API parameters and response schema
Research API Reference
Full Research API parameters and response schema