Rugby league odds API
Rugby league leagues, markets and prices through one REST API.
Rugby league has the sport key rugby_league. Its events are between two teams, home and away.
Leagues
| League | Key | Bookmakers delivering |
|---|---|---|
| NRL | nrl | 0 |
| Rugby League World Cup | rlwc | 19 |
| Rugby League World Cup Women's | rlwcw | 13 |
Also in the catalogue, with no prices delivered yet: NRL Women's (nrlw).
Request the leagues
curl -sS "https://api.sockodds.com/v1/leagues?sport=rugby_league" \
-H "Authorization: Bearer $SOCKODDS_API_KEY"const response = await fetch("https://api.sockodds.com/v1/leagues?sport=rugby_league", {
headers: { Authorization: `Bearer ${process.env.SOCKODDS_API_KEY}` },
});
console.log(JSON.stringify(await response.json(), null, 2));import json, os, urllib.request
request = urllib.request.Request(
"https://api.sockodds.com/v1/leagues?sport=rugby_league",
headers={"Authorization": "Bearer " + os.environ["SOCKODDS_API_KEY"]},
)
with urllib.request.urlopen(request) as response:
print(json.dumps(json.load(response), indent=2))Response from a local copy of the API with invented test prices
{
"data": [
{
"key": "nrl",
"name": "NRL",
"sport": "rugby_league",
"region": "au",
"periods": [
"full",
"regulation",
"half_1",
"half_2"
]
},
{
"key": "nrlw",
"name": "NRL Women's",
"sport": "rugby_league",
"region": "au",
"periods": [
"full",
"regulation",
"half_1",
"half_2"
]
},
{
"key": "rlwc",
"name": "Rugby League World Cup",
"sport": "rugby_league",
"region": "intl",
"periods": [
"full",
"regulation",
"half_1",
"half_2"
]
},
{
"key": "rlwcw",
"name": "Rugby League World Cup Women's",
"sport": "rugby_league",
"region": "intl",
"periods": [
"full",
"regulation",
"half_1",
"half_2"
]
}
],
"meta": {
"count": 4,
"cursor": null
},
"links": {
"next": null
}
}Markets
16 market types are defined for rugby league: winner, result, handicap, total_points, total_tries, team_points_over_under, team_tries_over_under, player_tries_anytime, player_tries_first, player_tries_last, player_tries_over_under and player_tackles_over_under and more. Each league page lists the markets and periods that apply to it, and Markets lists them all.