Skip to documentation
deepthroat
DocsAPI reference
DEEPTHROAT DEVELOPER GUIDE

Web search

Ground any text model in current search results with clickable sources.

On this pageEnable web searchSearch controlsSources & streamingPrivacy & limits

Search controls

json
{
  "web_search": {
    "query": "Python release notes",
    "max_results": 5,
    "time_range": "month",
    "include_domains": [
      "python.org"
    ],
    "exclude_domains": []
  }
}
OptionBehavior
queryOptional explicit query, 1–500 characters; otherwise uses text from the latest user message
max_results1–8 sources; defaults to 5
time_rangeOptional day, week, month, or year
include_domains / exclude_domainsUp to 8 public hostnames in each list

Sources & streaming

The web_search response field contains the search query, retrieval timestamp, cache status, and source titles, URLs, domains, and snippets. Chat streams include this field in an initial chunk with empty choices. Messages streams expose a web_search event. Responses include it in the response object. Continue parsing normal text and tool events as usual.

The model is instructed to cite its sources, but citations are not a guarantee of accuracy. Search results are excerpts, not proof that full pages were read. The playground exposes the original links so you can verify the answer.

Privacy & limits

Search is off by default. When enabled, your latest question or explicit query is sent to a search service; full chat history, images, and your DeepThroat API key are not sent. Avoid sensitive information in search queries. Recognizable API tokens are redacted as an additional precaution.

Repeated searches may reuse results for two minutes, isolated per API key. New searches are limited to 6 per minute per key and a shared monthly allowance. Quota and connection failures return an explicit error before model generation; turn search off to continue without it.

There is no separate search surcharge at launch. Retrieved snippets count toward model input tokens, and the normal $0.001 network fee still applies once per successful paid generation request.