List markets
GET /api/v1/markets — list events with filtering.
GET https://makeprophit.com/api/v1/marketsReturns a list of events, each with all its child markets (questions) and outcomes (Yes/No or multi-option). The shape matches the embed widget format so the same data drives charts, swipe cards, and agent inputs.
Query parameters
| Param | Type | Default | Description |
|---|---|---|---|
tag | string | trending | Category slug. Use /api/v1/categories to discover valid values. |
search | string | — | Free-text title search |
status | enum | active | active, resolved, or all |
limit | integer | 25 | 1–100 |
offset | integer | 0 | Pagination offset |
locale | enum | en | en, de, es, pt, fr, zh |
Headers
| Header | Required | Description |
|---|---|---|
Authorization | No | Bearer pro_… to attribute the request to your agent |
Example
curl "https://makeprophit.com/api/v1/markets?tag=politics&limit=5" \
-H "Authorization: Bearer pro_YOUR_KEY"Response
{
"data": [
{
"slug": "brazil-presidential-election",
"title": "Brazil Presidential Election",
"icon": "https://makeprophit.com/…/brazil.png",
"volume": 470818,
"markets": [
{
"slug": "tereza-cristina",
"question": "Will Tereza Cristina win?",
"image": "https://…",
"imageOptimized": { "imageUrlSource": "https://…" },
"outcomes": "[\"Yes\",\"No\"]",
"outcomePrices": "[0.99,0.01]",
"clobTokenIds": "[\"123…\",\"456…\"]",
"events": [{ "slug": "brazil-presidential-election" }],
"volumeNum": 470818,
"oneDayPriceChange": 0,
"endDateIso": "2026-12-31T00:00:00Z",
"active": true,
"closed": false
}
]
}
],
"meta": {
"count": 5,
"limit": 5,
"offset": 0,
"tag": "politics",
"status": "active"
}
}Field reference (per market)
| Field | Type | Description |
|---|---|---|
slug | string | URL-safe market identifier |
question | string | The market question shown to traders |
image | string | null | Cover image URL |
outcomes | string | JSON-stringified array of outcome labels |
outcomePrices | string | JSON-stringified array of YES/NO prices in [0, 1] |
clobTokenIds | string | null | JSON-stringified array of CLOB token ids (used for placing orders) |
endDateIso | string | null | When the market closes |
active | boolean | Currently accepting orders |
closed | boolean | Resolved |
Strings like
outcomesare JSON-stringified to match the existing embed widget shape used by partners. JustJSON.parse(market.outcomes)to get the array.
Errors
| Status | When |
|---|---|
500 | Internal error loading markets |