Examples · Simple search

Simple search

The smallest useful program against the Search API.
Python
import os
from youdotcom import You

with You(os.environ["YOU_API_KEY"]) as you:
    res = you.search.unified(query="best embedding model 2025")
    for hit in (res.results.web or [])[:5]:
        print(f"{hit.title}\n  {hit.url}\n")