Sports Betting API Documentation


1. List Matches

SPORT_ID = 1 (soccer)
SPORT_ID = 2 (tennis)
SPORT_ID = 4 (cricket)

http://103.189.172.159/index.php/api/v1/get/events/SPORT_ID

NOTE : manually added matches’s event_id may start with '-' (hyphen).
NOTE : 1 hit per 5 - 10 minutes

Sample Response

https://docs.google.com/document/d/1YbIf-h8w1H3cOcbA2Pnnrn5JIjLm-W5GzXh-pIiVAIY/edit?usp=sharing

1.1 List Series

SPORT_ID = 1 (soccer)
SPORT_ID = 2 (tennis)
SPORT_ID = 4 (cricket)

http://103.189.172.159/index.php/api/v1/get/series/SPORT_ID

NOTE : 1 hit per day would be fine

Sample Response

[
    {
        "sport_id":4,
        "series_id":"101480",
        "name":"World League"
    },
    {
        "sport_id":4,
        "series_id":"11365612",
        "name":"Test Matches"
    },
    {
        "sport_id":4,
        "series_id":"12735687",
        "name":"Women's T20 Blast Div 2"
    }
]

2. Get Bookmaker Market Specific To Event ID

EVENT_ID = available from above API

http://103.189.172.159/index.php/api/v1/get/bookmaker/EVENT_ID

Normal Betfair Matches Example

http://103.189.172.159/index.php/api/v1/get/bookmaker/33776460

Manually Added Matches Example

http://103.189.172.159/index.php/api/v1/get/bookmaker/-10749130

NOTE : 1 hit per 5 - 10 minutes

Sample Response

[
    {
        "mid":"43816470",
        "openDate":"2026-05-25T13:30:00Z",
        "sid":"1",
        "nat":"England W",
        "b1":"46",
        "bs1":"0",
        "l1":"50",
        "ls1":"0",
        "s":"ACTIVE",
        "sr":"1"
    },
    {
        "mid":"43816470",
        "openDate":"2026-05-25T13:30:00Z",
        "sid":"2",
        "nat":"New Zealand W",
        "b1":"0",
        "bs1":"0",
        "l1":"0",
        "ls1":"0",
        "s":"SUSPENDED",
        "sr":"2"
    }
]

3. Get Match Odds

http://103.189.172.159/index.php/api/v1/get/odds/EVENT_ID

Normal Betfair Matches Example

http://103.189.172.159/index.php/api/v1/get/odds/33776460

Manually Added Matches Example

http://103.189.172.159/index.php/api/v1/get/odds/-10749130

NOTE : 1 hit per 1 second

Sample Response

{
  "marketId": "1.258539465",
  "marketName": "Match Odds",
  "inplay": 0,
  "runners": [
    {
      "selectionId": 83801504,
      "runnerName": "England W",
      "status": "ACTIVE",
      "sortPriority": 1,
      "maxBack": 1.48,
      "minLay": 1.49,
      "ex": {
        "availableToBack": [
          {
            "price": "1.48",
            "size": "297.93"
          },
          {
            "price": "1.47",
            "size": "1105.7"
          },
          {
            "price": "1.46",
            "size": "1078.31"
          }
        ],
        "availableToLay": [
          {
            "price": "1.49",
            "size": "282.51"
          },
          {
            "price": "1.5",
            "size": "740.14"
          },
          {
            "price": "1.51",
            "size": "415.68"
          }
        ]
      }
    },
    {
      "selectionId": 88050721,
      "runnerName": "New Zealand W",
      "status": "ACTIVE",
      "sortPriority": 2,
      "maxBack": 3,
      "minLay": 3.1,
      "ex": {
        "availableToBack": [
          {
            "price": "3",
            "size": "510.37"
          },
          {
            "price": "2.98",
            "size": "11.02"
          },
          {
            "price": "2.96",
            "size": "200.96"
          }
        ],
        "availableToLay": [
          {
            "price": "3.1",
            "size": "142.24"
          },
          {
            "price": "3.15",
            "size": "582.14"
          },
          {
            "price": "3.2",
            "size": "449.85"
          }
        ]
      }
    }
  ]
}

4. Get Bookmaker Odds

http://103.189.172.159/index.php/api/v1/get/bookmaker/EVENT_ID

Normal Betfair Matches Example

http://103.189.172.159/index.php/api/v1/get/bookmaker/33776460

Manually Added Matches Example

http://103.189.172.159/index.php/api/v1/get/bookmaker/-10749130

NOTE : 1 hit per 1 second


5. Get Sessions (Only For Cricket)

http://103.189.172.159/index.php/api/v1/get/sessions/EVENT_ID

Normal Betfair Matches Example

http://103.189.172.159/index.php/api/v1/get/sessions/33776460

Manually Added Matches Example

http://103.189.172.159/index.php/api/v1/get/sessions/-10749130

NOTE : 1 hit per 1 second

Sample Response

https://docs.google.com/document/d/1mfxLEBs68f3YgQsba2RaVKZHa1IL19keRtKIKgob7_0/edit?usp=sharing

Session Result API

http://103.189.172.159/api/v1/result/session_result.php?eventId=EVENT_ID

6. LIVE TV API

API Endpoint

http://103.189.172.159/tv.php?clientId=CLIENT_ID&token=TOKEN&eventId=EVENT_ID&marketId=MARKET_ID

Credentials

CLIENT_ID = ****

$secret = "******";

TOKEN = hash_hmac('sha256', EVENT_ID, $secret);

Final URL Example

http://103.189.172.159/tv.php?clientId=demo&token=b72f52f2df9d4b57a681b28e136a3b5bca76002ce923d0e27651207d9809e0c4&eventId=34726538&marketId=1.247693476

7. SCORE CARD API

API Endpoint

http://103.189.172.159/score.php?clientId=CLIENT_ID&token=TOKEN&eventId=EVENT_ID

Credentials

CLIENT_ID = ****

$secret = "******";

TOKEN = hash_hmac('sha256', EVENT_ID, $secret);

Final URL Example

http://103.189.172.159/score.php?clientId=demo&token=b72f52f2df9d4b57a681b28e136a3b5bca76002ce923d0e27651207d9809e0c4&eventId=34726538

8. Get TOSS Market (Only For Cricket)

http://103.189.172.159/index.php/api/v1/get/toss/EVENT_ID

Normal Betfair Matches Example

http://103.189.172.159/index.php/api/v1/get/toss/33776460

Manually Added Matches Example

http://103.189.172.159/index.php/api/v1/get/toss/-10749130

NOTE : 1 hit per 1 second

Sample Response

[
  {
    "mid": "43816470",
    "openDate": "2026-05-25T13:30:00Z",
    "sid": "1",
    "nat": "England W",
    "b1": 98,
    "bs1": 0,
    "l1": 0,
    "ls1": 0,
    "s": "ACTIVE",
    "sr": "1"
  },
  {
    "mid": "43816470",
    "openDate": "2026-05-25T13:30:00Z",
    "sid": "2",
    "nat": "New Zealand W",
    "b1": 98,
    "bs1": 0,
    "l1": 0,
    "ls1": 0,
    "s": "ACTIVE",
    "sr": "2"
  }
]

9. Get Tied Market (Only For Cricket)

http://103.189.172.159/index.php/api/v1/get/tied/EVENT_ID

Normal Betfair Matches Example

http://103.189.172.159/index.php/api/v1/get/tied/33776460

Manually Added Matches Example

http://103.189.172.159/index.php/api/v1/get/tied/-10749130

NOTE : 1 hit per 1 second

Sample Response

[
  {
    "mid": "43816470",
    "openDate": "2026-05-25T13:30:00Z",
    "sid": "1",
    "nat": "England W",
    "b1": 98,
    "bs1": 0,
    "l1": 0,
    "ls1": 0,
    "s": "ACTIVE",
    "sr": "1"
  },
  {
    "mid": "43816470",
    "openDate": "2026-05-25T13:30:00Z",
    "sid": "2",
    "nat": "New Zealand W",
    "b1": 98,
    "bs1": 0,
    "l1": 0,
    "ls1": 0,
    "s": "ACTIVE",
    "sr": "2"
  }
]