PlatformDEMO DATA
BACKEND OFFLINE
← Site
Sync Controls
Manual sync triggers for all data pipelines. Each button runs one API call — no loops, no auto-refresh.
SECURE — API key stays server-side. These buttons call backend POST endpoints only. Key is never sent to or from the browser.
RECOMMENDED ORDER → Provider Check → Teams → Standings → Today's Games → Odds → Data Health
Provider Check
Ping API-Sports /status endpoint. Validates key, returns account info, request quota, and subscription details.
Sync Teams
Fetch all MLB teams for the configured season. Upserts name, abbreviation, city, stadium. One API call.
Sync Today's Games
Fetch today's MLB schedule (2026-06-24). Links home/away team IDs, stores game time, venue, and live scores if available.
Sync Results
Re-sync today's game scores and statuses from API-Sports, then auto-settle any pending predictions. Run after games finish to update final scores and trigger WIN/LOSS settlement.
Sync Standings
Fetch current MLB standings. Upserts wins, losses, PCT, GB, division rank. Also updates team league/division.
Sync Odds
Fetch moneyline, run line, and totals for today's games. Stored in market_snapshots for historical tracking.
Odds data availability depends on your API-Sports subscription plan.
Sync Bookmakers
Fetch the full API-Sports bookmaker catalog from /odds/bookmakers. Stores all available bookmaker IDs and names. Used to discover which bookmakers cover MLB markets.
Run Data Health Checks
Run all 7 data quality checks: teams freshness, games freshness, standings coverage, provider availability, sync success rate, raw vault growth, game results coverage.
Rate limit: Each sync uses 1 API call against your daily quota. The provider check uses 1 call (/status). Check your remaining quota on the Provider page before running bulk syncs. Odds data may not be available on all subscription plans.