Next Goal
This endpoint allows you to retrieve the odds from next goal market.
This endpoint uses a pagination system and the page argument allows you to switch between the various pages.
Pagination: The endpoint uses an offset and limit system. Specify the offset and limit parameters to fetch the desired range of results. The maximum and default number of results per request is 50.
Update Period: Live and today's matches are updated every minute, while other matches are updated every hour.
Recommended Calls: Limit calls to 1 per minute for live and today's matches, and 1 per hour for other matches.
Use Cases
Get the odds from a specific match_idhttps://football.sportdevs.com/odds/next-goal?match_id=eq.{match_id}
Get the live odds from a specific match_idhttps://football.sportdevs.com/odds/next-goal?match_id=eq.{match_id}&is_live=eq.true
Get the pre-match odds from a specific match_idhttps://football.sportdevs.com/odds/next-goal?match_id=eq.{match_id}&is_live=eq.false
Query Parameters
- match_id integer
Default value:
eq.1
The id of the match. example:
eq.{match_id}
- is_live boolean
Default value:
eq.false
If the match is live. example:
eq.{is_live}
- offset string
Default value:
0
Limiting and Pagination
- limit string
Default value:
50
Limiting and Pagination
- lang string
Default value:
en
Multi-language
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema array
- match_id integer
The id of the match. example:
eq.{match_id}
- is_live boolean
If the match is live. example:
eq.{is_live}
- periods json
Periods
[
{
"match_id": 1,
"is_live": false,
"periods": [
{
"period_type": "Full Time",
"odds": [
{
"id": 12385,
"bookmaker_id": 2,
"bookmaker_name": "22Bet",
"bookmaker_order": 3,
"bookmaker_hash_image": "d585401d20b3d081f9862a9f11133f6d32b6208f3b3de0bd704e392ba679a3bb",
"home": 2.74,
"home_movement": -1,
"no_goal": 13,
"no_goal_movement": 1,
"away": 1.565,
"away_movement": -1,
"payout": 92.52
},
{
"id": 12386,
"bookmaker_id": 3,
"bookmaker_name": "1xBet",
"bookmaker_order": 4,
"bookmaker_hash_image": "a8ce79a50ae18cfa15b3a11e1a166d1d9018fe5ce31c54038808feedc9c4e989",
"home": 2.74,
"home_movement": -1,
"no_goal": 13,
"no_goal_movement": 1,
"away": 1.565,
"away_movement": -1,
"payout": 92.52
},
{
"id": 12387,
"bookmaker_id": 12,
"bookmaker_name": "Betway",
"bookmaker_order": 18,
"bookmaker_hash_image": "a94e8c70778324588bbba05fdf6d94ef4a97d83c21e809bef083f12fe4872d06",
"home": 2.75,
"home_movement": -1,
"no_goal": 11,
"no_goal_movement": -1,
"away": 1.55,
"away_movement": 1,
"payout": 90.93
},
{
"id": 12388,
"bookmaker_id": 34,
"bookmaker_name": "Megapari Sport",
"bookmaker_order": 86,
"bookmaker_hash_image": "2ba5bcf57289a260212f4134218d449286675304812a20e8beaeca5c325e3282",
"home": 2.74,
"home_movement": -1,
"no_goal": 13,
"no_goal_movement": 1,
"away": 1.565,
"away_movement": -1,
"payout": 92.52
}
]
}
]
}
]