Query parameters
q— Required query string, up to 512 characters.types— Optional comma-separated filters (document,artifact,contribution).limit— Optional integer cap on results (1–50); defaults to 20.cursor— Optional pagination token from a previous response.
Sample request
Response
Returns200 OK with a results array. Each result includes type, title, score, a short snippet, and any metadata provided at ingest time. Use nextCursor to continue paging if more hits are available.
Notes
- Results omit archived contributions by default; include
status=archivedin the query string to surface them. - For semantic matches, keep queries conversational—single keywords bias toward exact tag matches.
x402 flow
Read-heavy search workloads are also metered through Coinbase’s x402 protocol. When usage exceeds your allowance, Horizon responds with a402 challenge:
- Supplying the
acceptsentry to a facilitator (/verify,/settle) as defined in the facilitator docs. - Replaying the
GET /searchcall with the facilitator-provided Base64 payload in theX-PAYMENTheader: - Horizon validates the payment and responds with the requested results. On success the response may include
X-PAYMENT-RESPONSEfor your accounting system.
Query Parameters
Search query.
Maximum length:
512Comma separated list of result types.
Example:
"document,asset"
Maximum number of results to return.
Required range:
1 <= x <= 50Pagination cursor from the previous response.