Skip to main content

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

Pick a plan

Visit odds-api.io/pricing and choose a plan. Plans start at £49/month (Solo: 2 bookmakers of your choice, 5,000 requests/hour, every sport and market, pre-match and live). Cancel anytime. New free API keys are paused; existing free keys keep working.
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!
Example Response:

Step 3: Fetch events for a sport

Now let’s get upcoming football events:
Example Response:
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 map winner: 1 for the side that won the map, 0 for the other), map1_score…mapN_score (esports rounds or kills per map, where available). 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:
Example Response:

Common Use Cases

Here are quick snippets for common scenarios:

Find Best Odds for a Match

Filter Events by League

Get Live Events

Keep Odds Live

Don’t poll /v3/odds on a timer. Open a WebSocket connection and let odds changes push to you as they happen:

Error Handling

Always handle errors gracefully in production:

Next steps

Now that you’ve made your first API calls, explore these guides:

WebSocket Feed

Real-time odds updates via WebSocket.

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 prices above a fair-odds estimate are detected.
Need help? Contact us at hello@odds-api.io - we’re here to help!