- Endpoint:
GET /api/v1/events/markets?eid={{eventId}} - Description: Fetches all betting markets available for a specific event. The
dataobject maps eacheventIdto an array of market definitions. - Method:
GET
Request Parameters
| Param | Type | Description |
|---|---|---|
eid | string | One or more Event IDs (comma-separated). Supports up to 50 market IDs. |
Request Example
GET /api/v1/events/markets?eid=34484327 HTTP/1.1
Host: {{baseUrl}}
Sample Response
{
"data": {
"34484327": [
{
"na": "Test session 3",
"mid": "4.206169577467-F2",
"eid": 34484327,
"si": 4,
"s": true,
"if": null,
"go": false,
"di": 1,
"ty": "session",
"rt": false
},
{
"na": "Match Odds",
"mid": "1.245405948",
"eid": 34484327,
"si": 4,
"s": true,
"go": false,
"ty": "match-odd",
"rt": false,
"r": [
{ "na": "England", "rid": 10301 },
{ "na": "India", "rid": 414464 },
{ "na": "The Draw", "rid": 60443 }
]
},
{
"na": "Bookmaker 0% comm",
"mid": "4.210402143219-BM",
"eid": 34484327,
"si": 4,
"s": true,
"rt": false,
"ty": "bookmaker",
"r": [
{ "na": "England", "rid": 715794 },
{ "na": "India", "rid": 370439 }
]
}
],
"34493448": [
{
"na": "ball run SL",
"mid": "4.376814275143-BB",
"eid": 34493448,
"si": 4,
"s": true,
"go": false,
"ty": "ball-by-ball",
"rt": false,
"bl": 0.1
},
{
"na": "Match Odds",
"mid": "1.245441832",
"eid": 34493448,
"si": 4,
"s": false,
"go": false,
"rt": true,
"ty": "match-odd",
"r": [
{ "na": "Sri Lanka", "rid": 7337 },
{ "na": "Bangladesh", "rid": 7659 }
]
},
{
"na": "India",
"mid": "4.823575532015-P",
"eid": 997267739,
"si": 4,
"s": true,
"if": null,
"go": false,
"ty": "player-race",
"m": [
{
"s": true,
"go": false,
"mid": "4.150816830653-PR",
"r": [
{
"rid": 225572,
"na": "India"
},
{
"rid": 713186,
"na": "England"
}
],
"if": null
}
]
}
]
}
}
Glossary of Response Keys
| Key | Full Name | Type | Description |
|---|---|---|---|
data | eventMarketMap | OBJECT | Map of eventId to an array of market objects |
mid | marketId | STRING | Unique identifier for the market |
eid | eventId | INT | ID of the event |
na | name | STRING | Name of the market |
si | sportId | INT | Sport ID the market belongs to |
s | isActive | BOOLEAN | Whether the market is active |
go | gameOver | BOOLEAN | If the market is marked as concluded |
di | displayId | INT | Display ID used for market sequence (only for session and other markets) |
ty | type | STRING | Type of market (e.g., match-odd, bookmaker, session) |
r | runners | ARRAY | List of runner objects with name (na) and runnerId (rid) |
bl | ballNumber | FLOAT | (For ball-by-ball type) shows the specific ball number |
if | infoComments | NULLABLE | Commentary/notes given for a specific market |
rt | recallMarket | BOOL | Whether the market is recalled or not |
Glossary of Keys (Player Race – Nested Market Format)
| Key | Type | Description |
|---|---|---|
na | STRING | Name of the market or event |
mid | STRING | Market ID – unique identifier for this market |
eid | NUMBER | Event ID – unique identifier for the event |
si | NUMBER | Sport ID – the sport to which this event belongs |
s | BOOLEAN | Market active status (true = active, false = inactive) |
if | NULLABLE | Info Comments |
go | BOOLEAN | Game over flag (true = game finished, false = ongoing) |
ty | STRING | Type of the market (e.g., player-race) |
m | ARRAY | Nested markets inside this market (for player-race, multi-market grouping) |
Nested Object (m[])
| Key | Type | Description |
|---|---|---|
s | BOOLEAN | Nested market active status |
go | BOOLEAN | Nested market game over flag |
mid | STRING | Nested market ID |
r | ARRAY | Array of runners/players in the nested market |
if | NULLABLE | Info Comments |
Runner Object (r[] inside m[])
| Key | Type | Description |
|---|---|---|
rid | NUMBER | Runner/Player ID – unique identifier |
na | STRING | Name of the runner/player |