Skip to main content
GET
Global search preview — top results across users and events

Query Parameters

q
string
required

Search query, 1–64 characters after trimming (else 400 query_too_short / query_too_long). Sent more than once, as an object (q[x]=…), or containing a NUL character → 400 invalid_query.

Required string length: 1 - 64

Response

OK

query
string
required

Trimmed query string actually used.

walletMode
boolean
required

True when the query parsed as a 0x… wallet prefix. In that case events is always empty.

users
object[]
required
events
object[]
required
usersHasMore
boolean
required

True when there is at least one more row past the preview slice for this type — drives the "View more" footer in the dropdown without a follow-up round-trip.

eventsHasMore
boolean
required
didYouMean
string | null
required

RND-3864. Set when the events came only from a synonym (man utd → manchester united) or the typo fallback (antropic → anthropic): the query they answer, for example for a "Showing results for …" line. null when the query matched by itself, when no event matched, and in 0x mode. When a query word was read as a typo of a known synonym (RND-4766), the query is searched as typed right and didYouMean is that corrected query, with only the typo word replaced and every other word as typed (bitcion Price → bitcoin Price; RND-5467) whenever its own words or synonyms find an event (on the pages where it is set).

suggestion
string | null
required

RND-4243. The "Did you mean …?" line: when the query found fewer than 5 events itself, a typo fix (never a synonym) that finds more events than those, also when didYouMean is set (RND-5467); else didYouMean. null otherwise, and when the suggestion finds no event as a query of its own.

suggestionCount
integer | null
required

RND-4243. How many events suggestion finds as a query of its own (as /api/search/events?q=<suggestion>), at most 200. null without a suggestion, or when it could not be counted.

counts
object
required

RND-4243. Results per type, for tabs and "See all" links.

suggestions
string[]
required

RND-4249. Chips for a zero-result answer, at most 5, each a query of 1–64 characters to search next: the query's own words of 3 or more characters that find events alone (for a query of two or more words; never a typo match), then popular searches that share one of those words, then tags of the events those words find. Words and popular searches are lower-case; tags keep their name. Empty otherwise, and when none is found. When the chips could not all be read in time the answer is sent with Cache-Control: no-store, so a retry can fill them. Filled only when neither users nor events were found.