odds

List of all odds match ⬜ 🟦 🟩

GET https://api.soccerfootball.info/v1/matches/odds/?i=ID

This endpoint return with all odds present and historical of a match The census markets are: ➡️ 1x2 [bet365.com, unibet.com] ➡️ Over under (goal line) [bet365.com, unibet.com] ➡️ Asian handicap [bet365.comm unibet.com] ➡️ Asian corner (corner line) [bet365.com] ➡️ 1 half asian handicap [bet365.com] ➡️ 1 half over under (goal line) [bet365.com] ➡️ 1 half asian corner (corner line) [bet365.com] ➡️ 1 half result (1x2) [bet365.com]

Query Parameters

NameTypeDescription

t

string

Your API Token DIRECT API ONLY

i

string

Match ID

Headers

NameTypeDescription

X-RapidAPI-Key

string

Your API token RAPIDAPI ONLY

X-RapidAPI-Host

string

soccerfootballinfo.rapidapi.com RAPIDAPI ONLY

{
   "status":200,
   "errors":[],
   "pagination":[],
   "result":[
      {
         "kickoff":{
            "1X2":{
               "bet365":{
                  "1":"1.571",
                  "2":"5.500",
                  "X":"3.750"
               },
               "unibet":{
                  "1":"1.64",
                  "2":"6.3",
                  "X":"3.85"
               }
            },
            "asian_handicap":{
               "bet365":{
                  "1":"1.850",
                  "2":"2.050",
                  "v":"-0.75"
               },
               "unibet":{
                  "1":"1.57",
                  "2":"2.33",
                  "v":"-0.5"
               }
            },
            "over_under":{
               "bet365":{
                  "o":"1.750",
                  "u":"2.050",
                  "v":"2"
               },
               "unibet":{
                  "o":"2.28",
                  "u":"1.6",
                  "v":"2.5"
               }
            },
            "asian_corner":{
               "bet365":{
                  "o":"1.750",
                  "u":"2.050",
                  "v":"7.5"
               },
               "unibet":{
                  "o":"2.28",
                  "u":"1.6",
                  "v":"7.5"
               }
            },
            "1h_asian_handicap":{
               "bet365":{
                  "1":"1.750",
                  "2":"2.125",
                  "v":"-0.25"
               }
            },
            "1h_goalline":{
               "bet365":{
                  "o":"2.150",
                  "u":"1.675",
                  "v":"1"
               }
            },
            "1h_asian_corner":{
               "bet365":{
                  "o":"1.750",
                  "u":"2.050",
                  "v":"3.5"
               }
            },
            "1h_result":{
               "bet365":{
                  "1":"2.200",
                  "2":"6.500",
                  "X":"2.100"
               }
            }
         },
         "live":{ // live history if no data from bookmaker data missing
            "1X2":{
               "bet365":[
                  ...,
                  {
                     "1":"1.615",  // quote null if data suspended
                     "2":"5.500",  // quote null if data suspended
                     "X":"3.750",  // quote null if data suspended
                     "time":"2"    // time in minute, null if pre match or in break
                  },
                  ...
               ],
               "unibet" :[
                  ...,
                  {
                     "1":"1.65",
                     "2":"5.6",
                     "X":"3.6",
                     "time":"8"
                  },
                  ...
               ]
            },
            "asian_handicap":{
               "bet365":[
                  {
                     "1":"2.060",
                     "2":"1.870",
                     "v":"-1.0",
                     "time":null
                  },
                  ...
               ],
               "unibet":[
                  ...,
                  {
                     "1":"1.6",
                     "2":"2.28",
                     "v":"-0.5",
                     "time":"20"
                  },
                  ...

               ]
            },
            "over_under":{
               "bet365":[
                  ...,
                  {
                     "o":"2.090",
                     "u":"1.810",
                     "v":"2.0,2.5",
                     "time":null
                  },
                  ...
               ],
               "unibet":[
                  {
                     "o":"2.23",
                     "u":"1.65",
                     "v":"2.5",
                     "time":null
                  },
                  ...
               ]
            },
            "asian_corner":{
               "bet365":[
                  ...
                  {
                     "o":null,
                     "u":null,
                     "v":"7.5",
                     "time":null
                  },
                  ...
               ]
            },
            "1h_asian_handicap":{
               "bet365":[
                  ...,
                  {
                     "1":"1.850",
                     "2":"2.000",
                     "v":"-0.25",
                     "time":"2"
                  },
                  ...
               ]
            },
            "1h_goalline":{
               "bet365":[
                  ...,
                  {
                     "o":"1.800",
                     "u":"2.050",
                     "v":"0.75",
                     "time":null
                  },
                  ...
               ]
            },
            "1h_asian_corner":{
               "bet365":[
                  {
                     "o":"1.850",
                     "u":"1.950",
                     "v":"4",
                     "time":null
                  },
                  ...
               ]
            },
            "1h_result":{
               "bet365":[
                  ...
                  {
                     "1":"2.300",
                     "2":"6.500",
                     "X":"2.050",
                     "time":null
                  },
                  ...
               ]
            }
         }
      }
   ]
}

Example of code for direct API

$url = 'https://api.soccerfootball.info/v1/matches/odds/?t=TOKEN&i=ID';

$curl = curl_init();

curl_setopt_array($curl, array(
    CURLOPT_URL => $url,
    CURLOPT_PROXY => null,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_ENCODING => "",
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 30,
    CURLOPT_CUSTOMREQUEST => "GET"
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if (!$err) {
  $result = json_decode($response);
  print_r($result);
} else {
    echo "cURL Error:" . $err;
}

Example of code for RapidAPI

$url = 'https://soccer-football-info.p.rapidapi.com/matches/odds/?i=ID';

$curl = curl_init();

curl_setopt_array($curl, array(
    CURLOPT_URL => $url,
    CURLOPT_PROXY => null,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_ENCODING => "",
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 30,
    CURLOPT_CUSTOMREQUEST => "GET",
    CURLOPT_HTTPHEADER => [
        "X-RapidAPI-Host: soccer-football-info.p.rapidapi.com",
        "X-RapidAPI-Key: TOKEN"
    ],
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if (!$err) {
  $result = json_decode($response);
  print_r($result);
} else {
    echo "cURL Error:" . $err;
}

More example of code on rapidAPI

Last updated