An official Go SDK is coming soon. In the meantime, this guide shows how to use TheRundown API directly with the standard
net/http package and gorilla/websocket for WebSocket connections.Installation
No external dependencies are required for REST calls. For WebSocket support:Configuration
Helper Function
Getting Sports
Getting Events with Odds
Stats: sample first, then one completed event
The fixed sample is a zero-data-point schema check. For production stats, request one known completed event with a smallstats_ids filter, cache the response, and fetch again only when your product needs a correction. Do not turn this into a per-team polling loop.
GET /stats?sport_id=3 before filtering. Production routes depend on effective stats access. See Stats Access.
WebSocket Streaming
Error Handling with Retry
Next Steps
Getting Live Odds
Detailed guide on fetching odds
WebSocket Streaming
Real-time data streaming guide
Authentication
All authentication methods
Rate Limits
Rate limit details and best practices