Skip to content
RealTimeBets

Live Sports Odds API Response Checked Field by Field for Sportsbooks

5 min read

Test the live odds API on a sandbox key, no sales call.

Get sandbox key
Developer inspecting the JSON response of a live sports odds API

A live sports odds API looks the same in every sales page and very different in the first JSON response. Before a licensed sportsbook commits to one, the response itself answers most of the buying questions: can I show a price, can I protect myself, can I tell when to stop taking bets. This article reads one RealTimeBets response field by field and says what each field lets you build.

It is written for a developer or product lead at a licensed or soon to be licensed book who is comparing two or three vendors. If you want a broader comparison of delivery and pricing, start with the live odds API comparison and come back here to test the shortlist.

The call that proves the most

Send one request with the sandbox key: GET /api/v1/events/{event_id}/markets. The answer is a data array of markets and a meta object. Everything below comes from that one response, so it costs a single request of the 1,000 in the sandbox pool.

Replay matches use fictional teams and carry the feed value replay, so you can run this at any hour. Real matches from the licensed data provider are labelled Live.

The market fields and what each one lets you build

FieldWhat it containsWhat you build with it
key, name, typeMarket identifier, label and kindBet slip rows and your own market mapping
microtrue for second and point level marketsSeparate screens for fast markets and match markets
statusOpen or suspended state of the marketDisable the price button the moment trading stops
locks_atTime the market stops taking betsA countdown on the slip, no guessing
margin0.06, the fixed margin in every priceYour own margin maths, see below
selections: price_decimalThe decimal price you showOdds display and bet recording
selections: probabilityModel probability behind the priceApply your own margin, limits and liability
updated_at, sandboxTimestamp and sandbox flagStale price checks and test versus production filtering

The two fields that separate an odds engine from a plain price list are status with locks_at and probability. Without them you display numbers, but you cannot tell a customer when a market closes and you cannot reprice it yourself.

Worked example, checking the margin yourself

Never trust a margin claim you can compute. Take a two way market where the model gives the server a probability of 0.60 and the returner 0.40. Every price is one divided by the probability times 1.06, held between 1.01 and 51.00.

  • Server: 1 / (0.60 x 1.06) = 1.57
  • Returner: 1 / (0.40 x 1.06) = 2.36
  • Implied probabilities: 1 / 1.57 = 0.637 and 1 / 2.36 = 0.424, which sum to 1.061

So the book holds about 6 percent on a balanced two way market before rounding. If your trading policy wants 8 percent, you take the probabilities from the response and compute your own prices in a few lines. The API has no setting for an operator margin, and that is deliberate: the margin on our side is fixed and the probability is there so you can set yours on your side.

Check the same sum on any vendor you are testing. If a feed shows only prices and no probabilities, you can derive implied probabilities but not the model view behind them, and you cannot tell margin from model error.

The meta object and your request budget

The meta object carries sandbox, delay_seconds, requests_used and requests_quota. A sandbox key shows a 60 second delay and a quota of 1,000, and a production key shows a delay of 0. Read requests_used after each experiment, so you learn what your own polling really costs before the monthly allowance is yours to spend.

Polling every second for one event is 86,400 requests a day, which is why live boards use the stream. The stream endpoint pushes the full market set of an event once a second over server-sent events, the browser standard described in the MDN server-sent events reference. It is not WebSocket. For monthly volumes by book size, use the odds feed sizing article.

Beyond the response, five calls that finish the job

A response that only lets you show prices solves a quarter of a sportsbook. The rest is what happens after the customer clicks.

  1. Risk check. POST /api/v1/risk/check answers accepted, reduced with a max stake, or rejected with a reason. In the docs example a stake of 250 is reduced to 120 because liability is near its limit. Growth and Enterprise.
  2. Record the bet. POST /api/v1/bets stores the bet with your own bet_id.
  3. Settle. When the market resolves, a signed bet.settled webhook arrives with won or lost and the payout. The bet settlement software page shows the payload and the retry rules.
  4. Reconcile. GET /api/v1/bets/{bet_id} returns current status for your ledger.
  5. Cash out. Quote and execute on Enterprise only.

To run the first four in Python with the requests library, the sports betting API for Python developers page has the code.

Which plan the response maps to

Starter is $499 a month ($249 billed yearly). It returns live odds for 3 sports, 500,000 requests a month, bet recording and settlement webhooks, with no suspension and no risk check. Growth is $1,999 a month ($999 billed yearly). It adds all sports and CS2, automatic suspension on micro-markets, the risk check and 5,000,000 requests. Enterprise at $4,999 a month ($2,499 billed yearly) adds cash out.

Choosing a plan reserves it at the listed price and nothing is charged yet. Production keys need a licence record and an active plan, which is why this checklist runs on the sandbox first. Teams that field customer questions around a new live product sometimes put a voice line in front of support, and a service such as Phoneagent can answer those calls while the engineers work on the integration.

What this response does not give you

No pre-match prices. An upcoming event has no markets, and markets open at kickoff. No other bookmakers' lines, no player props, no historical closing lines. Every price comes from RealTimeBets' own model with the fixed margin. If you need a price comparison across bookmakers, this is the wrong product, and the odds comparison API page explains the difference.

Questions about reading a live sports odds API response

What should a live sports odds API return for each market?

At minimum a decimal price, a status, a time the market locks and a timestamp. For a sportsbook add the probability behind each price and the margin, so you can apply your own margin and limits instead of trusting the displayed number.

How do I check the margin in an odds API response?

Convert each price to an implied probability by dividing 1 by the price, then add them up for the market. A two way market that sums to 1.06 carries about 6 percent margin. RealTimeBets shows the 0.06 margin in every market.

How often does the response update?

Prices recompute every second and the stream pushes once a second. Each market carries updated_at, so your code can discard a price that is older than your tolerance before it reaches the bet slip.

Can I test the response before I pay?

Yes. A sandbox key gives 1 sport, a 60 second delay, 1,000 requests and 7 days, and the meta object shows how many you have used. A production key needs a licence record and an active plan.

Ready to run it? See the live betting API, read the API docs, then take the sandbox key and make the one request above.