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 a trial
Visit odds-api.io and sign up for a free trial.
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!
Never share your API key publicly or commit it to version control. Use environment variables to store it securely.
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: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:Authentication
Learn about API key authentication and security best practices.
Fetching Odds
Deep dive into fetching and comparing odds from multiple bookmakers.
Value Bets
Learn how to identify profitable betting opportunities.
Best Practices
Optimize your API usage and implement rate limiting.
Need help? Contact us at hello@odds-api.io - we’re here to help!