# RapidAPI · diamond-sports-api-d247-sky-exchange-betfair (Diamond Sports API)

Gateway provider `rapidapi-diamond-sports-api-d247-sky-exchange-betfair` · call `https://fetchapi.co/api/gw/rapidapi-diamond-sports-api-d247-sky-exchange-betfair/<path>` with header `x-api-key` (get a key at https://fetchapi.co/keys) · MCP: tools `search_endpoints`, `get_endpoint`, `call_endpoint` at https://fetchapi.co/api/mcp · listing: https://rapidapi.com/malyaempire232/api/diamond-sports-api-d247-sky-exchange-betfair/pricing

Upstream plan: Pro: $999/month for 33,800,000 requests; free tier: Basic: $0, 29 requests/day, hard limit (https://rapidapi.com/malyaempire232/api/diamond-sports-api-d247-sky-exchange-betfair/pricing).

3 working endpoints, each tested live through this gateway. Endpoints that returned no data in our latest test, write actions and endpoints that need the end user's own login are not listed.

## `rapidapi-diamond-sports-api-d247-sky-exchange-betfair.getmatchesbysportsiddiamondcricket` — getMatchesBySportsIdDiamondCricket

`GET /api/v1/sports/matches` · ✓ working (tested 2026-11-02) · sampled 2026-10-22, 387 ms

The matches of one sport on the Diamond / D247 exchange (sportsid 4 = cricket): match id (gmid), teams, competition, in-play flag, start time and the MATCH_ODDS best back and lay price with size per runner. Two lists: t1 (main board) and t2 (on 2026-10-22: 'XI' T5/T10 matches with no prices). 1 request.

| param | required | example / default |
|---|---|---|
| `sportsid` | no | 4 |

Fields: `data.t1[].gmid` match id for the odds call; `data.t1[].ename` match name, 'Home v Away'; `data.t1[].iplay` true while the match is in play; `data.t1[].stime` start time as the exchange shows it (no time zone given); `data.t1[].section[].odds[]` best back1 / lay1 price and size per runner

```bash
curl "https://fetchapi.co/api/gw/rapidapi-diamond-sports-api-d247-sky-exchange-betfair/api/v1/sports/matches?sportsid=4" \
  -H "x-api-key: $FETCHAPI_KEY"
```

Real answer (trimmed):

```json
{
 "data": {
  "t1": [
   {
    "f": true,
    "m": 0,
    "bm": true,
    "f1": true,
    "rc": 2,
    "tv": true,
    "cid": 5734772,
    "mid": 9046459502960,
    "oid": 3,
    "etid": 4,
    "gmid": 710311937,
    "iscc": 0,
    "cname": "South Africa T20 Challenge",
    "ename": "Eastern Storm v Tuskers",
    "gtype": "match",
    "iplay": true,
    "mname": "MATCH_ODDS",
    "stime": "10/22/2026 9:30:00 PM",
    "gscode": 1,
    "status": "OPEN",
    "section": [
     {
      "nat": "Eastern Storm",
      "sid": 482830,
      "sno": 1,
      "odds": [
       {
        "sid": 0,
        "tno": 0,
        "odds": 1.82,
        "size": 2332.74,
        "oname": "back1",
        "otype": "back"
       },
       {
        "sid": 0,
        "tno": 0,
        "odds": 1.83,
        "size": 4883.04,
        "oname": "lay1",
        "otype": "lay"
       }
      ],
      "gscode": 1,
      "gstatus": "ACTIVE"
     },
     {
      "nat": "Tuskers",
      "sid": 51241,
      "sno": 3,
      "odds": [
       {
        "sid": 0,
        "tno": 0,
        "odds": 2.2,
        "size": 4144.23,
        "oname": "back1",
        "otype": "back"
       },
       {
        "sid": 0,
        "tno": 0,
        "odds": 2.22,
        "size": 1913.09,
        "oname": "lay1",
        "otype": "lay"
       }
      ],
      "gscode": 1,
      "gstatus": "ACTIVE"
     }
    ]
   },
   {
    "f": true,
    "m": 0,
    "bm": false,
    "f1": true,
    "rc": 2,
    "tv": false,
    "cid": 9212252,
  
…
```

## `rapidapi-diamond-sports-api-d247-sky-exchange-betfair.getoddsbysportsidgmiddiamondcricket` — getOddsBySportsIdGmidDiamondCricket

`GET /api/v1/sports/odds` · ✓ working (tested 2026-10-22) · sampled 2026-10-22, None ms

Every market of one match on the Diamond / D247 exchange (gmid from the matches call): MATCH_ODDS with a 3-deep back and lay ladder (price and size) per runner, the Bookmaker market, cricket fancy markets (Normal, Over By Over, Ball By Ball: runs lines) and Tied Match, each with its status and in-play flag. 1 request.

| param | required | example / default |
|---|---|---|
| `sportsid` | no | 4 |
| `gmid` | no | 710311937 |

Fields: `data.odds.<gmid>[].mname` market name (MATCH_ODDS, Bookmaker, Normal, Tied Match); `data.odds.<gmid>[].status` OPEN or SUSPENDED; `data.odds.<gmid>[].section[].nat` runner (team, YES/NO, or a fancy line); `data.odds.<gmid>[].section[].odds[]` otype back/lay, oname back1..3 / lay1..3 (1 = best), odds = price, size = amount available; 0 = no price; `data.missing_gmids` requested match ids that had no markets

```bash
curl "https://fetchapi.co/api/gw/rapidapi-diamond-sports-api-d247-sky-exchange-betfair/api/v1/sports/odds?gmid=710311937&sportsid=4" \
  -H "x-api-key: $FETCHAPI_KEY"
```

Real answer (trimmed):

```json
{
 "data": {
  "odds": {
   "710311937": [
    {
     "m": 0,
     "rc": 2,
     "max": 2000,
     "mid": 9046459502960,
     "min": 0,
     "pid": 0,
     "rem": "",
     "sno": 1,
     "gmid": 710311937,
     "maxb": 25000,
     "ocnt": 6,
     "pmid": null,
     "btcnt": 4,
     "dtype": 4,
     "gtype": "match",
     "iplay": true,
     "mname": "MATCH_ODDS",
     "biplay": true,
     "boplay": true,
     "gscode": 1,
     "status": "OPEN",
     "company": null,
     "section": [
      {
       "br": false,
       "ik": 0,
       "ikm": 0,
       "max": 0,
       "min": 0,
       "nat": "Eastern Storm",
       "rem": "",
       "sid": 482830,
       "sno": 1,
       "odds": [
        {
         "tno": 2,
         "odds": 2.94,
         "psid": 0,
         "size": 104,
         "oname": "back3",
         "otype": "back"
        },
        {
         "tno": 1,
         "odds": 2.96,
         "psid": 0,
         "size": 33.67,
         "oname": "back2",
         "otype": "back"
        },
        {
         "tno": 0,
         "odds": 3,
         "psid": 0,
         "size": 241.52,
         "oname": "back1",
         "otype": "back"
        },
        "… 3 more"
       ],
       "psid": 0,
       "psrno": 1,
       "gscode": 1,
       "gstatus": "ACTIVE"
      },
      {
       "br": false,
       "ik": 0,
       "ikm": 0,
       "max": 0,
       "min": 0,
       "nat": "Tuskers",
       "rem": "",
       "sid": 51241,
       "sno": 2,
       "odds": [
        {
         "tno
…
```

## `rapidapi-diamond-sports-api-d247-sky-exchange-betfair.getsportslist` — getSportsList

`GET /api/v1/sports` · ✓ working (tested 2026-10-22) · sampled 2026-10-22, 691 ms

The sports on the Diamond / D247 exchange feed (11 on 2026-10-22): sport id and name, and whether it is active. The id is the sportsid for the matches and odds calls (Cricket 4, Football 1, Tennis 2, Horse Racing 10). 1 request; the free plan is 29 requests a day.

Fields: `data[].eid` sport id (sportsid in the other calls); some rows use id instead; `data[].ename` sport name (some rows use name); `apiInfo.provider` the feed's stated source (TurnkeyXGaming)

```bash
curl "https://fetchapi.co/api/gw/rapidapi-diamond-sports-api-d247-sky-exchange-betfair/api/v1/sports" \
  -H "x-api-key: $FETCHAPI_KEY"
```

Real answer (trimmed):

```json
{
 "data": [
  {
   "eid": 4,
   "oid": 1,
   "tab": true,
   "ename": "Cricket",
   "active": true,
   "isdefault": true
  },
  {
   "eid": 1,
   "oid": 2,
   "tab": true,
   "ename": "Football",
   "active": true,
   "isdefault": false
  },
  {
   "eid": 2,
   "oid": 3,
   "tab": true,
   "ename": "Tennis",
   "active": true,
   "isdefault": false
  },
  "… 8 more"
 ],
 "apiInfo": {
  "contact": "+44 7474711015",
  "message": "This API is officially provided by TurnkeyXGaming. For reliable, real-time and direct source data, we strongly recommend using authorized services only. Third-party providers may deliver cached or delayed data, which can impact performance and accuracy. Contact us for official access.",
  "website": "https://turnkeyxgaming.com",
  "provider": "TurnkeyXGaming"
 },
 "message": "Success",
 "success": true
}
```
