Skip to main content
The Sportrix Data REST API gives you access to a sports fixture catalog, live score snapshots, and post-match results through a straightforward HTTP interface. Every response is JSON, and all paths described in this documentation are relative to the single base URL below.

Base URL

All REST API requests are made to:
https://api.sportrixdata.com/api
For example, GET /sports resolves to GET https://api.sportrixdata.com/api/sports.

Authentication

Include your API key in the X-API-Key header on every request:
curl https://api.sportrixdata.com/api/sports \
  -H "X-API-Key: sk_your_api_key_here"
A missing, unknown, disabled, or expired key returns 401 Unauthorized. The only endpoint that does not require authentication is GET /health.

Response Format

All responses are JSON. List endpoints return a pagination envelope. Single-resource endpoints return the object directly.

Dates and Times

All timestamps are ISO 8601 in UTC. For example:
2026-06-18T02:00:00Z
Query parameters that accept a datetime (start_after, start_before) use the same format.

Match Status Values

Catalog endpoints expose exactly three status values:
statusMeaning
NOT_STARTEDScheduled, not yet kicked off
STARTEDIn play (including half-time)
FINISHEDCompleted
Matches that the provider has marked suspended or postponed are never returned — they are filtered out of every catalog response.

Pagination

List endpoints (/leagues, /leagues/active, /matches, /matches/active) accept limit and offset query parameters and return a pagination envelope. See the Pagination guide for the full envelope schema and examples.

Errors

Errors use standard HTTP status codes with a JSON body:
{ "detail": "Missing required scope: live_scores" }
See the Errors reference for the full list of status codes.

Endpoint Quick Reference

EndpointScopeDescription
GET /healthnoneLiveness probe
GET /sportsfixturesList enabled sports
GET /leaguesfixturesList leagues for a sport
GET /leagues/activefixturesLeagues with live or upcoming matches
GET /matchesfixturesList matches for a league
GET /matches/activefixturesLive or upcoming matches for a league
GET /matches/{id}fixturesSingle match by id
GET /matches/{id}/livelive_scores or live_scores_statisticsLive score snapshot
GET /matches/{id}/resultfinal_scoresHalf-time and full-time snapshots