The Search API answers a natural-language prompt from sources you choose: web, X, Reddit, Wikipedia, YouTube, Hacker News, Arxiv. It returns results your agent can cite, optionally with a final summary.
The response contains search (results with title, link, snippet, highlights, published_date) and completion (the summary, when requested). Set "streaming": true to receive the summary as server-sent events.
| Parameter | Type | Notes |
|---|---|---|
prompt | string | The question. Required. |
tools | string[] | Sources to search: web, twitter, reddit, wikipedia, youtube, hackernews, arxiv. |
date_filter | string | PAST_24_HOURS, PAST_WEEK, PAST_MONTH, and similar windows. |
result_type | string | Links only, or LINKS_WITH_FINAL_SUMMARY. |
count | int | Results per source. |
streaming | bool | Stream the summary as it is written. |
When you want sources without paying for a completion:
Same request shape, minus result_type and streaming.
A keyword query against the web, no AI involved. Use it for result pages, enrichment, and rank tracking:
Full schemas for all four endpoints are in the API Reference.