TheSportsDB API

Build a multi-sport calendar and results tracker

Pull team info, events, live scores, and league tables across 50+ sports. Build a personal sports hub that tracks all the teams you follow.

Free basic access. Full access via Patreon ($3/mo).

TheSportsDBdocs →

How it works with Loony

Describe it.
Deploy it.
Query it.

Managed database.

Your TheSportsDB data lives in its own Postgres instance. Zero config. Data accumulates over time.

Scheduled syncs.

Cron jobs run on Loony infra. Every minute on free. Your data stays fresh without you thinking about it.

REST + MCP endpoints.

Query from your agent, your dashboard, or connect BI tools directly. Full OpenAPI spec included.

TerminalSchema
$ "Pull upcoming events and recent results for my favorite teams across Premier League, NBA, and F1 from TheSportsDB. Build a unified calendar view."

 Schema validated
 Database provisioned
 Scripts deployed
 Schedules registered

Done.

# Your data is now at:
REST  /data/v1/thesportsdb/query
MCP   /mcp/v1/thesportsdb/mcp
SQL   psql $DATABASE_URL

What you get

TheSportsDB covers dozens of sports but the API is stateless. Loony stores results over time, so you can build 'My teams this season' views across football, basketball, F1, and cricket — all in one database.

mv_my_teams
  date          date        -- event date
  sport         text        -- Football | Basketball | F1
  team          text        -- team/driver name
  opponent      text        -- vs who
  result        text        -- W 3-1 | L 98-102 | P3
  league        text        -- competition name

Even better together

Use TheSportsDB for the broad multi-sport view, then enrich specific leagues with Football-Data or balldontlie for deeper stats.

Stop gluing. Start shipping.

Describe your data. Deploy. Query. Done.

API Library →