Odds
Choosing markets
Use this page to ask for only the markets you need, and to read every bet365 group and every player market. Smaller requests are faster and stay inside your plan.
1. Select markets
Pass markets as a comma separated list of keys to get only those. This keeps the response small. fields does the same for the top-level keys of data, and an unknown key returns 400 with the list of valid ones.
curl "https://odds-feed.on-forge.com/api/v2/matches/0199c5a0-7b1e-7c3a-9f4e-2d6b8a1c4e70/odds?markets=match.result,corners.race&fields=markets" \
-H "Authorization: Bearer YOUR_KEY"{
"data": {
"markets": {
"match.result": {
"home": { "decimal": 2.1, "fractional": "11/10" },
"draw": { "decimal": 3.5, "fractional": "5/2" },
"away": { "decimal": 3.4, "fractional": "12/5" }
},
"corners.race": [
{
"target": 3,
"home": { "decimal": 1.53, "fractional": "8/15" },
"neither": { "decimal": 41, "fractional": "40/1" },
"away": { "decimal": 2.37, "fractional": "11/8" }
},
"…"
]
}
},
"meta": { "…": "…", "availability": { "status": "available" } },
"links": { "…": "…" }
}2. Read every group and player market
include=groups adds groups, every bet365 market group with its selections and a suspended flag. include=players adds player_markets. type and player narrow the player markets to one type or one player, by name or by id. Both include options read the pre-match page before kick-off. Player markets need the Player props plan.
curl "https://odds-feed.on-forge.com/api/v2/matches/0199c5a0-7b1e-7c3a-9f4e-2d6b8a1c4e71/odds?include=players&type=shots_on_target&fields=player_markets" \
-H "Authorization: Bearer YOUR_KEY"{
"data": {
"player_markets": [
{
"key": "g177704",
"name": "Shots on Target",
"type": "shots_on_target",
"suspended": false,
"players": [
{
"name": "Nicolas Jackson",
"team": "Aston Villa",
"refs": [{ "source": "bet365", "type": "player", "id": "…" }],
"selections": [
{ "outcome": "…", "price": { "decimal": 1.5, "fractional": "1/2" }, "suspended": false, "…": "…" }
]
},
"…"
],
"other": []
}
]
},
"…": "…"
}Reference
Parameters on GET /matches/{id}/odds.
| Parameter | Values | Notes |
|---|---|---|
markets |
Comma separated market keys | Keys from /markets. |
fields |
phase, state, teams, scoreboard, incidents, markets, market_change_times, groups, player_markets |
Keeps only these keys of data. |
include |
groups, players or both |
Adds groups or player_markets. |
type |
A player market type | With include=players. The types are on Market keys. |
player |
Player name or bet365 player id | With include=players. |