Early accessThe API isn’t public yet. Request a key

Docs

Endpoints

Six endpoints, one base URL, JSON in every response.

Base URL

Base URL
https://api.margus.app/v1

Reference

Six endpoints

EndpointReturns
GET /players/{id}A player
GET /players/{id}/gamesA player’s game log
GET /teams/{id}A team
GET /teams/{id}/rosterA team’s roster
GET /leagues/{league}/standingsA league table
GET /leagues/{league}/leadersA 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.