Skip to main content
POST
Search the web

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
query
string
required

Primary search query. A provider-native multi-query option applies only to that provider; other providers in a fallback chain receive this query.

Required string length: 1 - 2048
content

Optional portable content retrieval. Pass true for defaults or an options object. Omission never starts Kernel browser work; provider-supplied content is still returned when available, including when requested through native options. Both inline and deferred retrieval use the same options schema.

Available options:
true
country
string

ISO 3166-1 alpha-2 search locale preference.

Pattern: ^[A-Za-z]{2}$
end_date
string<date>

Inclusive publication-date upper bound; must not precede start_date. If recency is also supplied, recency takes precedence with a warning. Unsupported or approximated filtering is reported, or rejected under strict_params.

exclude_domains
string[]

Hostname exclusions, with the same best-effort/strict behavior as include_domains. Provider-specific combinations that cannot be represented are reported via warnings or rejected in strict mode.

Maximum array length: 100
include_domains
string[]

Hostname inclusion preference, matching a hostname and its subdomains. Empty means unrestricted. Translated, emulated, or dropped with a warning according to provider capability unless strict_params is true. Native boost modes remain advisory and are identified in warnings.

Maximum array length: 100
include_raw
boolean
default:false

Include untouched per-result payloads and the full serving-provider response in raw fields. Off by default; native top-level outputs such as answer remain available without it.

language
string

BCP 47 search language preference.

max_results
integer
default:10

Requested result count from 1 through 100. The effective count is clamped to the serving provider's cap with a warning. Effective native counts are the lower of this limit and supplied provider-native count aliases. Strict mode rejects unsupported counts.

Required range: 1 <= x <= 100
recency
enum<string>

Relative search window. Takes precedence over start_date/end_date with a warning if both are set. Provider-native recency behavior is retained, including documented hour-to-day widening. Unsupported filters are rejected only in strict mode.

Available options:
hour,
day,
week,
month,
year

Optional safety preference. Omit to use provider defaults. Unsupported values are dropped with a warning unless strict_params is true. A search filter is not an authorization boundary.

Available options:
off,
moderate,
strict
start_date
string<date>

Inclusive publication-date lower bound. If recency is also supplied, recency takes precedence with a warning. Provider date semantics, precision, and unsupported filters are reported; unknown source dates are not fabricated or universally post-filtered.

strategy
object

Omitted strategy defaults to auto.

strict_params
boolean
default:false

When false, unsupported portable parameters are omitted and approximations are described in warnings. When true, every supplied portable parameter must be honored exactly. Requests that cannot be served with those parameters are rejected. This does not guarantee identical rankings or document timestamps across indexes. Authentication and project isolation are always enforced.

timeout_ms
integer
default:30000

Overall deadline across search attempts and inline retrieval. No new attempt starts after the deadline. Completed search results survive inline retrieval timeouts.

Required range: 1000 <= x <= 120000

Response

Completed search, including valid zero-result responses. Inline retrieval failures are reported per result. Arrays are never null.

Retained search results and provider attempt history.

attempts
object[]
required
expires_at
string<date-time>
required

Expiration of result IDs for deferred retrieval. Results expire 24 hours after search completion.

id
string
required

Search resource ID. Request tracing uses X-Request-Id.

Example:

"srch_abc123"

provider
string
required

Concrete serving provider, never auto or fallback.

query
string
required

Echo of the query. Native multi-query inputs are visible in the selected strategy target and the optional raw response.

results
object[]
required
usage
object
required
warnings
object[]
required
answer
string

Provider-generated answer when requested (e.g. via Tavily include_answer or Perplexity). Preserved independently of include_raw.

raw
any

Full serving-provider response, including top-level metadata that does not belong to a result. Present only with include_raw=true; untrusted provider data.