API Directory › ⚽ Sports › OpenLigaDB
No authHTTPSCORS

OpenLigaDB API

Free, community-run football data (strong on German leagues).

Category
Auth
No auth needed
HTTPS
Yes
CORS
Yes
Open OpenLigaDB docs ↗

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

https://api.openligadb.de

Authentication

None. /getmatchdata/{league}/{season} (e.g. /getmatchdata/bl1/2025), /getbltable/{league}/{season}, /getavailableleagues, /getcurrentgroup/{league}, /getmatchdata/{league}/{season}/{matchday}.

Code examples

curl
curl -s "https://api.openligadb.de/getmatchdata/bl1/2025/10"
curl -s "https://api.openligadb.de/getbltable/bl1/2025"
Python
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 / matchDateTimeUTCKick-off time
[].team1.teamName / team2.teamNameThe two sides
[].matchResults[].pointsTeam1 / pointsTeam2 / resultTypeIDHalf-time and full-time scores
[].goals[].scoreTeam1 / matchMinute / goalGetterNameGoal timeline
[].matchIsFinishedBoolean
(table) [].teamName / points / won / draw / lost / goalDiffStandings rows

Common errors

(empty array)Wrong league shortcut or a season/matchday with no data — check /getavailableleagues for valid shortcuts.
404Malformed 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.

🛠️ Handy LarzOS tools

Free tools to help you work with this API.

JSON Formatter

Related Sports APIs

← Back

More Sports APIs · All 196 APIs