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 citationsDrop all three into any generateText, streamText, or generateObject call to give your AI application real-time web access.
Get your API key at you.com/platform.
youSearchUse youSearch() to give a model access to structured real-time web and news results.
youContentsUse youContents() when the model needs to retrieve entire web page content as HTML or markdown.
youResearchUse youResearch() when the model needs comprehensive, synthesized answers with inline citations. The Research API supports effort levels (lite, standard, deep, exhaustive) to balance speed against thoroughness—the model selects the appropriate level automatically.
You can provide all three tools at once and let the model decide which to use:
If you prefer not to use environment variables, pass the key directly:
Source code for the AI SDK plugin
Official Vercel AI SDK documentation
Full Search API parameters and response schema
Full Contents API parameters and response schema
Full Research API parameters and response schema