Real-time sportsbook odds API
GET /api/oddsThis endpoint provides real-time odds from multiple sportsbooks across various sports. Data is cached for 10 minutes and auto-refreshes to minimize API calls.
[
{
"id": "string",
"sport_key": "string",
"sport_title": "string",
"commence_time": "ISO 8601 datetime",
"home_team": "string",
"away_team": "string",
"bookmakers": [
{
"key": "string",
"title": "string",
"markets": [
{
"key": "h2h",
"outcomes": [
{
"name": "string",
"price": number
}
]
}
]
}
]
}
]Loading...
fetch('/api/odds')
.then(res => res.json())
.then(data => {
console.log('Games:', data.length)
data.forEach(game => {
console.log(`${game.away_team} vs ${game.home_team}`)
})
})