Skip to content

Full-Text Search

GET /public-search

Server: https://gamma.openfish.fun

Tags: Search

Markets are matched against their question field, events against their title. Market results are wrapped in event-like envelopes for compatibility with the SDK’s expected response shape.


NameInTypeDefaultDescription
qquerystring""Search query string (case-insensitive partial matching)
limit_per_typequeryinteger10Maximum results per entity type (upper bound: 100)
pagequeryinteger1Page number for paginated results
sortquerystringvolumeOrdering field. Accepted values: volume, liquidity, start_date, end_date, created_at
events_statusquerystringRestrict event results by status: active or closed
search_tagsquerybooleantrueWhether to include matching tags
search_profilesquerybooleantrueWhether to include matching user profiles

200 — An object containing matched markets (wrapped as events), direct event matches, tags, profiles, and pagination metadata.

{
"events": [
{
"id": "12345",
"title": "Will BTC exceed $100k?",
"slug": "will-btc-exceed-100k",
"markets": [
{ "id": "12345", "question": "Will BTC exceed $100k?", ... }
]
}
],
"eventResults": [
{
"id": "456",
"title": "Bitcoin price milestones",
"slug": "bitcoin-price-milestones"
}
],
"tags": [
{ "id": "1", "label": "Crypto", "slug": "crypto" }
],
"profiles": [
{ "address": "0xabc...", "name": "trader1" }
],
"pagination": {
"page": 1,
"limit": 10,
"hasMore": true
}
}

Terminal window
curl "https://gamma.openfish.fun/public-search?q=bitcoin&limit_per_type=5"