✓ Verified
✍️ Content Creation
✓ Enhanced Data
Sports Odds
Get live sports betting odds and compare lines across sportsbooks.
- Rating
- 3.8 (305 reviews)
- Downloads
- 21,171 downloads
- Version
- 1.0.0
Overview
Get live sports betting odds and compare lines across sportsbooks.
Complete Documentation
View Source →
Sports Betting Odds
Get live betting odds from multiple sportsbooks using The Odds API. Free tier includes 500 requests/month.
Setup
- Get a free API key at https://the-odds-api.com/
- Set the environment variable:
export ODDS_API_KEY=your_key_here
Available Sports
List all available sports:
bash
curl -s "https://api.the-odds-api.com/v4/sports?apiKey=$ODDS_API_KEY" | jq '.[] | {key, title, active}'
Common sport keys:
americanfootball_nfl- NFLbasketball_nba- NBAbaseball_mlb- MLBicehockey_nhl- NHLsoccer_epl- English Premier Leaguesoccer_usa_mls- MLS
Get Odds
Get current odds for a sport (NFL example):
bash
curl -s "https://api.the-odds-api.com/v4/sports/americanfootball_nfl/odds?apiKey=$ODDS_API_KEY®ions=us&markets=h2h,spreads,totals" | jq '.'
Compact odds view:
bash
curl -s "https://api.the-odds-api.com/v4/sports/americanfootball_nfl/odds?apiKey=$ODDS_API_KEY®ions=us&markets=h2h" | jq '.[] | {game: "\(.home_team) vs \(.away_team)", commence: .commence_time, bookmakers: [.bookmakers[] | {name: .title, odds: .markets[0].outcomes}]}'
Compare spreads across books:
bash
curl -s "https://api.the-odds-api.com/v4/sports/basketball_nba/odds?apiKey=$ODDS_API_KEY®ions=us&markets=spreads" | jq '.[] | {matchup: "\(.away_team) @ \(.home_team)", books: [.bookmakers[] | {book: .title, spread: .markets[0].outcomes[0]}]}'
Markets
h2h- Moneyline (head-to-head)spreads- Point spreadstotals- Over/under totals
Regions
us- US sportsbooks (DraftKings, FanDuel, BetMGM, etc.)uk- UK bookmakerseu- European bookmakersau- Australian bookmakers
Best Line Finder
Find the best available line for a game:
bash
# Get best moneyline odds
curl -s "https://api.the-odds-api.com/v4/sports/basketball_nba/odds?apiKey=$ODDS_API_KEY®ions=us&markets=h2h" | jq '
.[] |
{
game: "\(.away_team) @ \(.home_team)",
best_home: (.bookmakers | map(.markets[0].outcomes[] | select(.name == .home_team)) | max_by(.price)),
best_away: (.bookmakers | map(.markets[0].outcomes[] | select(.name == .away_team)) | max_by(.price))
}
'
Check API Usage
bash
curl -s "https://api.the-odds-api.com/v4/sports?apiKey=$ODDS_API_KEY" -D - 2>&1 | grep -i "x-requests"
Headers show: x-requests-used and x-requests-remaining
Tips
- Cache responses to save API calls
- Use
oddsFormat=americanoroddsFormat=decimalparameter - Free tier: 500 requests/month, paid plans available for more
Installation
Terminal bash
openclaw install sports-odds
Copied!
💻Code Examples
curl -s "https://api.the-odds-api.com/v4/sports?apiKey=$ODDS_API_KEY" | jq '.[] | {key, title, active}'
curl--s-httpsapithe-odds-apicomv4sportsapikeyoddsapikey--jq---key-title-active.txt
Common sport keys:
- `americanfootball_nfl` - NFL
- `basketball_nba` - NBA
- `baseball_mlb` - MLB
- `icehockey_nhl` - NHL
- `soccer_epl` - English Premier League
- `soccer_usa_mls` - MLS
## Get Odds
Get current odds for a sport (NFL example):curl -s "https://api.the-odds-api.com/v4/sports/basketball_nba/odds?apiKey=$ODDS_API_KEY®ions=us&markets=spreads" | jq '.[] | {matchup: "\(.away_team) @ \(.home_team)", books: [.bookmakers[] | {book: .title, spread: .markets[0].outcomes[0]}]}'
curl--s-httpsapithe-odds-apicomv4sportsbasketballnbaoddsapikeyoddsapikeyregionsusmarketsspreads--jq---matchup-awayteam--hometeam-books-bookmakers--book-title-spread-markets0outcomes0.txt
## Markets
- `h2h` - Moneyline (head-to-head)
- `spreads` - Point spreads
- `totals` - Over/under totals
## Regions
- `us` - US sportsbooks (DraftKings, FanDuel, BetMGM, etc.)
- `uk` - UK bookmakers
- `eu` - European bookmakers
- `au` - Australian bookmakers
## Best Line Finder
Find the best available line for a game:example.sh
# Get best moneyline odds
curl -s "https://api.the-odds-api.com/v4/sports/basketball_nba/odds?apiKey=$ODDS_API_KEY®ions=us&markets=h2h" | jq '
.[] |
{
game: "\(.away_team) @ \(.home_team)",
best_home: (.bookmakers | map(.markets[0].outcomes[] | select(.name == .home_team)) | max_by(.price)),
best_away: (.bookmakers | map(.markets[0].outcomes[] | select(.name == .away_team)) | max_by(.price))
}
'Tags
#media_and-streaming
Quick Info
Category Content Creation
Model Claude 3.5
Complexity One-Click
Author ianalloway
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
Ready to Install?
Get started with this skill in seconds
openclaw install sports-odds
Related Skills
✓ Verified
💻 Development
4claw
4claw — a moderated imageboard for AI agents.
🧠 Claude-Ready
)}
★ 4.4 (118)
↓ 4,990
v1.0.0
✓ Verified
💻 Development
Aap Passport
Agent Attestation Protocol - The Reverse Turing Test.
🧠 Claude-Ready
)}
★ 4.3 (89)
↓ 4,621
v1.0.0
✓ Verified
💻 Development
Adaptive Suite
A continuously adaptive skill suite that empowers Clawdbot.
🧠 Claude-Ready
)}
★ 4.7 (88)
↓ 1,625
v1.0.0
✓ Verified
💻 Development
Adversarial Prompting
Adversarial analysis to critique, fix.
🧠 Claude-Ready
)}
★ 4.6 (372)
↓ 28,222
v1.0.0