# SportsGameOdds API Documentation > Explore the SportsGameOdds API Documentation for detailed guides, tutorials, and resources to make the most of our betting odds API platform. Start learning today! The easiest and most powerful way to add sports & betting odds data to your application, model, or whatever else! ## Table of Contents ### Guides - [Pagination Guide - Cursor-Based Batching](/docs/v2/guides/data-batches.md): Fetch large datasets with cursor pagination. Use nextCursor and limit parameters to iterate through events, teams, and players efficiently. - [Handling Odds - Parse Results and Grade Bets](/docs/v2/guides/handling-odds.md): Access odds data from events, grade over/under and spread bets using closeOverUnder and score fields. JavaScript example for processing results. - [Teams Guide - Fetch by ID, League, or Sport](/docs/v2/guides/fetching-teams.md): Query /teams endpoint by teamID, leagueID, or sportID. Get team names, colors, and identifiers with code examples in multiple languages. - [Optimize Response Speed and Latency](/docs/v2/guides/response-speed.md): Reduce API response times with oddIDs filtering. Fetch only needed markets using PLAYER_ID wildcard and includeOpposingOddIDs parameter. - [Real-Time Streaming API (WebSocket)](/docs/v2/guides/realtime-streaming-api.md): WebSocket streaming for live odds updates via Pusher. Connect to events:live, events:upcoming, or events:byid feeds. AllStar plan required. ### Endpoints - [GET /events - Fetch Games, Odds, and Results](/docs/v2/endpoints/getEvents.md): Retrieve sports events with live odds, scores, player props, and results. Filter by league, team, date, or odds market. Includes all bookmaker lines. - [GET /teams - Fetch Team Data](/docs/v2/endpoints/getTeams.md): Retrieve team information including names, colors, and identifiers. Filter by teamID, leagueID, or sportID. Supports pagination. - [GET /players - Fetch Player Data](/docs/v2/endpoints/getPlayers.md): Retrieve player information including names, team, position, and identifiers. Filter by playerID, teamID, or leagueID. Supports pagination. - [GET /sports - List All Sports](/docs/v2/endpoints/getSports.md): Retrieve all supported sports with their sportID values. Returns basketball, football, baseball, hockey, soccer, tennis, golf, MMA, and more. - [GET /leagues - List All Leagues](/docs/v2/endpoints/getLeagues.md): Retrieve all supported leagues with leagueID values. Filter by sportID. Returns NFL, NBA, MLB, NHL, EPL, and 50+ other leagues. - [GET /stats - List All Stats](/docs/v2/endpoints/getStats.md): Retrieve all supported statistics with statID values. Filter by sportID. Returns points, rebounds, assists, touchdowns, and sport-specific stats. - [GET /account/usage - Check API Usage and Limits](/docs/v2/endpoints/getUsage.md): Check your API key rate limits and current usage. Returns requests per minute, objects per month, and remaining quota by time interval. ### Other Info - [Sports Betting Glossary - Terms and Definitions](/docs/v2/info/glossary.md): Betting terminology explained with API field mappings. Moneyline, spread, over/under, juice, arbitrage, closing line value, and more. - [Error Codes and Troubleshooting](/docs/v2/info/errors.md): Full reference of all error codes, what they mean and how to troubleshoot them. Includes code examples with best practices for error handling. - [Consensus Odds - Fair and Book Calculations](/docs/v2/info/consensus-odds.md): How fairOdds and bookOdds are calculated. Linear regression finds fair lines, median odds across bookmakers, juice removal for true probability. - [Migration Guide - V1 to V2 API](/docs/v2/info/v1-to-v2.md): Upgrade from API v1 to v2. Combined /events endpoint, new playerID format, deeplinks, altLines parameter, and field name changes explained. ### Other - [AI-Assisted Development - MCP Server and Context](/docs/v2/info/ai-vibe-coding.md): Use Claude Code, Cursor, or Copilot with SportsGameOdds API. Install MCP server, access llms.txt docs, and copy-paste AI context for accurate code generation. - [API Cheat Sheet - Quick Reference](/docs/v2/basics/cheat-sheet.md): SportsGameOdds API cheat sheet with endpoints, authentication, oddID format, and response structure. Copy-paste examples for common requests. - [API Reference - Endpoints and Parameters](/docs/v2/reference.md): Complete SportsGameOdds API reference. All endpoints, query parameters, request/response schemas with interactive testing. OpenAPI specification. - [Arbitrage Calculator Example - Python](/docs/v2/examples/arbitrage-calculator.md): Build an arbitrage finder with the SportsGameOdds API. Scan bookmakers for odds discrepancies, calculate guaranteed profit. Full Python code. - [Best Practices and Common Mistakes](/docs/v2/info/best-practices.md): API best practices for security, performance, and cost optimization. Avoid common mistakes like frontend API calls, over-polling, and missing filters. - [Bet Type and Side Data Types - betTypeID and sideID](/docs/v2/data-types/bet-types.md): All betTypeID and sideID values in the SportsGameOdds API. Moneyline (ml), spread (sp), over/under (ou), 3-way, and prop bet definitions. - [Bookmaker Data Type - bookmakerID](/docs/v2/data-types/bookmakers.md): Complete list of bookmakerID values. DraftKings, FanDuel, BetMGM, Caesars, PrizePicks, Pinnacle, and 80+ more sportsbooks and DFS platforms. - [Data Explorer - Browse Live API Data](/docs/v2/explorer.md): Interactive tool to browse SportsGameOdds API data. Explore sports, leagues, teams, events, and odds markets in real-time without writing code. - [Data Types Overview - API Schema Reference](/docs/v2/data-types.md): How SportsGameOdds API data types relate. Hierarchy of sports, leagues, teams, events, odds, and bookmakers with identifier formats explained. - [FAQ - Common Questions and Troubleshooting](/docs/v2/faq.md): Answers to common SportsGameOdds API questions. Authentication, filtering, rate limits, error handling, oddID format, player props, historical data, and optimization tips. - [Introduction - SportsGameOdds API](/docs/v2/basics.md): Sports betting odds API with 80+ bookmakers, 55+ leagues. Pay per event, not per market. Get real-time odds, scores, and player props in one request. - [League Data Type - leagueID](/docs/v2/data-types/leagues.md): Complete list of leagueID values. NFL, NBA, MLB, NHL, EPL, La Liga, Champions League, NCAA, UFC, and 55+ leagues across all major sports. - [Live Odds Tracker Example - JavaScript](/docs/v2/examples/live-odds-tracker.md): Build a live odds tracker with the SportsGameOdds API. Detect line movement and price changes across bookmakers every 30 seconds. Full Node.js code. - [Odds Comparison Dashboard Example - React/Next.js](/docs/v2/examples/odds-comparison-dashboard.md): Build an odds comparison dashboard with the SportsGameOdds API. Compare lines across bookmakers in real-time. Full Next.js TypeScript code with Tailwind. - [Odds Data Type - oddID](/docs/v2/data-types/odds.md): How oddID works in the SportsGameOdds API. Format is statID-statEntityID-periodID-betTypeID-sideID. Includes examples and field reference. - [Parlay Calculator Example - JavaScript](/docs/v2/examples/parlay-builder.md): Build a parlay calculator with the SportsGameOdds API. Calculate combined odds, payouts, and implied probability. Full Node.js code with round robin support. - [Period Data Type - periodID](/docs/v2/data-types/periods.md): All periodID values for game segments. Full game, halves (1h, 2h), quarters (1q-4q), innings, periods, sets, rounds by sport. - [Player Props Analyzer Example - Python](/docs/v2/examples/player-props-analyzer.md): Build a player props analyzer with the SportsGameOdds API. Compare bookmaker lines, find outliers, and identify value bets. Full Python code. - [Quickstart - First API Call in 5 Minutes](/docs/v2/basics/quickstart.md): Make your first SportsGameOdds API call with copy-paste code examples. Fetch live NFL, NBA, and MLB odds in JavaScript, Python, Ruby, PHP, or Java. - [Rate Limits by Plan - Requests and Objects](/docs/v2/info/rate-limiting.md): Rate limits for Amateur, Rookie, Pro, and AllStar plans. Check usage via /account/usage endpoint. Strategies to avoid 429 errors and optimize requests. - [SDK Guide - TypeScript, Python, Ruby, Go, Java](/docs/v2/sdk.md): Official SportsGameOdds SDKs with auto-pagination, type safety, and error handling. Install guides and code examples for all supported languages. - [Setup Guide - API Keys and Authentication](/docs/v2/basics/setup.md): Get your SportsGameOdds API key and authenticate requests. Use x-api-key header or apiKey query param. Includes SDK install and code examples. - [Sports Data Type - sportID](/docs/v2/data-types/sports.md): Complete list of sportID values. Basketball, football, baseball, hockey, soccer, tennis, golf, MMA, and more supported sports. - [SportsGameOdds API - Sports Betting Odds Data for Developers](/docs/v2.md): Real-time sports betting odds API with 80+ bookmakers, 55+ leagues. Get moneylines, spreads, player props, and live scores. Free tier available. - [Stat Data Type - statID](/docs/v2/data-types/stats.md): All statID values organized by sport. Points, rebounds, assists, touchdowns, passing yards, goals, and player props for every supported sport. - [Stat Entity Data Type - statEntityID](/docs/v2/data-types/stat-entity.md): How statEntityID works. Values include home, away, all (combined), playerID for props, or teamID for tournaments. Used in odds and results. - [Support - Get Help with the API](/docs/v2/help.md): Contact SportsGameOdds support via email, live chat, or Discord. Learn about how we prioritize issues and what to include when reporting an issue. - [Supported Markets - Odds Coverage by League](/docs/v2/data-types/markets.md): Interactive market browser showing oddID coverage by league and bookmaker. Filter by sport, bet type, or sportsbook to see available markets.