Sports APIs 12 endpoints
Live feed and settlement endpoints for Cricket, Tennis, and Soccer. Matches, live Back/Lay odds, session fancies, radar scorecards, live TV, and result settlements.
GET Sports List (all sports)
/api/sports
List of every sport (cricket, soccer, tennis, basketball, horse racing, greyhound racing, table tennis, volleyball, badminton, american football, wrestling, e-games and more) with its id, name, the route name to use in the other Sports APIs, how many matches are listed now and how many are in play. Use route as :sportName in /api/:sportName/matches and /api/:sportName/odds?gameId=<eventId> (also /data). allowed tells whether your account can use that sport. A sport with matches = 0 has no event right now; it is listed again as soon as it has one.
Parameters
No parameters required for this endpoint.
Example request
curl -X GET "https://apis.diamondexchapi.com/api/sports"
Example response
{
"status": "SUCCESS",
"data": [
{
"sportId": "4",
"sportName": "cricket",
"name": "Cricket",
"route": "cricket",
"matches": 20,
"inPlay": 2,
"hasMatches": true,
"allowed": true,
"matchesApi": "/api/cricket/matches",
"oddsApi": "/api/cricket/odds?gameId=<eventId>"
},
{
"sportId": "1",
"sportName": "soccer",
"name": "Football",
"route": "soccer",
"matches": 135,
"inPlay": 8,
"hasMatches": true,
"allowed": true,
"matchesApi": "/api/soccer/matches",
"oddsApi": "/api/soccer/odds?gameId=<eventId>"
},
{
"sportId": "10",
"sportName": "horse racing",
"name": "Horse Racing",
"route": "horse-racing",
"matches": 117,
"inPlay": 0,
"hasMatches": true,
"allowed": true,
"matchesApi": "/api/horse-racing/matches",
"oddsApi": "/api/horse-racing/odds?gameId=<eventId>"
},
{
"sportId": "65",
"sportName": "greyhound racing",
"name": "Greyhound Racing",
"route": "greyhound-racing",
"matches": 181,
"inPlay": 0,
"hasMatches": true,
"allowed": true,
"matchesApi": "/api/greyhound-racing/matches",
"oddsApi": "/api/greyhound-racing/odds?gameId=<eventId>"
},
{
"sportId": "15",
"sportName": "basketball",
"name": "Basketball",
"route": "basketball",
"matches": 35,
"inPlay": 0,
"hasMatches": true,
"allowed": true,
"matchesApi": "/api/basketball/matches",
"oddsApi": "/api/basketball/odds?gameId=<eventId>"
},
{
"sportId": "19",
"sportName": "ice hockey",
"name": "Ice Hockey",
"route": "ice-hockey",
"matches": 0,
"inPlay": 0,
"hasMatches": false,
"allowed": true,
"matchesApi": "/api/ice-hockey/matches",
"oddsApi": "/api/ice-hockey/odds?gameId=<eventId>"
}
]
}
GET Get Matches (In-Play & Upcoming)
/api/:sportName/matches
Fetches active, live in-play, and scheduled matches with event details, team names, series name, and start times.
Parameters
| Name | In | Example | Description |
|---|
:sportName | path | cricket | Sport route name from the Sports List API: cricket, soccer, tennis, basketball, horse-racing, greyhound-racing, table-tennis, volleyball, badminton, american-football, wrestling, e-games ... |
Example request
curl -X GET "https://apis.diamondexchapi.com/api/cricket/matches"
Example response
{
"statusCode": 200,
"data": {
"data": [
{
"gameId": "34157338",
"marketId": null,
"eventId": "34157338",
"eventName": "Pirate Bay Raiders v MT Irvine Surfers",
"selectionId1": 0,
"runnerName1": null,
"selectionId2": 0,
"runnerName2": null,
"selectionId3": 0,
"runnerName3": null,
"eventTime": "2025-03-26T18:30:00.000Z",
"inPlay": false,
"tv": null,
"back1": 0,
"lay1": 0,
"back11": 0,
"lay11": 0,
"back12": 0,
"lay12": 0,
"m1": null,
"f": null,
"vir": 0,
"channel": null,
"scoreBoardId": null,
"seriesId": "12654629",
"seriesName": "Bago T10 Blast"
},
{
"gameId": "34157325",
"marketId": null,
"eventId": "34157325",
"eventName": "Kings Bay Royals v Pigeon Point Skiers",
"selectionId1": 0,
"runnerName1": null,
"selectionId2": 0,
"runnerName2": null,
"selectionId3": 0,
"runnerName3": null,
"eventTime": "2025-03-26T16:00:00.000Z",
"inPlay": false,
"tv": null,
"back1": 0,
"lay1": 0,
"back11": 0,
"lay11": 0,
"back12": 0,
"lay12": 0,
"m1": null,
"f": null,
"vir": 0,
"channel": null,
"scoreBoardId": null,
"seriesId": "12654629",
"seriesName": "Bago T10 Blast"
},
{
"gameId": "34156734",
"marketId": null,
"eventId": "34156734",
"eventName": "Abbottabad Region v Peshawar Region",
"selectionId1": 0,
"runnerName1": null,
"selectionId2": 0,
"runnerName2": null,
"selectionId3": 0,
"runnerName3": null,
"eventTime": "2025-03-26T14:00:00.000Z",
"inPlay": false,
"tv": null,
"back1": 0,
"lay1": 0,
"back11": 0,
"lay11": 0,
"back12": 0,
"lay12": 0,
"m1": null,
"f": null,
"vir": 0,
"channel": null,
"scoreBoardId": null,
"seriesId": "11454392",
"seriesName": "National T20 Cup"
},
{
"gameId": "34156738",
"marketId": null,
"eventId": "34156738",
"eventName": "Multan Region v Lahore Region Blues",
"selectionId1": 0,
"runnerName1": null,
"selectionId2": 0,
"runnerName2": null,
"selectionId3": 0,
"runnerName3": null,
"eventTime": "2025-03-26T18:00:00.000Z",
"inPlay": false,
"tv": null,
"back1": 0,
"lay1": 0,
"back11": 0,
"lay11": 0,
"back12": 0,
"lay12": 0,
"m1": null,
"f": null,
"vir": 0,
"channel": null,
"scoreBoardId": null,
"seriesId": "11454392",
"seriesName": "National T20 Cup"
},
{
"gameId": "28127348",
"marketId": null,
"eventId": "28127348",
"eventName": " Indian Premier League",
"selectionId1": 0,
"runnerName1": null,
"selectionId2": 0,
"runnerName2": null,
"selectionId3": 0,
"runnerName3": null,
"eventTime": "2025-03-22T14:00:00.000Z",
"inPlay": false,
"tv": null,
"back1": 0,
"lay1": 0,
"back11": 0,
"lay11": 0,
"back12": 0,
"lay12": 0,
"m1": null,
"f": null,
"vir": 0,
"channel": null,
"scoreBoardId": null,
"seriesId": "101480",
"seriesName": "Indian Premier League"
},
{
"gameId": "34151830",
"marketId": null,
"eventId": "34151830",
"eventName": "Rajasthan Royals v Kolkata Knight Riders",
"selectionId1": 0,
"runnerName1": null,
"selectionId2": 0,
"runnerName2": null,
"selectionId3": 0,
"runnerName3": null,
"eventTime": "2025-03-26T14:00:00.000Z",
"inPlay": false,
"tv": null,
"back1": 0,
"lay1": 0,
"back11": 0,
"lay11": 0,
"back12": 0,
"lay12": 0,
"m1": null,
"f": null,
"vir": 0,
"channel": null,
"scoreBoardId": null,
"seriesId": "101480",
"seriesName": "Indian Premier League"
},
{
"gameId": "34154198",
"marketId": null,
"eventId": "34154198",
"eventName": "Sunrisers Hyderabad v Lucknow Super Giants",
"selectionId1": 0,
"runnerName1": null,
"selectionId2": 0,
"runnerName2": null,
"selectionId3": 0,
"runnerName3": null,
"eventTime": "2025-03-27T14:00:00.000Z",
"inPlay": false,
"tv": null,
"back1": 0,
"lay1": 0,
"back11": 0,
"lay11": 0,
"back12": 0,
"lay12": 0,
"m1": null,
"f": null,
"vir": 0,
"channel": null,
"scoreBoardId": null,
"seriesId": "101480",
"seriesName": "Indian Premier League"
},
{
"gameId": "34139808",
"marketId": null,
"eventId": "34139808",
"eventName": "South Australia Redbacks v Queensland Bulls",
"selectionId1": 0,
"runnerName1": null,
"selectionId2": 0,
"runnerName2": null,
"selectionId3": 0,
"runnerName3": null,
"eventTime": "2025-03-27T00:05:00.000Z",
"inPlay": false,
"tv": null,
"back1": 0,
"lay1": 0,
"back11": 0,
"lay11": 0,
"back12": 0,
"lay12": 0,
"m1": null,
"f": null,
"vir": 0,
"channel": null,
"scoreBoardId": null,
"seriesId": "11569227",
"seriesName": "Sheffield Shield"
},
{
"gameId": "34151447",
"marketId": null,
"eventId": "34151447",
"eventName": "New Zealand v Pakistan",
"selectionId1": 0,
"runnerName1": null,
"selectionId2": 0,
"runnerName2": null,
"selectionId3": 0,
"runnerName3": null,
"eventTime": "2025-03-26T06:15:00.000Z",
"inPlay": false,
"tv": null,
"back1": 0,
"lay1": 0,
"back11": 0,
"lay11": 0,
"back12": 0,
"lay12": 0,
"m1": null,
"f": null,
"vir": 0,
"channel": null,
"scoreBoardId": null,
"seriesId": "9992899",
"seriesName": "International Twenty20 Matches"
},
{
"gameId": "34157672",
"marketId": null,
"eventId": "34157672",
"eventName": "Rhinos v Eagles",
"selectionId1": 0,
"runnerName1": null,
"selectionId2": 0,
"runnerName2": null,
"selectionId3": 0,
"runnerName3": null,
"eventTime": "2025-03-26T11:45:00.000Z",
"inPlay": false,
"tv": null,
"back1": 0,
"lay1": 0,
"back11": 0,
"lay11": 0,
"back12": 0,
"lay12": 0,
"m1": null,
"f": null,
"vir": 0,
"channel": null,
"scoreBoardId": null,
"seriesId": "12652316",
"seriesName": "Zimbabwe Domestic T20"
},
{
"gameId": "34157557",
"marketId": null,
"eventId": "34157557",
"eventName": "Southern Rocks v Mountaineers",
"selectionId1": 0,
"runnerName1": null,
"selectionId2": 0,
"runnerName2": null,
"selectionId3": 0,
"runnerName3": null,
"eventTime": "2025-03-26T07:00:00.000Z",
"inPlay": false,
"tv": null,
"back1": 0,
"lay1": 0,
"back11": 0,
"lay11": 0,
"back12": 0,
"lay12": 0,
"m1": null,
"f": null,
"vir": 0,
"channel": null,
"scoreBoardId": null,
"seriesId": "12652316",
"seriesName": "Zimbabwe Domestic T20"
}
]
}
}
GET Get Match Odds, Bookmaker & Fancy
/api/:sportName/odds
Returns live Back/Lay match odds, bookmaker rates, and session fancy markets. remark (on each market and on each runner in oddDatas) = the feed's remark line, e.g. "Event will be Deleted Due To Wrong Rate" or "6 Run Target ..."; empty when there is none.
Parameters
| Name | In | Example | Description |
|---|
:sportName | path | cricket | Sport route name from the Sports List API: cricket, soccer, tennis, basketball, horse-racing, greyhound-racing, table-tennis, volleyball, badminton, american-football, wrestling, e-games ... |
gameId | query | 34157557 | Match event / game ID |
Example request
curl -X GET "https://apis.diamondexchapi.com/api/cricket/odds?gameId=34157557"
Example response
{
"statusCode": 200,
"data": {
"matchOdds": [
{
"mid": "1.241389735",
"market": "Match Odds",
"isPlay": true,
"sid": null,
"status": "OPEN",
"oddDatas": [
{
"sid": 5988607,
"rname": "Southern Rocks",
"status": "ACTIVE",
"b1": "1.03",
"bs1": "184.59",
"b2": "1.02",
"bs2": "642.65",
"b3": "1.01",
"bs3": "3693.55",
"l1": "1.04",
"ls1": "726.26",
"l2": "1.05",
"ls2": "3544.45",
"l3": "1.06",
"ls3": "272.49"
},
{
"sid": 5988603,
"rname": "Mountaineers",
"status": "ACTIVE",
"b1": "27",
"bs1": "3.7",
"b2": "26",
"bs2": "25.21",
"b3": "22",
"bs3": "11.8",
"l1": "36",
"ls1": "5.28",
"l2": "44",
"ls2": "3.35",
"l3": "55",
"ls3": "9.24"
}
],
"max": 0,
"min": 0,
"gtype": null,
"mstatus": "OPEN",
"remark": "",
"mname": "Match Odds"
}
],
"otherMarketOdds": [],
"fancyOdds": [
{
"mid": 73976140994,
"isPlay": "true",
"sid": null,
"status": null,
"oddDatas": [
{
"sid": 143,
"b1": "0",
"bs1": "0",
"l1": "0",
"ls1": "0",
"status": "SUSPENDED",
"remark": "",
"min": 100,
"max": 50000,
"gtype": null,
"rname": "10.3 over run MOU",
"sno": null
},
{
"sid": 144,
"b1": "63",
"bs1": "100",
"l1": "62",
"ls1": "100",
"status": "",
"remark": "",
"min": 100,
"max": 50000,
"gtype": null,
"rname": "11 over run MOU",
"sno": null
},
{
"sid": 145,
"b1": "66",
"bs1": "100",
"l1": "65",
"ls1": "100",
"status": "",
"remark": "",
"min": 100,
"max": 50000,
"gtype": null,
"rname": "11.3 over run MOU",
"sno": null
},
{
"sid": 146,
"b1": "70",
"bs1": "100",
"l1": "69",
"ls1": "100",
"status": "",
"remark": "",
"min": 100,
"max": 50000,
"gtype": null,
"rname": "12 over run MOU",
"sno": null
},
{
"sid": 66,
"b1": "74",
"bs1": "90",
"l1": "74",
"ls1": "110",
"status": "",
"remark": "",
"min": 100,
"max": 50000,
"gtype": null,
"rname": "1st 4 wkt Runs MOU",
"sno": null
},
{
"sid": 67,
"b1": "0",
"bs1": "0",
"l1": "0",
"ls1": "0",
"status": "SUSPENDED",
"remark": "",
"min": 100,
"max": 50000,
"gtype": null,
"rname": "Fall of 5th wkt MOU",
"sno": null
},
{
"sid": 73,
"b1": "60",
"bs1": "7",
"l1": "60",
"ls1": "10",
"status": "",
"remark": "",
"min": 100,
"max": 50000,
"gtype": null,
"rname": "Fall of 4th wkt run bhav MOU",
"sno": null
},
{
"sid": 315,
"b1": "51",
"bs1": "80",
"l1": "51",
"ls1": "100",
"status": "",
"remark": "",
"min": 100,
"max": 50000,
"gtype": null,
"rname": "B Bennett run",
"sno": null
},
{
"sid": 316,
"b1": "0",
"bs1": "0",
"l1": "0",
"ls1": "0",
"status": "SUSPENDED",
"remark": "",
"min": 100,
"max": 50000,
"gtype": null,
"rname": "B Bennett run bhav",
"sno": null
},
{
"sid": 327,
"b1": "15",
"bs1": "90",
"l1": "15",
"ls1": "110",
"status": "",
"remark": "",
"min": 100,
"max": 50000,
"gtype": null,
"rname": "A Mufandauya run",
"sno": null
},
{
"sid": 328,
"b1": "3",
"bs1": "10",
"l1": "3",
"ls1": "15",
"status": "",
"remark": "",
"min": 100,
"max": 50000,
"gtype": null,
"rname": "A Mufandauya run bhav",
"sno": null
},
{
"sid": 80,
"b1": "0",
"bs1": "0",
"l1": "0",
"ls1": "0",
"status": "SUSPENDED",
"remark": "",
"min": 100,
"max": 50000,
"gtype": null,
"rname": "4th wkt Pship boundaries MOU",
"sno": null
},
{
"sid": 317,
"b1": "0",
"bs1": "0",
"l1": "0",
"ls1": "0",
"status": "SUSPENDED",
"remark": "",
"min": 100,
"max": 50000,
"gtype": null,
"rname": "B Bennett boundaries",
"sno": null
},
{
"sid": 329,
"b1": "0",
"bs1": "0",
"l1": "0",
"ls1": "0",
"status": "SUSPENDED",
"remark": "",
"min": 100,
"max": 50000,
"gtype": null,
"rname": "A Mufandauya boundaries",
"sno": null
}
],
"gtype": "Normal",
"mstatus": null,
"remark": "",
"mname": "FANCY_ODDS"
},
{
"mid": 303988021095,
"isPlay": "true",
"sid": null,
"status": null,
"oddDatas": [
{
"sid": 192,
"b1": "8",
"bs1": "100",
"l1": "7",
"ls1": "100",
"status": "",
"remark": "",
"min": 100,
"max": 50000,
"gtype": null,
"rname": "Only 12 over run MOU",
"sno": null
}
],
"gtype": "Over By Over",
"mstatus": null,
"remark": "",
"mname": "FANCY_ODDS"
}
],
"bookMakerOdds": [
{
"bm1": {
"mid": 7399926127946,
"market": null,
"isPlay": true,
"sid": null,
"status": "SUSPENDED",
"oddDatas": [
{
"sid": 1,
"b1": "0",
"bs1": "0",
"b2": "0",
"bs2": "0",
"b3": "3.5",
"bs3": "100000",
"l1": "4.5",
"ls1": "100000",
"l2": "0",
"ls2": "0",
"l3": "0",
"ls3": "0",
"status": "ACTIVE",
"remark": "",
"min": null,
"max": null,
"gtype": null,
"rname": "Southern Rocks",
"sno": null
},
{
"sid": 2,
"b1": "0",
"bs1": "0",
"b2": "0",
"bs2": "0",
"b3": "0",
"bs3": "0",
"l1": "0",
"ls1": "0",
"l2": "0",
"ls2": "0",
"l3": "0",
"ls3": "0",
"status": "SUSPENDED",
"remark": "",
"min": null,
"max": null,
"gtype": null,
"rname": "Mountaineers",
"sno": null
}
],
"max": 200000,
"min": 100,
"gtype": "Bookmaker",
"mstatus": "SUSPENDED",
"remark": "",
"mname": "BOOKMAKER_ODDS_1"
}
}
]
}
}
GET Get Match Odds Results
/api/betfair-result
Settlement result endpoint for Betfair Match Odds markets.
Parameters
| Name | In | Example | Description |
|---|
marketId | query | 1.241309100 | Market ID |
type | query | match_odds | Result type: match_odds |
Example request
curl -X GET "https://apis.diamondexchapi.com/api/betfair-result?marketId=1.241309100&type=match_odds"
Example response
{
"statusCode": 200,
"data": {
"data": [
{
"id": "1.241309100",
"result": "448"
}
]
}
}
GET Get Bookmaker Results
/api/betfair-result
Settlement result endpoint for Bookmaker markets.
Parameters
| Name | In | Example | Description |
|---|
marketId | query | 34151447 | Bookmaker Market ID |
type | query | bookmaker | Result type: bookmaker |
Example request
curl -X GET "https://apis.diamondexchapi.com/api/betfair-result?marketId=34151447&type=bookmaker"
Example response
{
"statusCode": 200,
"data": {
"data": [
{
"id": "34151447",
"result": "New Zealand"
}
]
}
}
GET Get Fancy Results
/api/betfair-result
Settlement result endpoint for session and fancy markets. Pass marketId as mid_sid (fancy market mid + '_' + selection sid). Multiple ids can be comma separated.
Parameters
| Name | In | Example | Description |
|---|
marketId | query | 643743402469_305 | Fancy selection ID (mid_sid) |
type | query | new_fancy | Result type: new_fancy |
Example request
curl -X GET "https://apis.diamondexchapi.com/api/betfair-result?marketId=643743402469_305&type=new_fancy"
Example response
{
"statusCode": 200,
"data": {
"data": [
{
"id": "643743402469_305",
"result": "29"
}
]
}
}
GET Scorecard
/api/scorecard
Live radar score visualizer and pitch tracking feed. Instruction: Use in your whitelisted domain inside Iframe. Betfair event id also works: pass it as eventId or as betfairEventId (cricket).
Instruction: Use in your whitelisted domain inside Iframe.
Iframe embed
<iframe src="https://apis.diamondexchapi.com/api/scorecard?eventId=34157338&sport=cricket" width="100%" height="450" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>
Parameters
| Name | In | Example | Description |
|---|
eventId | query | 34157338 | Match event ID: our gameId (from /api/:sport/matches) or the Betfair event id (cricket) |
sport | query | cricket | Sport name (cricket, football, tennis) |
Example request
curl -X GET "https://apis.diamondexchapi.com/api/scorecard?eventId=34157338&sport=cricket"
Example response
<!-- Embed inside iframe on your whitelisted domain: -->
<!-- <iframe src="https://apis.diamondexchapi.com/api/scorecard?eventId=34157338&sport=cricket" width="100%" height="450" frameborder="0" allowfullscreen></iframe> -->
GET Scorecard 2
/api/diamond-scorecard
Alternate live scorecard embed. Instruction: Use in your whitelisted domain inside Iframe. Betfair event id also works: pass it as eventId or as betfairEventId.
Instruction: Use in your whitelisted domain inside Iframe.
Iframe embed
<iframe src="https://apis.diamondexchapi.com/api/diamond-scorecard?eventId=861098747&theme=dark" width="100%" height="450" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>
Parameters
| Name | In | Example | Description |
|---|
eventId | query | 861098747 | Match event ID: our gameId or the Betfair event id |
theme | query | dark | Optional. dark (default) or light |
Example request
curl -X GET "https://apis.diamondexchapi.com/api/diamond-scorecard?eventId=861098747&theme=dark"
Example response
<!-- Embed inside iframe on your whitelisted domain: -->
<!-- <iframe src="https://apis.diamondexchapi.com/api/diamond-scorecard?eventId=861098747" width="100%" height="450" frameborder="0" allowfullscreen></iframe> -->
GET Cricket Live Score (JSON) - default source
/api/score
Live cricket score as JSON: batting team score / overs / run rate / target / required runs, current and last over ball by ball, batsmen on crease, current bowler, all innings, toss, match result and commentary. Refreshes every second. Use eventId = the gameId from /api/cricket/matches (the Betfair event id also works). result.scorePipeline tells which feed answered; when the main feed has no data the response comes from the backup feed in the same layout (some player fields may then be null).
Parameters
| Name | In | Example | Description |
|---|
eventId | query | 661123263 | Match gameId from /api/cricket/matches (or Betfair event id) |
Example request
curl -X GET "https://apis.diamondexchapi.com/api/score?eventId=661123263"
Example response
{
"status": {
"statusCode": "1",
"statusDesc": "success"
},
"success": true,
"result": {
"hasVideo": true,
"showVisualisation": false,
"stats": {
"messageId": null,
"eventId": null,
"battingTeam": {
"name": "West Indies Champions",
"partnerShipBalls": 0,
"partnerShipScore": 0,
"runRate": 2.4,
"score": "2",
"wickets": "1",
"overs": "0.5",
"balls": "5",
"requiredRunRate": 5.686957,
"requiredRuns": "109",
"projScr": 0,
"target": 111,
"trailLead": null
},
"commentary": "Caught Out",
"currentOver": {
"bowlerName": "Dhawal Kulkarni",
"batsNames": [
"Chadwick Walton",
"Lendl Simmons"
],
"overNumber": 1,
"runs": 2,
"score": 0,
"wickets": 1,
"balls": [
{
"number": "1",
"value": "1",
"type": "1"
},
{
"number": "2",
"value": "1",
"type": "1"
},
{
"number": "3",
"value": "0",
"type": "0"
}
]
},
"lastOver": {
"bowlerName": null,
"batsNames": [],
"overNumber": 0,
"runs": 0,
"score": null,
"wickets": 0,
"balls": []
},
"lastBatsmanOut": {
"name": "Chris Gayle",
"batsManRuns": "1",
"balls": "4"
},
"timeStamp": null,
"tossWinner": {
"name": "West Indies Champions",
"decision": "opt to Bowl"
},
"remainingBalls": 115,
"currentInning": 2,
"oversPerInning": "20.0",
"result": null,
"status": null,
"batsmen": [
{
"name": "Chadwick Walton",
"isOnStrike": true,
"balls": "0",
"batsmanRuns": "0",
"fours": "0",
"sixes": "0",
"strikeRate": 0
},
{
"name": "Lendl Simmons",
"isOnStrike": false,
"balls": "1",
"batsmanRuns": "1",
"fours": "0",
"sixes": "0",
"strikeRate": 100
}
],
"bowler": {
"name": "Dhawal Kulkarni",
"overs": 0.5,
"maidens": 0,
"wickets": 1,
"bowlerRuns": 2,
"economy": 2.4
},
"adjustedOvers": false,
"worm": null,
"teams": [
{
"f_key": "VJ",
"n": "India Champions",
"sn": "INDL",
"cc": "0-#3C76DC",
"uc": "#26A6DD",
"dc": "#0E254E"
},
{
"f_key": "VO",
"n": "West Indies Champions",
"sn": "WICH",
"cc": "0-#CC056C",
"uc": null,
"dc": null
}
],
"lwb": 5,
"lws": 2,
"day": null,
"session": "In Play",
"matchFormat": "T20",
"battingTeamFkey": "VO",
"innings": [
{
"number": 1,
"teamFkey": "VJ",
"teamName": "India Champions",
"score": "110",
"wickets": "8",
"overs": "20.0",
"balls": "120",
"isLive": false
},
{
"number": 2,
"teamFkey": "VO",
"teamName": "West Indies Champions",
"score": "2",
"wickets": "1",
"overs": "0.5",
"balls": "5",
"isLive": true
}
],
"lead": null,
"trail": null,
"followOnEnforced": false,
"runsToAvoidFollowOn": null,
"isPowerplay": true,
"totalBalls": 120,
"updatedAt": "2026-10-13T17:48:35.762534Z",
"source": "livescore-v2",
"oversLeftToday": null
},
"scorePipeline": "livescore-v2"
}
}
GET Cricket Live Score 2 (JSON)
/api/score2
Second live score source. Same JSON format as /api/score. Use it as a backup when /api/score (default source) has no data or is behind for a match.
Parameters
| Name | In | Example | Description |
|---|
eventId | query | 661123263 | Match gameId from /api/cricket/matches (or Betfair event id) |
Example request
curl -X GET "https://apis.diamondexchapi.com/api/score2?eventId=661123263"
Example response
Same response format as /api/score.
If this source has no score for the match:
{
"success": false,
"message": "Score not available"
}
GET Live Sports TV Stream (Iframe/URL) - default source
/api/tv
Live video streaming channel for sports matches. Instruction: Use in your whitelisted domain inside Iframe. Betfair event id also works: pass it as eventId or as betfairEventId (cricket).
Instruction: Use in your whitelisted domain inside Iframe.
Iframe embed
<iframe src="https://apis.diamondexchapi.com/api/tv?eventId=34157338&sport=cricket" width="100%" height="450" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>
Parameters
| Name | In | Example | Description |
|---|
eventId | query | 34157338 | Match event ID: our gameId (from /api/:sport/matches) or the Betfair event id (cricket) |
sport | query | cricket | Sport name (cricket, football, tennis) |
Example request
curl -X GET "https://apis.diamondexchapi.com/api/tv?eventId=34157338&sport=cricket"
Example response
<!-- Embed inside iframe on your whitelisted domain: -->
<!-- <iframe src="https://apis.diamondexchapi.com/api/tv?eventId=34157338&sport=cricket" width="100%" height="450" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe> -->
GET Live Sports TV Stream 2 (Iframe/URL)
/api/tv2
Second live TV source (glive). Use it as a backup when /api/tv (default source) is not playing for a match. Instruction: Use in your whitelisted domain inside Iframe. Betfair event id also works: pass it as eventId or as betfairEventId (cricket).
Instruction: Use in your whitelisted domain inside Iframe.
Iframe embed
<iframe src="https://apis.diamondexchapi.com/api/tv2?eventId=34157338&sport=cricket" width="100%" height="450" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>
Parameters
| Name | In | Example | Description |
|---|
eventId | query | 34157338 | Match event ID: our gameId (from /api/:sport/matches) or the Betfair event id (cricket) |
sport | query | cricket | Sport name (cricket, football, tennis) |
Example request
curl -X GET "https://apis.diamondexchapi.com/api/tv2?eventId=34157338&sport=cricket"
Example response
<!-- Embed inside iframe on your whitelisted domain: -->
<!-- <iframe src="https://apis.diamondexchapi.com/api/tv2?eventId=34157338&sport=cricket" width="100%" height="450" frameborder="0" allowfullscreen></iframe> -->
Virtual Cricket 6 endpoints
Dedicated Virtual Cricket endpoints: active virtual cricket matches & tables catalog, live odds & runner rates, past 10 completed rounds with full scorecard popups, and live TV streaming.
GET Get Virtual Cricket Matches
/api/virtual-cricket/matches
Lists all active, upcoming, and in-play Virtual Cricket (esport) matches. Includes matches like India (e) vs Australia (e), Dim Cricket League, T10, XI series etc. Returns match odds, runner names, eventTime, TV streaming flag, and series info.
Parameters
No parameters required for this endpoint.
Example request
curl -X GET "https://apis.diamondexchapi.com/api/virtual-cricket/matches"
Example response
{
"status": "SUCCESS",
"data": [
{
"gameId": "737960610",
"eventId": "737960610",
"eventName": "Sunrisers Hyderabad (e) - Chennai Super Kings (e)",
"seriesId": 7526679,
"seriesName": "Virtual Premier League",
"iscc": 4,
"inPlay": true,
"tv": true,
"eventTime": "9/29/2026 10:45:00 AM",
"status": "OPEN",
"marketId": "7439145665406",
"marketName": "Match Result",
"runners": [
{
"sid": 1,
"name": "Sunrisers Hyderabad (e)",
"status": "ACTIVE",
"back": {
"price": 1.95,
"size": 10000
},
"lay": {
"price": 1.97,
"size": 10000
}
},
{
"sid": 2,
"name": "Chennai Super Kings (e)",
"status": "ACTIVE",
"back": {
"price": 1.95,
"size": 10000
},
"lay": {
"price": 1.97,
"size": 10000
}
}
]
}
]
}
GET Get Virtual Cricket Live Odds
/api/virtual-cricket/odds/:gameId
Real-time odds for any active Virtual Cricket match (e.g. India (e) vs Australia (e) style). Returns team names, back/lay prices, market status, and runner info. The gameId is the match event ID from the matches list. markets = ALL markets of the match (Match Result, fancy sessions, Nth Ball Of Match, Total Runs/Fours/Sixes Under-Over with 'line', Inning EvenOdd, Toss Winner ...), runners in the same b1..b3 / l1..l3 layout as the sports odds API.
Parameters
| Name | In | Example | Description |
|---|
:gameId | path | 540464203 | Match event ID from /api/virtual-cricket/matches (e.g. 540464203 for Punjab Kings (e) vs Gujarat Titans (e)) |
Example request
curl -X GET "https://apis.diamondexchapi.com/api/virtual-cricket/odds/540464203"
Example response
{
"status": "SUCCESS",
"data": {
"gameId": "540464203",
"eventName": "Punjab Kings (e) - Gujarat Titans (e)",
"seriesId": 7526679,
"seriesName": "Dim Cricket League (1 over)",
"iscc": 4,
"inPlay": true,
"tv": true,
"status": "OPEN",
"market": "MATCH_ODDS",
"back1": 1.95,
"lay1": 1.97,
"back2": 1.95,
"lay2": 1.97,
"runners": [
{
"sid": 1,
"sno": 1,
"name": "Punjab Kings (e)",
"status": "ACTIVE",
"back": {
"price": 1.95,
"size": 10000
},
"lay": {
"price": 1.97,
"size": 10000
}
},
{
"sid": 3,
"sno": 3,
"name": "Gujarat Titans (e)",
"status": "ACTIVE",
"back": {
"price": 1.95,
"size": 10000
},
"lay": {
"price": 1.97,
"size": 10000
}
}
],
"markets": [
{
"mid": "6611448738708",
"market": "Match Result",
"gtype": "match",
"status": "OPEN",
"inPlay": true,
"min": 100,
"max": 25000,
"remark": "",
"oddDatas": [
{
"sid": 66841,
"rname": "Punjab Kings (e)",
"status": "ACTIVE",
"b1": "1.9",
"bs1": "0",
"b2": "0",
"bs2": "0",
"b3": "0",
"bs3": "0",
"l1": "0",
"ls1": "0",
"l2": "0",
"ls2": "0",
"l3": "0",
"ls3": "0",
"min": 100,
"max": 25000,
"remark": ""
}
]
},
{
"mid": "8196005670013",
"market": "Total Runs",
"gtype": "fancy3",
"status": "OPEN",
"inPlay": false,
"min": 0,
"max": 25000,
"remark": "",
"oddDatas": [
{
"sid": 464011,
"rname": "Under",
"status": "OPEN",
"b1": "1.76",
"bs1": "0",
"b2": "0",
"bs2": "0",
"b3": "0",
"bs3": "0",
"l1": "0",
"ls1": "0",
"l2": "0",
"ls2": "0",
"l3": "0",
"ls3": "0",
"line": 25.5,
"min": 0,
"max": 25000,
"remark": ""
}
]
}
]
}
}
GET Virtual Cricket Score
/api/virtual-cricket/score/:gameId
Live score of a virtual cricket match (XI / T5 / T10 and Virtual Cricket League). Poll every 1-2 s. 'Dim Cricket League (e)' matches have no score feed (score only in the video) -> FAILURE with a message. gameId also works as ?gameId=.
Parameters
| Name | In | Example | Description |
|---|
:gameId | path | 899490185 | Virtual cricket gameId (from /api/virtual-cricket/matches) |
Example request
curl -X GET "https://apis.diamondexchapi.com/api/virtual-cricket/score/899490185"
Example response
{
"status": "SUCCESS",
"data": {
"gameId": "899490185",
"eventName": "Brisbane Heat T10 v Adelaide Strikers T10",
"seriesName": "Virtual Cricket League",
"inPlay": true,
"isFinished": false,
"message": "",
"ballStatus": "",
"teams": [
{
"name": "Brisbane Heat T10",
"shortName": "BHV",
"score": "47",
"wickets": "3",
"overs": "5.0",
"scoreText": "47-3 (5.0)",
"runRate": 9.4,
"requiredRate": null,
"batting": true
},
{
"name": "Adelaide Strikers T10",
"shortName": "ASV",
"score": "0",
"wickets": "0",
"overs": "0.0",
"scoreText": "0-0 (0.0)",
"runRate": null,
"requiredRate": null,
"batting": false
}
],
"lastBalls": [
"1",
"4",
"0",
"w",
"2",
"6"
],
"updatedAt": "2026-10-21T13:35:00.000Z"
}
}
GET Get Last 10 Results
/api/virtual-cricket/last-10-results/:gameId
Returns the result of a virtual cricket match (gameId) or the last 10 completed matches of a series (seriesId). For XI / T5 / T10 (iscc 1) and Virtual Cricket League (iscc 2) the result is built from the live score feed, ball by ball: winner (match odds / bookmaker) and fancy session results (N over run, Only N over run, Fall of Nth wkt, Match 1st over run) appear in results[] as soon as they are decided, also while the match is IN_PLAY. Settle with marketId (mid_sid). A value is declared only when every delivery of that session was seen and adds up; anything unclear (missed delivery, no ball, player runs, innings ended early) is not declared and must be settled manually. Advance (adv) sessions of the team batting 2nd come as "abandoned". Dim Cricket League (e) (iscc 4): results from its live score feed - Nth Ball Of Match, Inning EvenOdd, Match Result and Total Runs / Fours / Sixes (fancy3: Over/Under runner = 1, plus value = the actual total). Toss Winner is not settled automatically.
Parameters
| Name | In | Example | Description |
|---|
:gameId | path | 540464203 | Match event ID (from matches list) or series ID (e.g. 7526679 for Dim Cricket League) |
Example request
curl -X GET "https://apis.diamondexchapi.com/api/virtual-cricket/last-10-results/540464203"
Example response
{
"status": "SUCCESS",
"data": [
{
"gameId": "688072663",
"eventId": "688072663",
"eventName": "Pakistan T10 v New Zealand T10",
"seriesId": 10100005,
"seriesName": "Virtual Cricket League",
"iscc": 2,
"runner1": "Pakistan T10",
"runner2": "New Zealand T10",
"winner": "Pakistan T10",
"winnerName": "Pakistan T10",
"winnerSno": 1,
"firstBatting": "PAKV",
"finalScore": {
"PAKV": "147-1",
"NZV": "131-5"
},
"lastScore": {
"score1": "147-1 (10.0)",
"score2": "131-5 (10.0)",
"message": "",
"isfinished": "0"
},
"results": [
{
"mid": "209215875076",
"sid": "3",
"market": "Normal",
"rname": "10 over run PAKV adv",
"result": "147",
"marketId": "209215875076_3"
},
{
"mid": "136008215650",
"sid": "1",
"market": "Over By Over",
"rname": "Only 1 over run NZV",
"result": "11",
"marketId": "136008215650_1"
},
{
"mid": "209215875076",
"sid": "7",
"market": "Normal",
"rname": "Fall of 1st wkt NZV adv",
"result": "abandoned",
"marketId": "209215875076_7"
}
],
"status": "COMPLETED"
},
{
"gameId": "540464203",
"eventId": "540464203",
"eventName": "Punjab Kings (e) - Gujarat Titans (e)",
"seriesId": 7526679,
"seriesName": "Dim Cricket League (1 over)",
"iscc": 4,
"eventTime": "9/29/2026 6:51:00 PM",
"completedAt": "2026-09-29T13:22:05.000Z",
"runner1": "Punjab Kings (e)",
"runner2": "Gujarat Titans (e)",
"winner": null,
"winnerName": null,
"lastOdds": {
"back1": 1.95,
"lay1": 1.97,
"back2": 1.95,
"lay2": 1.97
},
"status": "COMPLETED"
}
]
}
GET Get Match Result Detail
/api/virtual-cricket/result/:gameId/:roundId
Result detail of a virtual cricket match. roundId = gameId returns the full match result (winner, final score, every declared market with marketId mid_sid). roundId = a market mid returns the result of that market only. Works for XI / T5 / T10 (iscc 1) and Virtual Cricket League (iscc 2). Dim Cricket League (e) (iscc 4) works too (results from its live score feed); markets not declared automatically (e.g. Toss Winner) return FAILURE.
Parameters
| Name | In | Example | Description |
|---|
:gameId | path | 540464203 | Match event ID |
:roundId | path | 540464203 | Match event ID (same as gameId for virtual (e) cricket) |
Example request
curl -X GET "https://apis.diamondexchapi.com/api/virtual-cricket/result/540464203/540464203"
Example response
{
"status": "SUCCESS",
"data": {
"gameId": "540464203",
"eventName": "Punjab Kings (e) - Gujarat Titans (e)",
"seriesName": "Dim Cricket League (1 over)",
"runner1": "Punjab Kings (e)",
"runner2": "Gujarat Titans (e)",
"completedAt": "2026-09-29T13:22:05.000Z",
"status": "COMPLETED"
}
}
GET Virtual Cricket Live TV Player
/api/virtual-cricket/tv
Embeddable live video stream player for Virtual Cricket (e) matches. Pass the match gameId as the 'id' parameter. Instruction: Use in your whitelisted domain inside Iframe.
Instruction: Use in your whitelisted domain inside Iframe.
Iframe embed
<iframe src="https://apis.diamondexchapi.com/api/virtual-cricket/tv?id=540464203" width="100%" height="450" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>
Parameters
| Name | In | Example | Description |
|---|
id | query | 540464203 | Match gameId from the matches list (numeric event ID for virtual (e) cricket matches) |
Example request
curl -X GET "https://apis.diamondexchapi.com/api/virtual-cricket/tv?id=540464203"
Example response
<!DOCTYPE html><html><!-- Embed inside iframe on your whitelisted domain: -->
<!-- <iframe src="https://apis.diamondexchapi.com/api/virtual-cricket/tv?id=cricketv3" width="100%" height="450" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe> -->
... Virtual Cricket Video Player ...</html>