← Back to SportsGPT

SPORTSGPT API

A free API for sports questions — plug it into your own app, bot, or project.

The SportsGPT API answers sports questions (scores, standings, schedules, stats) the same way the SportsGPT chat does, but returns clean JSON you can use in your own product. Free tier, no email or card required to get started.

1. Get an API key

Generate a key instantly below. Save it somewhere safe — it's shown only once.

Copy this now — click to select, then copy. It won't be shown again. Free tier: 100 requests/day.

2. Make a request

Send a POST request with your key in the Authorization header:

curl -X POST https://sportsgpt-proxy.sportsgpt.workers.dev/api/v1/ask \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"question": "What was the latest Lakers score?"}'

JavaScript example:

const response = await fetch("https://sportsgpt-proxy.sportsgpt.workers.dev/api/v1/ask", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({ question: "Show me the Premier League table" })
});
const data = await response.json();
console.log(data.answer);

3. Response format

{
  "answer": "The Lakers' latest game...",
  "remaining_today": 99
}

On error, you'll get a JSON body with an error field and an appropriate HTTP status code instead.

Limits & rules

Free tier100 requests/day per API key
ScopeSports questions only — off-topic questions return a short refusal, not an error
Question lengthMax 2,000 characters
UptimeBest-effort, no guarantee (see Terms of Service)

Rules for using the API

Full terms: see Terms of Service. Data handling: see Privacy Policy.

Questions or need higher limits?

Reach out on X (Twitter): @sportgptcc.