Settlement
Grade Selections
Grade up to 50 bet selections against final results and get won, lost, void, half won, half lost, pending or ungradeable for each one. Paid plans only.
POST
/
settlements
/
grade
Grade Selections
curl --request POST \
--url 'https://api.odds-api.io/v3/settlements/grade?apiKey=' \
--header 'Content-Type: application/json' \
--data '
{
"selections": [
{
"eventId": 74919888,
"market": "Spread",
"ref": "bet-1",
"side": "home",
"hdp": -0.25,
"label": "Arike Ogunbowale (Assists)"
}
]
}
'import requests
url = "https://api.odds-api.io/v3/settlements/grade?apiKey="
payload = { "selections": [
{
"eventId": 74919888,
"market": "Spread",
"ref": "bet-1",
"side": "home",
"hdp": -0.25,
"label": "Arike Ogunbowale (Assists)"
}
] }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
selections: [
{
eventId: 74919888,
market: 'Spread',
ref: 'bet-1',
side: 'home',
hdp: -0.25,
label: 'Arike Ogunbowale (Assists)'
}
]
})
};
fetch('https://api.odds-api.io/v3/settlements/grade?apiKey=', 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/settlements/grade?apiKey=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'selections' => [
[
'eventId' => 74919888,
'market' => 'Spread',
'ref' => 'bet-1',
'side' => 'home',
'hdp' => -0.25,
'label' => 'Arike Ogunbowale (Assists)'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.odds-api.io/v3/settlements/grade?apiKey="
payload := strings.NewReader("{\n \"selections\": [\n {\n \"eventId\": 74919888,\n \"market\": \"Spread\",\n \"ref\": \"bet-1\",\n \"side\": \"home\",\n \"hdp\": -0.25,\n \"label\": \"Arike Ogunbowale (Assists)\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.odds-api.io/v3/settlements/grade?apiKey=")
.header("Content-Type", "application/json")
.body("{\n \"selections\": [\n {\n \"eventId\": 74919888,\n \"market\": \"Spread\",\n \"ref\": \"bet-1\",\n \"side\": \"home\",\n \"hdp\": -0.25,\n \"label\": \"Arike Ogunbowale (Assists)\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.odds-api.io/v3/settlements/grade?apiKey=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"selections\": [\n {\n \"eventId\": 74919888,\n \"market\": \"Spread\",\n \"ref\": \"bet-1\",\n \"side\": \"home\",\n \"hdp\": -0.25,\n \"label\": \"Arike Ogunbowale (Assists)\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"grades": [
{
"ref": "bet-1",
"eventId": 74919888,
"result": "won",
"reason": null,
"final": true,
"basis": {
"scope": "regulation",
"home": 3,
"away": 2
},
"replacedBy": 74835696
}
]
}{
"error": "Error message"
}{
"error": "Error message"
}{
"error": "Error message"
}{
"error": "Error message"
}{
"error": "Error message"
}{
"error": "Error message"
}Authorizations
Your Odds-API.io API key, sent as the apiKey query parameter. Get one at https://odds-api.io/pricing.
Body
application/json
Selections to grade. At most 64 KB.
Was this page helpful?
⌘I
Grade Selections
curl --request POST \
--url 'https://api.odds-api.io/v3/settlements/grade?apiKey=' \
--header 'Content-Type: application/json' \
--data '
{
"selections": [
{
"eventId": 74919888,
"market": "Spread",
"ref": "bet-1",
"side": "home",
"hdp": -0.25,
"label": "Arike Ogunbowale (Assists)"
}
]
}
'import requests
url = "https://api.odds-api.io/v3/settlements/grade?apiKey="
payload = { "selections": [
{
"eventId": 74919888,
"market": "Spread",
"ref": "bet-1",
"side": "home",
"hdp": -0.25,
"label": "Arike Ogunbowale (Assists)"
}
] }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
selections: [
{
eventId: 74919888,
market: 'Spread',
ref: 'bet-1',
side: 'home',
hdp: -0.25,
label: 'Arike Ogunbowale (Assists)'
}
]
})
};
fetch('https://api.odds-api.io/v3/settlements/grade?apiKey=', 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/settlements/grade?apiKey=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'selections' => [
[
'eventId' => 74919888,
'market' => 'Spread',
'ref' => 'bet-1',
'side' => 'home',
'hdp' => -0.25,
'label' => 'Arike Ogunbowale (Assists)'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.odds-api.io/v3/settlements/grade?apiKey="
payload := strings.NewReader("{\n \"selections\": [\n {\n \"eventId\": 74919888,\n \"market\": \"Spread\",\n \"ref\": \"bet-1\",\n \"side\": \"home\",\n \"hdp\": -0.25,\n \"label\": \"Arike Ogunbowale (Assists)\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.odds-api.io/v3/settlements/grade?apiKey=")
.header("Content-Type", "application/json")
.body("{\n \"selections\": [\n {\n \"eventId\": 74919888,\n \"market\": \"Spread\",\n \"ref\": \"bet-1\",\n \"side\": \"home\",\n \"hdp\": -0.25,\n \"label\": \"Arike Ogunbowale (Assists)\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.odds-api.io/v3/settlements/grade?apiKey=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"selections\": [\n {\n \"eventId\": 74919888,\n \"market\": \"Spread\",\n \"ref\": \"bet-1\",\n \"side\": \"home\",\n \"hdp\": -0.25,\n \"label\": \"Arike Ogunbowale (Assists)\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"grades": [
{
"ref": "bet-1",
"eventId": 74919888,
"result": "won",
"reason": null,
"final": true,
"basis": {
"scope": "regulation",
"home": 3,
"away": 2
},
"replacedBy": 74835696
}
]
}{
"error": "Error message"
}{
"error": "Error message"
}{
"error": "Error message"
}{
"error": "Error message"
}{
"error": "Error message"
}{
"error": "Error message"
}