Docs
Endpoints
Six endpoints, one base URL, JSON in every response.
Base URL
https://api.margus.app/v1Reference
Six endpoints
| Endpoint | Returns |
|---|---|
GET /players/{id} | A player |
GET /players/{id}/games | A player’s game log |
GET /teams/{id} | A team |
GET /teams/{id}/roster | A team’s roster |
GET /leagues/{league}/standings | A league table |
GET /leagues/{league}/leaders | A league’s stat leaders |
Parameters
Two things to pass
id
a permanent player or team ID, like p34945 or t212.
league
a league key, like nba or epl. Coverage lists them all.
Stability
Expect changes before launch
Paths and field names can change until launch. Build against them, but pin nothing yet.