LaxView API

Read-only REST API for accessing your LaxView data. API access must be enabled on your account by LaxView support before tokens can be created.

Authentication

All data endpoints require a bearer token in the Authorization header. Tokens are created in the LaxView app under API Keys once API access is enabled.

Authorization: Bearer lv_api_your_token_here
Tokens are scoped to a single tenant (team, league, or trainer). You can only access data belonging to that tenant.

Base URL

https://laxview.com/api/v1

Response format

List endpoints return:

{
  "data": [ ... ],
  "meta": {
    "tenant_id": "uuid",
    "tenant_kind": "team|league|trainer",
    "limit": 50,
    "has_more": false,
    "next_after": "optional-cursor-id"
  }
}

Error responses return { "error": "message" } with an appropriate HTTP status code.

Pagination

List endpoints support cursor pagination:

  • limit — max rows per page (default 50, max 100)
  • after — return rows after this record id

Endpoints

EndpointDescriptionAvailability
GET /seasonsSeason ids and namesTeam, League
GET /gamesGame ids. Optional season_id, event_id (league)Team, League
GET /teamsLeague team idsLeague
GET /eventsTournament/showcase event idsLeague
GET /rosterRoster with player ids. Requires season_idTeam, League, Trainer
GET /stats/teamGame-by-game or season team stats. Requires season_id or game_idTeam, League
GET /stats/playerGame-by-game or season player stats. Requires season_id or game_idTeam, League
GET /playsPlay-by-play for a game. Requires game_idTeam, League

Examples

List seasons

curl -H "Authorization: Bearer lv_api_your_token" \
  "https://laxview.com/api/v1/seasons"

Game-by-game player stats

curl -H "Authorization: Bearer lv_api_your_token" \
  "https://laxview.com/api/v1/stats/player?season_id=SEASON_UUID"

Play-by-play

curl -H "Authorization: Bearer lv_api_your_token" \
  "https://laxview.com/api/v1/plays?game_id=GAME_UUID&limit=100"

JavaScript fetch

const response = await fetch('https://laxview.com/api/v1/games?season_id=SEASON_UUID', {
  headers: {
    Authorization: 'Bearer lv_api_your_token',
  },
});
const { data, meta } = await response.json();

Error codes

  • 401 — Missing, invalid, or revoked token
  • 403 — API access not enabled, or resource outside tenant scope
  • 404 — Endpoint not available for account type, or resource not found
  • 400 — Missing required query parameter
  • 405 — Method not allowed (read-only API)
  • 500 — Server error

Rate limits

API usage is monitored per token. If you need higher throughput for an integration, contact ethan@lax-view.com.