Web Search API Quickstart
The Web Search API returns real-time web and news results as structured, LLM-ready JSON. Feed the results into your prompt to ground a model in fresh information.
Get an API key at you.com/platform. New accounts start with $100 in complimentary credits. The samples below read YDC_API_KEY. See the site Quickstart for the five-API tour and API key management for best practices.
You’ll get back structured JSON like this:
The Python SDK covers the Web Search, Answer, Contents, Research, and Finance Research APIs. The TypeScript SDK covers the Web Search, Contents, and Research APIs. Call Answer and Finance Research over HTTP with the same X-API-Key header.
Add Full Page Content
Search results already include snippets. Use extraction with extraction_mode: "full_page" to attach clean Markdown or HTML for each result. See Retrieve page content for highlights, cache vs. live crawl, and pricing.
Next Steps
How the API works, what you get, pricing, and when to use each feature
Highlights vs. full page content, extraction source, and crawl timeout
Full parameter reference, request/response schemas, and playground
Try Answer, Contents, Research, and Finance Research in one tour