API docs

    Sports data API reference

    Read-only JSON over HTTPS. Every response is { data, meta }; errors are { error: { code, message } }. Times are ISO 8601 UTC. IDs and field names are ours and stay stable.

    Base URL
    https://kbnnabvbtcwwsytkjyhc.supabase.co/functions/v1/api/v1

    Auth header
    Authorization: Bearer vc_live_… (or vc_test_…)

    Sports
    nfl, nba, nhl, mma (UFC), ncaaf

    meta
    request_id, plan, remaining_month, remaining_minute, cache_seconds and freshness (when scores and schedules last updated).

    Sample data

    Try any endpoint with the sample key vc_test_sandbox_sample. It returns a frozen sample day of real games (Sunday, November 29, 2026 for NFL, NBA and NHL; the most recent results day for UFC and college football). It is not live, is not updated, and is for testing only.

    curl
    curl https://kbnnabvbtcwwsytkjyhc.supabase.co/functions/v1/api/v1/nba/schedule \
      -H "Authorization: Bearer vc_test_sandbox_sample"
    JavaScript
    const res = await fetch("https://kbnnabvbtcwwsytkjyhc.supabase.co/functions/v1/api/v1/nba/schedule", {
      headers: { Authorization: "Bearer vc_test_sandbox_sample" },
    });
    const { data, meta } = await res.json();
    console.log(data, meta.remaining_month);

    Ready for live data? Choose a plan.

    Endpoints

    GET/sports

    Sports we carry and each one's current season.

    Example (real data, lists shortened): GET /sports

    response
    {
      "data": [
        {
          "code": "nfl",
          "name": "Football",
          "current_season": {
            "id": 1,
            "name": "NFL 2026",
            "ends_on": "2027-02-15",
            "starts_on": "2026-09-01"
          }
        },
        {
          "code": "nba",
          "name": "Basketball",
          "current_season": {
            "id": 2,
            "name": "NBA 2026-27",
            "ends_on": "2027-04-12",
            "starts_on": "2026-10-20"
          }
        }
      ],
      "meta": {
        "request_id": "5f0c2a7e-3b1d-4c55-9a7e-2f1b8d0c9e11",
        "plan": "single",
        "remaining_month": 499812,
        "remaining_minute": 299,
        "cache_seconds": 600,
        "freshness": {
          "scores_updated_at": "2026-11-30T05:42:10Z",
          "schedule_updated_at": "2026-11-30T12:00:04Z"
        }
      }
    }

    GET/{sport}/teams

    All teams (fighters for UFC) in a sport.

    Example (real data, lists shortened): GET /nba/teams

    response
    {
      "data": [
        {
          "id": 1182,
          "abbr": "ATL",
          "name": "Atlanta Hawks",
          "color_primary": "#E03A3E",
          "color_secondary": "#C1D32F"
        },
        {
          "id": 1067,
          "abbr": "BOS",
          "name": "Boston Celtics",
          "color_primary": "#007A33",
          "color_secondary": "#BA9653"
        }
      ],
      "meta": {
        "request_id": "5f0c2a7e-3b1d-4c55-9a7e-2f1b8d0c9e11",
        "plan": "single",
        "remaining_month": 499812,
        "remaining_minute": 299,
        "cache_seconds": 600,
        "freshness": {
          "scores_updated_at": "2026-11-30T05:42:10Z",
          "schedule_updated_at": "2026-11-30T12:00:04Z"
        }
      }
    }

    GET/{sport}/teams/{id}

    One team.

    Example (real data, lists shortened): GET /nba/teams/1066

    response
    {
      "data": {
        "id": 1066,
        "abbr": "LAL",
        "name": "Los Angeles Lakers",
        "color_primary": "#552583",
        "color_secondary": "#FDB927"
      },
      "meta": {
        "request_id": "5f0c2a7e-3b1d-4c55-9a7e-2f1b8d0c9e11",
        "plan": "single",
        "remaining_month": 499812,
        "remaining_minute": 299,
        "cache_seconds": 600,
        "freshness": {
          "scores_updated_at": "2026-11-30T05:42:10Z",
          "schedule_updated_at": "2026-11-30T12:00:04Z"
        }
      }
    }

    GET/{sport}/players

    Players, sorted by name.

    • team: team id
    • active: true or false
    • limit: up to 500 (default 100)
    • offset

    Example (real data, lists shortened): GET /nba/players

    response
    {
      "data": [
        {
          "id": 200003195,
          "name": "Mike Conley",
          "team": {
            "id": 1067,
            "abbr": "BOS",
            "name": "Boston Celtics",
            "color_primary": "#007A33",
            "color_secondary": "#BA9653"
          },
          "active": true,
          "jersey": null,
          "position": "G",
          "short_name": "M. Conley"
        },
        {
          "id": 200003213,
          "name": "Al Horford",
          "team": {
            "id": 1177,
            "abbr": "GSW",
            "name": "Golden State Warriors",
            "color_primary": "#1D428A",
            "color_secondary": "#FFC72C"
          },
          "active": true,
          "jersey": null,
          "position": "C",
          "short_name": "A. Horford"
        }
      ],
      "meta": {
        "request_id": "5f0c2a7e-3b1d-4c55-9a7e-2f1b8d0c9e11",
        "plan": "single",
        "remaining_month": 499812,
        "remaining_minute": 299,
        "cache_seconds": 600,
        "freshness": {
          "scores_updated_at": "2026-11-30T05:42:10Z",
          "schedule_updated_at": "2026-11-30T12:00:04Z"
        }
      }
    }

    GET/{sport}/players/{id}

    One player's profile.

    Example (real data, lists shortened): GET /nba/players/200003195

    response
    {
      "data": {
        "id": 200003195,
        "name": "Mike Conley",
        "team": {
          "id": 1067,
          "abbr": "BOS",
          "name": "Boston Celtics",
          "color_primary": "#007A33",
          "color_secondary": "#BA9653"
        },
        "active": true,
        "jersey": null,
        "position": "G",
        "short_name": "M. Conley"
      },
      "meta": {
        "request_id": "5f0c2a7e-3b1d-4c55-9a7e-2f1b8d0c9e11",
        "plan": "single",
        "remaining_month": 499812,
        "remaining_minute": 299,
        "cache_seconds": 600,
        "freshness": {
          "scores_updated_at": "2026-11-30T05:42:10Z",
          "schedule_updated_at": "2026-11-30T12:00:04Z"
        }
      }
    }

    GET/{sport}/schedule

    Games for today by default (US Eastern day).

    • date=YYYY-MM-DD
    • or from= & to= (max 31 days)
    • or season= & week=

    Example (real data, lists shortened): GET /nba/schedule?date=2026-11-29

    response
    {
      "data": [
        {
          "id": 329467,
          "away": {
            "id": 1197,
            "abbr": "MIA",
            "name": "Miami Heat",
            "score": 124,
            "color_primary": "#98002E",
            "color_secondary": "#F9A01B"
          },
          "home": {
            "id": 1183,
            "abbr": "CLE",
            "name": "Cleveland Cavaliers",
            "score": 119,
            "color_primary": "#860038",
            "color_secondary": "#FDBB30"
          },
          "sport": "nba",
          "status": "final",
          "season_id": 2,
          "start_time": "2026-11-29T20:30:00Z",
          "season_type": "Regular Season",
          "score_by_period": {
            "away": [
              36,
              20
            ],
            "home": [
              29,
              29
            ],
            "labels": [
              "1",
              "2"
            ]
          }
        },
        {
          "id": 329464,
          "away": {
            "id": 1066,
            "abbr": "LAL",
            "name": "Los Angeles Lakers",
            "score": 103,
            "color_primary": "#552583",
            "color_secondary": "#FDB927"
          },
          "home": {
            "id": 1206,
            "abbr": "MEM",
            "name": "Memphis Grizzlies",
            "score": 95,
            "color_primary": "#5D76A9",
            "color_secondary": "#12173F"
          },
          "sport": "nba",
          "status": "final",
          "season_id": 2,
          "start_time": "2026-11-29T21:00:00Z",
          "season_type": "Regular Season",
          "score_by_period": {
            "away": [
              33,
              25
            ],
            "home": [
              16,
              24
            ],
            "labels": [
              "1",
              "2"
            ]
          }
        }
      ],
      "meta": {
        "request_id": "5f0c2a7e-3b1d-4c55-9a7e-2f1b8d0c9e11",
        "plan": "single",
        "remaining_month": 499812,
        "remaining_minute": 299,
        "cache_seconds": 600,
        "freshness": {
          "scores_updated_at": "2026-11-30T05:42:10Z",
          "schedule_updated_at": "2026-11-30T12:00:04Z"
        }
      }
    }

    GET/{sport}/games/{id}

    One game: status, score by period, clock.

    Example (real data, lists shortened): GET /nba/games/329464

    response
    {
      "data": {
        "id": 329464,
        "away": {
          "id": 1066,
          "abbr": "LAL",
          "name": "Los Angeles Lakers",
          "score": 103,
          "color_primary": "#552583",
          "color_secondary": "#FDB927"
        },
        "home": {
          "id": 1206,
          "abbr": "MEM",
          "name": "Memphis Grizzlies",
          "score": 95,
          "color_primary": "#5D76A9",
          "color_secondary": "#12173F"
        },
        "sport": "nba",
        "status": "final",
        "season_id": 2,
        "start_time": "2026-11-29T21:00:00Z",
        "season_type": "Regular Season",
        "score_by_period": {
          "away": [
            33,
            25
          ],
          "home": [
            16,
            24
          ],
          "labels": [
            "1",
            "2"
          ]
        }
      },
      "meta": {
        "request_id": "5f0c2a7e-3b1d-4c55-9a7e-2f1b8d0c9e11",
        "plan": "single",
        "remaining_month": 499812,
        "remaining_minute": 299,
        "cache_seconds": 15,
        "freshness": {
          "scores_updated_at": "2026-11-30T05:42:10Z",
          "schedule_updated_at": "2026-11-30T12:00:04Z"
        }
      }
    }

    GET/{sport}/scores/live

    Games in progress right now.

    Example (real data, lists shortened): GET /nba/scores/live

    response
    {
      "data": [
        {
          "id": 329467,
          "away": {
            "id": 1197,
            "abbr": "MIA",
            "name": "Miami Heat",
            "score": 124,
            "color_primary": "#98002E",
            "color_secondary": "#F9A01B"
          },
          "home": {
            "id": 1183,
            "abbr": "CLE",
            "name": "Cleveland Cavaliers",
            "score": 119,
            "color_primary": "#860038",
            "color_secondary": "#FDBB30"
          },
          "sport": "nba",
          "status": "final",
          "season_id": 2,
          "start_time": "2026-11-29T20:30:00Z",
          "season_type": "Regular Season",
          "score_by_period": {
            "away": [
              36,
              20
            ],
            "home": [
              29,
              29
            ],
            "labels": [
              "1",
              "2"
            ]
          }
        },
        {
          "id": 329464,
          "away": {
            "id": 1066,
            "abbr": "LAL",
            "name": "Los Angeles Lakers",
            "score": 103,
            "color_primary": "#552583",
            "color_secondary": "#FDB927"
          },
          "home": {
            "id": 1206,
            "abbr": "MEM",
            "name": "Memphis Grizzlies",
            "score": 95,
            "color_primary": "#5D76A9",
            "color_secondary": "#12173F"
          },
          "sport": "nba",
          "status": "final",
          "season_id": 2,
          "start_time": "2026-11-29T21:00:00Z",
          "season_type": "Regular Season",
          "score_by_period": {
            "away": [
              33,
              25
            ],
            "home": [
              16,
              24
            ],
            "labels": [
              "1",
              "2"
            ]
          }
        }
      ],
      "meta": {
        "request_id": "5f0c2a7e-3b1d-4c55-9a7e-2f1b8d0c9e11",
        "plan": "single",
        "remaining_month": 499812,
        "remaining_minute": 299,
        "cache_seconds": 15,
        "freshness": {
          "scores_updated_at": "2026-11-30T05:42:10Z",
          "schedule_updated_at": "2026-11-30T12:00:04Z"
        }
      }
    }

    GET/{sport}/games/{id}/boxscore

    The game plus every player's current stat line.

    Example (real data, lists shortened): GET /nba/games/329464/boxscore

    response
    {
      "data": {
        "id": 329464,
        "away": {
          "id": 1066,
          "abbr": "LAL",
          "name": "Los Angeles Lakers",
          "score": 103,
          "color_primary": "#552583",
          "color_secondary": "#FDB927"
        },
        "home": {
          "id": 1206,
          "abbr": "MEM",
          "name": "Memphis Grizzlies",
          "score": 95,
          "color_primary": "#5D76A9",
          "color_secondary": "#12173F"
        },
        "sport": "nba",
        "status": "final",
        "players": [
          {
            "name": "Luka Doncic",
            "stats": {
              "pf": 2,
              "ast": 6,
              "blk": 2,
              "fga": 27,
              "fgm": 13,
              "fta": 6,
              "ftm": 6,
              "min": 36,
              "pts": 38,
              "reb": 7,
              "stl": 1,
              "tov": 4,
              "tpa": 12,
              "tpm": 6,
              "plus_minus": 14
            },
            "team_id": 1066,
            "position": "G",
            "player_id": 203945274
          },
          {
            "name": "Austin Reaves",
            "stats": {
              "pf": 3,
              "ast": 6,
              "blk": 0,
              "fga": 13,
              "fgm": 5,
              "fta": 16,
              "ftm": 14,
              "min": 37,
              "pts": 27,
              "reb": 8,
              "stl": 1,
              "tov": 3,
              "tpa": 6,
              "tpm": 3,
              "plus_minus": 10
            },
            "team_id": 1066,
            "position": "G",
            "player_id": 204066457
          }
        ],
        "season_id": 2,
        "start_time": "2026-11-29T21:00:00Z",
        "season_type": "Regular Season",
        "score_by_period": {
          "away": [
            33,
            25
          ],
          "home": [
            16,
            24
          ],
          "labels": [
            "1",
            "2"
          ]
        }
      },
      "meta": {
        "request_id": "5f0c2a7e-3b1d-4c55-9a7e-2f1b8d0c9e11",
        "plan": "single",
        "remaining_month": 499812,
        "remaining_minute": 299,
        "cache_seconds": 15,
        "freshness": {
          "scores_updated_at": "2026-11-30T05:42:10Z",
          "schedule_updated_at": "2026-11-30T12:00:04Z"
        }
      }
    }

    GET/{sport}/players/{id}/gamelog

    A player's stat line in every game, newest first.

    • season: season id (default current)

    Example (real data, lists shortened): GET /nba/players/200003195/gamelog

    response
    {
      "data": {
        "games": [
          {
            "stats": {
              "pf": 1,
              "ast": 0,
              "blk": 0,
              "fga": 2,
              "fgm": 2,
              "fta": 0,
              "ftm": 0,
              "min": 7,
              "pts": 6,
              "reb": 1,
              "stl": 1,
              "tov": 0,
              "tpa": 2,
              "tpm": 2,
              "plus_minus": -2
            },
            "status": "final",
            "game_id": 329465,
            "team_id": 1067,
            "opponent": {
              "id": 1190,
              "abbr": "SAS",
              "name": "San Antonio Spurs",
              "color_primary": "#000000",
              "color_secondary": "#C4CED4"
            },
            "start_time": "2026-11-29T21:00:00Z"
          },
          {
            "stats": {
              "pf": 2,
              "ast": 4,
              "blk": 0,
              "fga": 5,
              "fgm": 2,
              "fta": 0,
              "ftm": 0,
              "min": 16,
              "pts": 6,
              "reb": 2,
              "stl": 1,
              "tov": 0,
              "tpa": 2,
              "tpm": 2,
              "plus_minus": 8
            },
            "status": "final",
            "game_id": 329425,
            "team_id": 1067,
            "opponent": {
              "id": 1177,
              "abbr": "GSW",
              "name": "Golden State Warriors",
              "color_primary": "#1D428A",
              "color_secondary": "#FFC72C"
            },
            "start_time": "2026-11-23T01:30:00Z"
          }
        ],
        "player": {
          "id": 200003195,
          "name": "Mike Conley",
          "team": {
            "id": 1067,
            "abbr": "BOS",
            "name": "Boston Celtics",
            "color_primary": "#007A33",
            "color_secondary": "#BA9653"
          },
          "active": true,
          "jersey": null,
          "position": "G",
          "short_name": "M. Conley"
        },
        "season_id": 2
      },
      "meta": {
        "request_id": "5f0c2a7e-3b1d-4c55-9a7e-2f1b8d0c9e11",
        "plan": "single",
        "remaining_month": 499812,
        "remaining_minute": 299,
        "cache_seconds": 120,
        "freshness": {
          "scores_updated_at": "2026-11-30T05:42:10Z",
          "schedule_updated_at": "2026-11-30T12:00:04Z"
        }
      }
    }

    GET/{sport}/standings

    Computed from our own final regular-season results.

    • season: season id (default current)

    Example (real data, lists shortened): GET /nba/standings

    response
    {
      "data": {
        "teams": [
          {
            "team": {
              "id": 1190,
              "abbr": "SAS",
              "name": "San Antonio Spurs",
              "color_primary": "#000000",
              "color_secondary": "#C4CED4"
            },
            "wins": 17,
            "losses": 4,
            "win_pct": 0.81,
            "points_for": 2453,
            "games_played": 21,
            "points_against": 2215
          },
          {
            "team": {
              "id": 1066,
              "abbr": "LAL",
              "name": "Los Angeles Lakers",
              "color_primary": "#552583",
              "color_secondary": "#FDB927"
            },
            "wins": 16,
            "losses": 4,
            "win_pct": 0.8,
            "points_for": 2348,
            "games_played": 20,
            "points_against": 2223
          }
        ],
        "source": "Computed from final regular-season results",
        "season_id": 2
      },
      "meta": {
        "request_id": "5f0c2a7e-3b1d-4c55-9a7e-2f1b8d0c9e11",
        "plan": "single",
        "remaining_month": 499812,
        "remaining_minute": 299,
        "cache_seconds": 300,
        "freshness": {
          "scores_updated_at": "2026-11-30T05:42:10Z",
          "schedule_updated_at": "2026-11-30T12:00:04Z"
        }
      }
    }

    GET/{sport}/stats/leaders

    Season leaders for one stat. List the stat keys with /{sport}/stats/keys.

    • stat: required, e.g. pts
    • season
    • limit: up to 100 (default 25)

    Example (real data, lists shortened): GET /nba/stats/leaders?stat=pts

    response
    {
      "data": {
        "stat": "pts",
        "label": "Points",
        "leaders": [
          {
            "rank": 1,
            "games": 6,
            "total": 216,
            "player": {
              "id": 205104157,
              "name": "Victor Wembanyama",
              "team": {
                "id": 1190,
                "abbr": "SAS",
                "name": "San Antonio Spurs",
                "color_primary": "#000000",
                "color_secondary": "#C4CED4"
              },
              "active": true,
              "jersey": null,
              "position": "F",
              "short_name": "V. Wembanyama"
            },
            "per_game": 36
          },
          {
            "rank": 2,
            "games": 6,
            "total": 187,
            "player": {
              "id": 203945274,
              "name": "Luka Doncic",
              "team": {
                "id": 1066,
                "abbr": "LAL",
                "name": "Los Angeles Lakers",
                "color_primary": "#552583",
                "color_secondary": "#FDB927"
              },
              "active": true,
              "jersey": null,
              "position": "G",
              "short_name": "L. Doncic"
            },
            "per_game": 31.17
          }
        ],
        "season_id": 2
      },
      "meta": {
        "request_id": "5f0c2a7e-3b1d-4c55-9a7e-2f1b8d0c9e11",
        "plan": "single",
        "remaining_month": 499812,
        "remaining_minute": 299,
        "cache_seconds": 300,
        "freshness": {
          "scores_updated_at": "2026-11-30T05:42:10Z",
          "schedule_updated_at": "2026-11-30T12:00:04Z"
        }
      }
    }

    Errors and limits

    StatuscodeMeaning
    401missing_key, invalid_key, key_revokedNo key, an unknown key, or a revoked key.
    403sport_not_in_planYour plan doesn't include that sport.
    403plan_inactiveNo active plan (or payment more than 7 days overdue).
    404not_found, unknown_sport, not_in_sampleNo such record or endpoint. Sample keys list the paths they cover.
    429rate_limited, monthly_quota_exceededToo many requests. Wait for the Retry-After seconds.

    Limits are per plan: single sport 300 requests a minute and 500,000 a month per sport; all-sports bundle 1,000 a minute and 3,000,000 a month. Sample keys: 60 a minute.

    Use it in Lovable, Base44 or Bolt

    Paste this prompt into your AI app builder. Keep your live key in the builder's secrets, never in the page code. The full walkthrough is in the AI app builder guide.

    prompt
    Add live sports data to my app using the Victorious sports data API.
    - Base URL: https://kbnnabvbtcwwsytkjyhc.supabase.co/functions/v1/api/v1
    - Send the header Authorization: Bearer <key>. Store the key as a secret named VICTORIOUS_API_KEY and call the API only from the backend, never from browser code.
    - While testing, use the sample key vc_test_sandbox_sample (frozen sample day).
    - Show tonight's NBA games from GET /nba/schedule, with team names, start times and scores.
    - Refresh live scores from GET /nba/scores/live every 30 seconds while a game is in progress.
    - Clicking a game opens GET /nba/games/{id}/boxscore and lists each player's stats.
    - Responses are { data, meta }; errors are { error: { code, message } }. On 429, wait for the Retry-After seconds.
    fetch
    const res = await fetch("https://kbnnabvbtcwwsytkjyhc.supabase.co/functions/v1/api/v1/nfl/schedule?date=2026-11-29", {
      headers: { Authorization: "Bearer vc_test_sandbox_sample" },
    });
    const { data, meta } = await res.json();
    console.log(data, meta.remaining_month);

    Connect Victorious sports data to Claude, Cursor or any MCP client

    The same data is available as a remote MCP server, using the same keys and plan limits. Tools: get_schedule, get_live_scores, get_boxscore, get_player, get_player_gamelog, get_standings, get_leaders.

    MCP config
    {
      "mcpServers": {
        "victorious-sports": {
          "url": "https://kbnnabvbtcwwsytkjyhc.supabase.co/functions/v1/api/v1/mcp",
          "headers": { "Authorization": "Bearer vc_live_YOUR_KEY" }
        }
      }
    }
    MCP URL
    https://kbnnabvbtcwwsytkjyhc.supabase.co/functions/v1/api/v1/mcp