Guide for AI app builders

    Live sports data in your Lovable, Base44, Bolt or Cursor app in 5 minutes

    Schedules, live scores, box scores and player stats for NFL, NBA, NHL, UFC and college football, ready for whatever your AI builder makes.

    Four steps

    1. Try the sample key

    Use vc_test_sandbox_sample first. It returns a frozen sample day for every endpoint, so your screens fill with real games while you build.

    2. Paste the prompt

    Copy the prompt below into Lovable, Base44, Bolt or Cursor. It tells the builder where the data is and how to call it safely.

    3. Add your live key as a secret

    Choose a plan, create a live key in the developer dashboard, and save it in your builder's secrets as VICTORIOUS_API_KEY.

    4. Ship

    Your app now shows live scores, box scores and player stats. Check your usage any time in the dashboard.

    The prompt

    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.

    Code example

    JavaScript
    // Backend function (keeps your key secret)
    export default async function handler() {
      const res = await fetch("https://kbnnabvbtcwwsytkjyhc.supabase.co/functions/v1/api/v1/nba/scores/live", {
        headers: { Authorization: `Bearer ${process.env.VICTORIOUS_API_KEY}` },
      });
      if (res.status === 429) {
        return { retryAfter: Number(res.headers.get("Retry-After")) };
      }
      const { data } = await res.json();
      return data.map((g) => ({
        id: g.id,
        home: `${g.home.abbr} ${g.home.score ?? ""}`,
        away: `${g.away.abbr} ${g.away.score ?? ""}`,
        clock: g.clock,
      }));
    }

    Every endpoint and response is in the API docs. Using an AI assistant? Connect the MCP server.