00 / Developer guide

    How to integrate a sports odds API for betting apps.

    What the odds feeds actually return, how to request each market, and how to keep prices fresh with REST and WebSocket.
    Request / responseV4, correct score
    $ curl "https://api.sportsapipro.com/v4/football/match/{matchId}/odds?oddGroupId=8" \
        -H "x-api-key: $SPORTS_API_KEY"
    
    # prematch[].periods[].odds.alternative[].odds["<bid>"]
    {
      "bid": 1,
      "bookie_name": "…",
      "o1": …,          // decimal price
      "o1d": "…",       // last movement
      "offer_id": "…"
    }

    01 / Steps

    Integration in four steps.

    01
    Get your API key
    Create a free account, generate a key in your dashboard, and send it on every request in the x-api-key header. Odds data is the same on every plan.
    02
    Pick the feed
    Football V2 gives one bookmaker's prices per match across roughly 11–24 markets. V4 gives multi-bookmaker prices per match, with one market per request.
    03
    Load with REST, follow with WebSocket
    Fetch the match's odds once, then subscribe to match:{matchId}:odds on the V2 socket. Frames are full snapshots: replace your local state each time.
    04
    Store and compare yourself
    Cache prices in your own store, keep your own history for line movement, and check per-match coverage before showing a market: lower tiers can be empty.

    02 / Feeds

    What you get, and its limits.

    Written from tests against the live endpoints. Coverage depends on the match: check before you show a market.

    01
    Multi-bookmaker prices (V4)
    GET /v4/football/match/{matchId}/odds returns Full Time Result by default. Add ?oddGroupId= for other markets: 8 Correct Score, 9 HT/FT, 4 Total Goals, 3 Asian Handicap, 10 Odd/Even, 63 Total Corners.Catalogue of 179 books; per-match coverage is often a handful
    02
    Per-match market set (V2)
    1X2, double chance, draw no bet, both teams to score, match goals, Asian handicap, corners, cards and next goal, where the match carries them.Player props are not available
    03
    WebSocket odds relay
    Subscribe per match. A frame follows a match event (goal, card, period change) quickly; otherwise prices refresh when they change, around every 30 seconds.Suspensions arrive as suspended: true on the next snapshot
    04
    Decimal prices and last move
    V4 offers carry bookie_name, o1 (decimal price) and o1d (last movement). Convert to American or fractional in your own code.

    03 / FAQ

    Questions betting teams ask.

    1. 01

      How quickly do live odds update?

      On the V2 WebSocket, a new odds frame follows a match event such as a goal or card within moments; pure price moves with no match event are refreshed about every 30 seconds when prices change. We don't publish a latency guarantee, so measure it on the free plan for your matches.

    2. 02

      Which markets are supported?

      V2 football carries roughly 11–24 markets per match (1X2, double chance, draw no bet, both teams to score, goals, Asian handicap, corners, cards, next goal). V4 adds multi-bookmaker prices including correct score, HT/FT, total goals, Asian handicap, odd/even and corners via oddGroupId. Player props and DFS lines are not available. Coverage varies by match.

    3. 03

      Do higher plans get more odds?

      No. Every plan receives the same odds data; plans differ only in request volume. WebSocket messages don't count toward your daily quota.

    4. 04

      How do I handle rate limits?

      The Free plan includes 100 requests per day and paid plans raise the daily and per-minute limits. Quotas reset at 00:00 UTC and failed requests count. Cache odds in your own store and use the WebSocket for live matches to save requests.

    Start

    Test your matches on the free plan.

    100 requests a day, the same odds data as every paid plan.