Get events with nested markets by title or ticker (search)
curl --request GET \
--url https://dev-prediction-markets-api.dflow.net/api/v1/search \
--header 'x-api-key: <api-key>'{
"cursor": 1,
"events": [
{
"seriesTicker": "<string>",
"subtitle": "<string>",
"ticker": "<string>",
"title": "<string>",
"competition": "<string>",
"competitionScope": "<string>",
"imageUrl": "<string>",
"liquidity": 1,
"markets": [
{
"accounts": {},
"canCloseEarly": true,
"closeTime": 1,
"eventTicker": "<string>",
"expirationTime": 1,
"fractionalTradingEnabled": true,
"marketType": "<string>",
"noSubTitle": "<string>",
"openInterest": 1,
"openTime": 1,
"result": "<string>",
"rulesPrimary": "<string>",
"status": "<string>",
"subtitle": "<string>",
"ticker": "<string>",
"title": "<string>",
"volume": 1,
"yesSubTitle": "<string>",
"earlyCloseCondition": "<string>",
"noAsk": "<string>",
"noBid": "<string>",
"openInterestFp": "<string>",
"rulesSecondary": "<string>",
"volume24hFp": "<string>",
"volumeFp": "<string>",
"yesAsk": "<string>",
"yesBid": "<string>"
}
],
"openInterest": 1,
"openInterestFp": "<string>",
"settlementSources": [
{
"name": "<string>",
"url": "<string>"
}
],
"strikeDate": 1,
"strikePeriod": "<string>",
"volume": 1,
"volume24h": 1,
"volume24hFp": "<string>",
"volumeFp": "<string>"
}
]
}Search
Search Events
API reference for GET /api/v1/search
GET
/
api
/
v1
/
search
Get events with nested markets by title or ticker (search)
curl --request GET \
--url https://dev-prediction-markets-api.dflow.net/api/v1/search \
--header 'x-api-key: <api-key>'{
"cursor": 1,
"events": [
{
"seriesTicker": "<string>",
"subtitle": "<string>",
"ticker": "<string>",
"title": "<string>",
"competition": "<string>",
"competitionScope": "<string>",
"imageUrl": "<string>",
"liquidity": 1,
"markets": [
{
"accounts": {},
"canCloseEarly": true,
"closeTime": 1,
"eventTicker": "<string>",
"expirationTime": 1,
"fractionalTradingEnabled": true,
"marketType": "<string>",
"noSubTitle": "<string>",
"openInterest": 1,
"openTime": 1,
"result": "<string>",
"rulesPrimary": "<string>",
"status": "<string>",
"subtitle": "<string>",
"ticker": "<string>",
"title": "<string>",
"volume": 1,
"yesSubTitle": "<string>",
"earlyCloseCondition": "<string>",
"noAsk": "<string>",
"noBid": "<string>",
"openInterestFp": "<string>",
"rulesSecondary": "<string>",
"volume24hFp": "<string>",
"volumeFp": "<string>",
"yesAsk": "<string>",
"yesBid": "<string>"
}
],
"openInterest": 1,
"openInterestFp": "<string>",
"settlementSources": [
{
"name": "<string>",
"url": "<string>"
}
],
"strikeDate": 1,
"strikePeriod": "<string>",
"volume": 1,
"volume24h": 1,
"volume24hFp": "<string>",
"volumeFp": "<string>"
}
]
}What Search Covers
Search uses a multi-field, full-text query across events and markets.Events (fields searched)
id(event ticker)series_ticker(series ticker)titlesub_title
Markets (fields searched)
id(market ticker)event_tickertitleyes_sub_titleno_sub_title
Fields Not Searched
Search does not query tags, categories, rules, competition fields, images, or settlement sources.How Matching Works
- The query is split on whitespace; all tokens must match.
- Ticker fields (
id,series_ticker,event_ticker) match upper and lower variants. - Text fields (
title,sub_title,yes_sub_title,no_sub_title) use full-text matching. - Special characters are escaped before search.
Authorizations
API key for authentication. Contact hello@dflow.net to obtain an API key.
Query Parameters
The query string to search for
Field to sort by
Available options:
volume, volume24h, liquidity, openInterest, startDate How to order the results
Available options:
desc, asc How many records to limit the results to
Required range:
x >= 0Cursor for pagination
Required range:
x >= 0Include nested markets in response
Include market account information (settlement mints and redemption status)
Filter events by market status. Available options: initialized, active, inactive, closed, determined
⌘I