Skip to main content
GET
cURL
3 credits per request

  • Full-text search across events, markets, and traders matching the query string q.
  • Optionally restrict to one type (events, markets, or traders).
  • The unified search-box backend for prediction markets.

Authorizations

X-API-KEY
string
header
required

API key required to access the endpoints. Generate one from your dashboard at https://openapi.coinstats.app and pass it in the X-API-KEY request header. Never expose your key in client-side code.

Query Parameters

q
string
required

Search query (min 2 chars)

Minimum string length: 2
type
enum<string>

Restrict result type

Available options:
events,
markets,
traders
limit
number
default:20
Required range: x <= 50
Example:

20

Response

success
boolean
required

Whether the request succeeded

Example:

true

timestamp
string
required

ISO 8601 timestamp the response was generated

Example:

"2025-06-19T12:00:00.000Z"

data
object
required
query
string