sports-odds
Get live sports betting odds and compare lines across sportsbooks. Supports NFL, NBA, MLB, NHL, and more.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 81
- Forks
- 17
01 前言 Front Matter
- name
- sports-odds
- homepage
- https://the-odds-api.com/
- metadata
- { "openclaw": { "emoji": "?", "envVars": [ { "name": "ODDS_API_KEY", "required": true, "description": "Free API key from https://the-odds-api.com/" } ], "install": [ { "id": "jq-brew", "bins": [ "jq" ], "kind": "brew", "label": "Install jq (brew)", "formula": "jq" } ], "requires": { "env": [ "ODDS_API_KEY" ], "bins": [ "curl", "jq" ] }, "primaryEnv": "ODDS_API_KEY" } }
- description
- Get live sports betting odds and compare lines across sportsbooks. Supports NFL, NBA, MLB, NHL, and more.
02 资源文件 3
- 许可证LICENSE1.0 KB
- 参考文档SOURCE.md346 B
- 参考文档TRUST.auto.yaml2.1 KB
03 SKILL.md 正文
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:
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):
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:
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:
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:
# 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
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
04 同仓库更多 Skills
recipe-performance
Diagnose a specific MetaMask user flow's real-app performance and Sentry critical-user-flow telemetry with deterministic mm-harness recipes. Use for CUF boundaries, cold/warm/background-resume behavior, latency regressions, lifecycle tags, duplicate or blocking network requests, long tasks, layout/paint cost, screen redraws, React rerenders, or browser trace analysis where tests alone cannot prove the real app.
mexc-spot-websocket
MEXC Spot WebSocket workflows for public streams, protobuf handling, depth maintenance, listen keys, and private streams without exposing API keys.
mexc-spot-rest
MEXC Spot REST workflows for public data, signed account requests, orders, wallet/admin actions, and secure signing without exposing API keys.
mexc-futures-websocket
MEXC Futures WebSocket workflows for public streams, private account/order/position streams, ping/pong, subscriptions, and depth maintenance.
0xklen-version-and-refresh-sanctions-lists
暂无简介
verify-tests-cover-changed-lines
Use when a PR adds code that the existing suite may not exercise. Measures patch coverage — the share of newly changed lines hit by tests — before approving.