Make your first API call
Get up and running with Odds-API.io and fetch your first odds data.Step 1: Get your API key
1
Sign up for free
Visit odds-api.io and sign up for a free account.
2
Check your email
Your API key will be sent to the email address you provided during signup.
3
Copy your API key
Copy the API key from the email and keep it secure!
Step 2: Fetch available sports
Let’s start by fetching the list of available sports.The
/sports endpoint doesn’t require authentication - you can try it before getting your API key!Step 3: Fetch events for a sport
Now let’s get upcoming football events:The
scores object includes the final result (home/away, OT/penalty-inclusive) along with a periods map. Period keys: p1…pN (periods/sets/quarters), ft (full time), ot (overtime/extra time), ap (penalty shootout), currentgame (live tennis), map1…mapN (esports). The full-time key is ft (the legacy feed used fulltime).Step 4: Get odds for an event
Finally, let’s fetch odds from multiple bookmakers for a specific event:Common Use Cases
Here are quick snippets for common scenarios:Find Best Odds for a Match
Filter Events by League
Get Live Events
Error Handling
Always handle errors gracefully in production:Next steps
Now that you’ve made your first API calls, explore these guides:SDKs & Libraries
Official Python, Node.js, and MCP SDKs for faster integration.
Fetching Odds
Deep dive into fetching and comparing odds from multiple bookmakers.
Value Bets
Learn how to identify profitable betting opportunities.
WebSocket Feed
Real-time odds updates via WebSocket.
Need help? Contact us at hello@odds-api.io - we’re here to help!