Web Search
Search the live web and get back ranked results with snippets.
Several engines sit behind this: the native engine is tried first, and on a
failure or an empty result the request falls over to the next engine in the
chain, so a single engine outage does not fail your request. Pin one with
provider when you need reproducibility — pinning disables that failover.
Shape results with max_results (1–20), include_domains / exclude_domains, and
search_depth (advanced costs more and only affects Tavily; the other engines
ignore it). The response says which engine answered.
You are charged by the engine that answered, per search. At the default rates that
is 0.008 for Tavily (0.005 for TinyFish plus $0.001 per returned result carrying page_content. A
search that returns no results is free.
model exists only to name the native engine explicitly. It is not a model
selector — the native engine has no model concept — and an unrecognised value is
rejected with a 422 rather than silently ignored.
Authorizations
Enter your MeshAPI key (rsk_...) or, for the admin-keys endpoints, a dashboard session token — sent as Authorization: Bearer <token>.
Headers
Dated version of the API contract to pin this request to. Omit it and the request is served under 2026-08 — the oldest supported version, so an existing integration is never moved by a release. A malformed or unsupported value is rejected with 400 invalid_api_version rather than falling back silently. The version actually served is echoed as X-Mesh-Version on every response, including errors.
2026-08, 2026-09, 2026-11 Body
The search query.
1 - 2000Optional, and has no effect on results or price. The only accepted value is perplexity/sonar; any other value is rejected with a 422. Use provider to choose an engine.
"perplexity/sonar"
Pin a specific engine. Omit to use native-first with automatic fallback, which is recommended. Pinning disables failover: if the pinned engine fails, the error is returned.
native, tavily, tinyfish "tinyfish"
Maximum results to return.
1 <= x <= 20Tavily search depth; ignored by the native and TinyFish engines.
basic, advanced Restrict results to these domains.
Drop results from these domains.
Ask the engine for a synthesized answer alongside results. Honoured by Tavily only; the native and TinyFish engines have no equivalent and return no answer.
Also return each result's extracted page text in page_content, so one call replaces search-then-fetch. Honoured by TinyFish only; the native and Tavily engines have no equivalent and leave page_content unset — that is not an error. Each returned result that carries page_content adds a per-page charge to the search ($0.001 at the default rate). Off by default because it is slow and large: the upstream fetches every result it found, not just the max_results you asked for, so expect several seconds and tens of kilobytes per result. Ask for it only when you will read the text.
Your own labels for this request, echoed back on the usage row and available as a filter and a group-by dimension in the usage API. String keys to string values. Never put personal or sensitive data here — tags are stored with the usage record and are not redacted.
A stable, anonymised identifier for the end user making this request, recorded on the usage row and available as a filter and a group-by dimension in the usage API. Supersedes the deprecated user field. Use an opaque id, not an email address or a name.
256