Skip to content

VALUEODDSAPI / BUYER GUIDES

How do you keep an odds API integration in sync?

Choose the delivery mode from your product’s freshness and recovery needs. A reliable client handles snapshots, deltas, removals and reconnects explicitly.

Published by ValueOddsAPI · 22 November 2026

REST snapshot feeding a current-price store, with changes and stream updates and a resync path
Keep one current-price state and a deliberate path back to a fresh snapshot.

In 30 seconds

Which delivery mode fits your product?

A report refreshed occasionally, a live odds board and an alert engine do not need the same transport. Start with the user-visible freshness requirement, the number of subscriptions and the plan’s request or connection limits. ValueOddsAPI offers GET /v2/odds, GET /v2/odds/changes, WebSocket and server-sent events. The stream reference describes the push formats, while plan entitlements and GET /v2/me describe what your key permits.

Do not turn a transport choice into a latency promise. The source’s observation time, your queue, cache and rendering delay all contribute to the age the user sees. Measure that end to end in your own pilot.

What does each option require from your client?

Delivery modes and their operational obligations
ModeUseful whenClient responsibility
/v2/odds snapshotYou need a complete event book or periodic reconciliation.Paginate with next_cursor; replace or reconcile local state deliberately.
/v2/odds/changesYou need to poll only writes since your last cursor.Store the returned next_cursor, upsert repeat deliveries and handle removed rows.
WebSocket /v2/streamYou need a subscribed snapshot followed by pushed changes.Apply deltas in sequence; resume within the documented window or rebuild state.
SSE /v2/stream/sseA server-side HTTP event stream suits your infrastructure.Send the key in a header and use the last event ID on reconnect; a browser EventSource cannot set that auth header.

The changes and stream reference define these endpoints. Test against your own key and filters.

How should you model current prices?

Use price_id as the key for one bookmaker price. Keep event, market, line, outcome, bookmaker, status, price, changed_at, checked_at, fair and edge_pct with the row. The price-row reference states that the same ID appears in REST, stream and history. A change can update a price, status or mapping; do not assume only numeric odds change.

Show only open rows as available prices. A removed write is a tombstone, not a new offer. Keep a separate audit trail if your product needs history, but remove that row from the current view. For a value-signal feature, also require mapped identity, a current check and non-null fair and edge values. See the value-signal validation guide and the price-status guide for the full availability rule.

What happens when polling falls behind?

The changes endpoint delivers writes at least once in commit-safe order. Start with an ISO timestamp within its allowed window, then pass the returned next_cursor on every request, including an empty response. A cursor older than 24 hours is rejected: fetch a new /v2/odds snapshot and rebuild. Handle rate limiting through the documented 429 and Retry-After behavior instead of tight retry loops. The changes and errors sections specify those cases.

A REST snapshot cursor and a changes cursor serve different purposes. Do not assume they form an atomic handoff unless your integration has tested the handoff and reconciliation behavior. Periodic full snapshots are a useful check against gaps or incorrect local application of updates.

What happens when a stream disconnects?

The WebSocket stream sends a snapshot, then deltas with a sequence number. The documented resume request uses the last epoch and seq within five minutes. SSE uses the last event ID in Last-Event-ID on reconnect. If the server responds snapshot_required, rebuild the current state from a new snapshot; do not keep a stale board visible as live. A heartbeat tells you the connection is alive, not that every bookmaker has just changed price. See the stream protocol.

Test reconnects deliberately: interrupt the connection, resume within the window, then simulate a longer outage and verify the full rebuild. Confirm that a repeated message does not create duplicate rows or alerts and that a suspension removes an actionable price.

How do you size the plan and measure the pilot?

For polling, a single request every n seconds would be 3,600 ÷ n requests per hour before pagination, retries or additional filters. That is arithmetic for planning, not a measured workload. Compare your calculated peak with the current request allowance and the actual limits returned by /v2/me. For a full scheduler and 429 checklist, see how to budget odds API requests. A stream has a different constraint: simultaneous connections and subscription scope.

For the timestamp distinction and display gate, see how to measure odds API freshness. Instrument three pilot measures: age from checked_at to display, time to recover from a disconnect, and the proportion of sampled current rows that match a fresh snapshot. Segment results by pre-match and live, and report the sample size. These are measurements for the buyer to collect; no latency or accuracy figure is assumed here.

Frequently asked questions

Does a WebSocket remove the need for snapshots?

No. It starts with a snapshot, and an unresumable gap requires a new one. Periodic reconciliation can also catch client-state mistakes.

Can I order changes by changed_at?

Do not use the bookmaker-side changed_at as the change-feed cursor. The documented cursor follows server write order, which avoids skipping late commits.

What should happen when a price is removed?

Treat it as a tombstone and remove it from the current actionable view. Keep it only in a separate audit trail if needed.

Which transport is cheapest?

Estimate your own peak requests and concurrent connections, then compare them with the limits and licence on your key. Transport cost depends on your product shape.

Where should you go deeper?

For complete snapshot reads, see how to paginate the odds API. For production failure paths, see how to classify API errors. Both checks belong in a delivery pilot.

How do you test reconnect recovery?

Use the focused stream recovery guide to exercise epoch/sequence replay and a forced snapshot rebuild. Keep the measured recovery time alongside your delivery-mode decision.

ValueOddsAPI provides odds data, not betting advice. Betting involves risk of loss and is for adults (18+) only. If gambling stops being fun, contact your local support service, such as StopSpillet in Denmark.

Test the integration shape

Use the v2 reference to build a small client around your actual target markets. If you need to confirm a plan’s request volume, stream connections or licence, discuss your integration scope.