OpenLigaDB API
Free, community-run football data (strong on German leagues).
What it does
OpenLigaDB is a free, community-maintained sports-results database, strongest for German football (Bundesliga 1/2/3, DFB-Pokal) but also carrying other leagues and competitions. It provides match data, tables, matchday groupings, teams and goals — and anyone can contribute results.
Base URL
Authentication
None. /getmatchdata/{league}/{season} (e.g. /getmatchdata/bl1/2025), /getbltable/{league}/{season}, /getavailableleagues, /getcurrentgroup/{league}, /getmatchdata/{league}/{season}/{matchday}.
Code examples
curl -s "https://api.openligadb.de/getmatchdata/bl1/2025/10" curl -s "https://api.openligadb.de/getbltable/bl1/2025"
import requests
r = requests.get("https://api.openligadb.de/getmatchdata/bl1/2025/1", timeout=10)
for m in r.json():
r_ = m["matchResults"][-1] if m["matchResults"] else {}
print(m["team1"]["teamName"], r_.get("pointsTeam1", "-"),
"-", r_.get("pointsTeam2", "-"), m["team2"]["teamName"])Rate limits & quotas
No key and no strict rate limit — it is a volunteer service, so cache and be gentle. Data completeness and timeliness depend on contributors: German pro football is reliably up to date; other leagues vary. Responses are plain JSON arrays (or objects), and it can also emit XML.
Key response fields
| [].matchDateTime / matchDateTimeUTC | Kick-off time |
| [].team1.teamName / team2.teamName | The two sides |
| [].matchResults[].pointsTeam1 / pointsTeam2 / resultTypeID | Half-time and full-time scores |
| [].goals[].scoreTeam1 / matchMinute / goalGetterName | Goal timeline |
| [].matchIsFinished | Boolean |
| (table) [].teamName / points / won / draw / lost / goalDiff | Standings rows |
Common errors
| (empty array) | Wrong league shortcut or a season/matchday with no data — check /getavailableleagues for valid shortcuts. |
| 404 | Malformed path (order is league, then season, then optional matchday). |
| (lag on niche leagues) | Non-German competitions may be incomplete or stale — verify coverage first. |
When to use it (and alternatives)
The best free pick for Bundesliga and German football — tables, fixtures, goal timelines, no key. For broad international coverage use football-data.org or API-Football; for multi-sport, TheSportsDB.
FAQ
What are the league shortcuts?
bl1, bl2, bl3 for the three Bundesliga tiers, dfb for the cup, and others listed in /getavailableleagues. The season is the starting year (2025 for 2025/26).
Is live score data available?
Results are updated by contributors and an automated feed for German pro football, usually within minutes of full time — close to live but not guaranteed second-by-second.
Can I contribute or correct a result?
Yes — OpenLigaDB is crowd-sourced; you can register and submit or fix match data through the site.
New to APIs?
Short guides for working with this API — and any other.