Odds
Get Odds Movements
Returns all historical odds movements for a specific market type and handicap line of a specific event from a bookmaker.
GET
/
odds
/
movements
Get Odds Movements
curl --request GET \
--url https://api.odds-api.io/v3/odds/movementsimport requests
url = "https://api.odds-api.io/v3/odds/movements"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.odds-api.io/v3/odds/movements', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.odds-api.io/v3/odds/movements",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.odds-api.io/v3/odds/movements"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.odds-api.io/v3/odds/movements")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.odds-api.io/v3/odds/movements")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"bookmaker": "<string>",
"eventid": "<string>",
"latest": {
"away": 123,
"draw": 123,
"hdp": "<string>",
"home": 123,
"max": 123,
"timestamp": 123
},
"movements": [
{
"away": 123,
"draw": 123,
"hdp": "<string>",
"home": 123,
"max": 123,
"timestamp": 123
}
],
"opening": {
"away": 123,
"draw": 123,
"hdp": "<string>",
"home": 123,
"max": 123,
"timestamp": 123
}
}{
"error": "Error message"
}{
"error": "Error message"
}{
"error": "Error message"
}{
"error": "Error message"
}{
"error": "Error message"
}Query Parameters
API key for authentication
Event ID
Bookmaker name (e.g. Bet365, SingBet)
Market type name (e.g. ML, Spread, Totals)
Handicap line (e.g. 0.5, 1.0, 2.5) - not required for ML markets
⌘I
Get Odds Movements
curl --request GET \
--url https://api.odds-api.io/v3/odds/movementsimport requests
url = "https://api.odds-api.io/v3/odds/movements"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.odds-api.io/v3/odds/movements', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.odds-api.io/v3/odds/movements",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.odds-api.io/v3/odds/movements"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.odds-api.io/v3/odds/movements")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.odds-api.io/v3/odds/movements")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"bookmaker": "<string>",
"eventid": "<string>",
"latest": {
"away": 123,
"draw": 123,
"hdp": "<string>",
"home": 123,
"max": 123,
"timestamp": 123
},
"movements": [
{
"away": 123,
"draw": 123,
"hdp": "<string>",
"home": 123,
"max": 123,
"timestamp": 123
}
],
"opening": {
"away": 123,
"draw": 123,
"hdp": "<string>",
"home": 123,
"max": 123,
"timestamp": 123
}
}{
"error": "Error message"
}{
"error": "Error message"
}{
"error": "Error message"
}{
"error": "Error message"
}{
"error": "Error message"
}