Real-time prediction market data lets your application reflect breaking developments — not yesterday's consensus. Here's how to set up a reliable feed.
Prediction market APIs are generally poll-based: you request current data on a schedule. The Meridian Edge API is optimized for frequent polling — responses are cached server-side and return in under 200ms for most requests.
Pro-tier users get access to webhook delivery, which pushes updates when events change by more than a configurable threshold — eliminating the need to poll when nothing has changed.
The starter tier includes 100 calls/day. With 4 sports and polling every 15 minutes for 6 hours of active game windows, that's approximately 4 × (6 × 4) = 96 calls — just within the starter limit.
Starter (1,000 calls/day) supports continuous polling every 5 minutes across all sports for a full 24-hour day.
import requests, time
API_KEY = "me_live_your_key"
HDRS = {"X-API-Key": API_KEY}
# Only re-fetch if data is stale (use ETag or last-modified)
last_etag = None
def fetch_if_changed(sport="NBA"):
global last_etag
headers = dict(HDRS)
if last_etag:
headers["If-None-Match"] = last_etag
r = requests.get("https://meridianedge.io/api/v1/consensus",
headers=headers, params={"sport": sport})
if r.status_code == 304: # not modified
return None
last_etag = r.headers.get("ETag")
return r.json().get("events", [])Plans start at $29/mo. 1,000 calls/day. Key in 10 seconds.
View Plans →Need more? Starter ($29/mo) — 1,000 calls/day + divergence signals