# OpenLigaDB API

> Returns football leagues, season matches, league tables, current matchday and single match details with goals from OpenLigaDB.

Category: Sports & Gaming. Region: DE. 11 endpoints at `https://api.hoshime.com/v1/openligadb/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/openligadb
## GET /v1/openligadb/leagues

The leagues and cups in OpenLigaDB with their shortcut and season.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `id` (string), `name` (string), `season` (string), `shortcut` (string)

```bash
curl "https://api.hoshime.com/v1/openligadb/leagues" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/openligadb/matches

The matches of a league season with their matchday, teams, final score and whether they are finished.

Scope: `social:read` · Units: 1 · Cached: 5 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `league` | string | yes | League shortcut, such as bl1 for the Bundesliga or bl2 for the 2. Bundesliga. (e.g. bl1) |
| `season` | string | yes | Season start year, such as 2024 for 2024/25. (e.g. 2024) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `away` (string), `awayGoals` (integer (int64)), `finished` (boolean), `home` (string), `homeGoals` (integer (int64)), `id` (string), `matchday` (integer (int64)), `startsAt` (string)

```bash
curl "https://api.hoshime.com/v1/openligadb/matches?league=bl1&season=2024" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/openligadb/table

The league table of a season: points, results and goal difference of every team.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `league` | string | yes | League shortcut, such as bl1 for the Bundesliga or bl2 for the 2. Bundesliga. (e.g. bl1) |
| `season` | string | yes | Season start year, such as 2024 for 2024/25. (e.g. 2024) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `drawn` (integer (int64)), `goalDiff` (integer (int64)), `goalsAgainst` (integer (int64)), `goalsFor` (integer (int64)), `lost` (integer (int64)), `played` (integer (int64)), `points` (integer (int64)), `rank` (integer (int64)), `team` (string), `teamId` (string), `won` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/openligadb/table?league=bl1&season=2024" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/openligadb/currentMatchday

The matchday that a league is playing now, or the next one to be played.

Scope: `social:read` · Units: 1 · Cached: 10 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `league` | string | yes | League shortcut, such as bl1 for the Bundesliga or bl2 for the 2. Bundesliga. (e.g. bl1) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `name` (string), `number` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/openligadb/currentMatchday?league=bl1" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/openligadb/match

One match by its OpenLigaDB id: teams, kickoff, half-time and final score, venue and every goal.

Scope: `social:read` · Units: 1 · Cached: 1 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `matchId` | string | yes | OpenLigaDB match id, such as 72214. The matches endpoints list them. (e.g. 72214) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `away` (string), `city` (string), `finished` (boolean), `fullTime` (Score), `fullTime.away` (integer (int64)), `fullTime.home` (integer (int64)), `goals` (Goal[]), `goals[].minute` (string), `goals[].ownGoal` (boolean), `goals[].penalty` (boolean), `goals[].score` (Score), `goals[].scorer` (string), `goals[].team` (string), `halfTime` (Score), `halfTime.away` (integer (int64)), `halfTime.home` (integer (int64)), `home` (string), `id` (string), `league` (string), `matchday` (integer (int64)), `season` (string), `startsAt` (string), `venue` (string)

```bash
curl "https://api.hoshime.com/v1/openligadb/match?matchId=72214" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/openligadb/matchdayMatches

The matches of one matchday of a league season, in kickoff order.

Scope: `social:read` · Units: 1 · Cached: 5 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `league` | string | yes | League shortcut, such as bl1 for the Bundesliga or bl2 for the 2. Bundesliga. (e.g. bl1) |
| `season` | string | yes | Season start year, such as 2024 for 2024/25. (e.g. 2024) |
| `matchday` | integer | yes | Matchday number, from 1 to 100. (e.g. 1) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `away` (string), `awayGoals` (integer (int64)), `finished` (boolean), `home` (string), `homeGoals` (integer (int64)), `id` (string), `matchday` (integer (int64)), `startsAt` (string)

```bash
curl "https://api.hoshime.com/v1/openligadb/matchdayMatches?league=bl1&season=2024&matchday=1" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/openligadb/matchdays

The matchdays of a league season with their number and name.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `league` | string | yes | League shortcut, such as bl1 for the Bundesliga or bl2 for the 2. Bundesliga. (e.g. bl1) |
| `season` | string | yes | Season start year, such as 2024 for 2024/25. (e.g. 2024) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `id` (string), `name` (string), `number` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/openligadb/matchdays?league=bl1&season=2024" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/openligadb/teams

The teams of a league season with their short name, abbreviation and crest.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `league` | string | yes | League shortcut, such as bl1 for the Bundesliga or bl2 for the 2. Bundesliga. (e.g. bl1) |
| `season` | string | yes | Season start year, such as 2024 for 2024/25. (e.g. 2024) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `code` (string), `icon` (string), `id` (string), `name` (string), `shortName` (string)

```bash
curl "https://api.hoshime.com/v1/openligadb/teams?league=bl1&season=2024" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/openligadb/goalGetters

The top goal scorers of a league season, most goals first.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `league` | string | yes | League shortcut, such as bl1 for the Bundesliga or bl2 for the 2. Bundesliga. (e.g. bl1) |
| `season` | string | yes | Season start year, such as 2024 for 2024/25. (e.g. 2024) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `goals` (integer (int64)), `id` (string), `name` (string)

```bash
curl "https://api.hoshime.com/v1/openligadb/goalGetters?league=bl1&season=2024" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/openligadb/teamMatches

The latest finished matches of one team, or its next matches when future is true, across seasons.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `teamId` | string | yes | OpenLigaDB team id, such as 40 for Bayern Munich. The teams endpoint lists them. (e.g. 40) |
| `amount` | integer | no | Number of matches, from 1 to 50. Defaults to 5. (default 5; e.g. 5) |
| `future` | boolean | no | true for the upcoming matches, false for the latest ones. Defaults to false. (default false; e.g. false) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `away` (string), `awayGoals` (integer (int64)), `finished` (boolean), `home` (string), `homeGoals` (integer (int64)), `id` (string), `matchday` (integer (int64)), `startsAt` (string)

```bash
curl "https://api.hoshime.com/v1/openligadb/teamMatches?teamId=40&amount=5&future=false" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/openligadb/sports

The sports OpenLigaDB covers, such as football, ice hockey and handball.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `id` (string), `name` (string)

```bash
curl "https://api.hoshime.com/v1/openligadb/sports" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
