Simple Search
Your first API call in 2 minutes—fetch real-time web results in under 20 lines.
If you’re new to the You.com API, this is the right place to begin. Before building RAG pipelines or research agents, you need to understand the foundation: the Search API. Send a query. Get back accurate web and news results.
The Search API gives you direct access to You.com’s search index—the same index that powers our Research API and our own search engine. You get titles, URLs, and descriptions for the most relevant pages on the web, fast. Then you decide what to do with them: filter them, rank them, display them in a UI, or feed them into a language model to synthesize an answer.
This example shows the simplest possible way to call it: a Python script and a small Next.js web app you can deploy to Vercel.
Try It Live
Run a real Search API request right here—no setup, no separate app to deploy. Open the Try It panel below, paste your API key, edit the query, and send it against the live endpoint.
What You’ll Build
The simplest possible example of the You.com Search API—pass a query, get back web results. No agents, no chaining, no extra dependencies. The unified endpoint returns title, URL, and description for the top results, ready to feed an LLM or render in a UI.
Prerequisites
Install the SDK for your language:
Run It
Python
TypeScript
The quickest way to see the API in action is the command line.
Run it:
No query? No problem—the example falls back to a default one, so python simple_search.py works too.
What you get back:
Each result has a title, URL, and a short description pulled from the page—clean, structured, and ready to use:
Next Steps
Instead of raw results, get a synthesized, cited answer written by an agent that reads the web for you.
Turn any URL into clean Markdown—ideal for LLM ingestion.
Full docs for filtering by freshness, country, language, and more.
Resources
- Search API Reference
- Python SDK on PyPI (
pip install youdotcom) - TypeScript SDK on npm (
npm install @youdotcom-oss/sdk) - GitHub: ydc-simple-search-sample
- Try the Search API in your browser