# OpenLigaDB Football Scraper - Matches, Results & Teams (No Key) (`ninhothedev/openligadb-scraper`) Actor

$0.5/1K 🔥 Fast OpenLigaDB football scraper! Matches & results for Bundesliga & more — teams, scores, goals & stadium. No key. JSON, CSV, Excel or API in seconds. Pull matches for fan apps, analytics & fantasy ⚡

- **URL**: https://apify.com/ninhothedev/openligadb-scraper.md
- **Developed by:** [ninhothedev](https://apify.com/ninhothedev) (community)
- **Categories:** Developer tools, News
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## OpenLigaDB Football Scraper ⚽ — Matches, Results & Teams (No API Key)

Scrape **football matches, results, goals and teams** from [OpenLigaDB](https://www.openligadb.de/) — the community-run open sports database. Get fixtures, final scores, goal scorers, matchday, stadium, city and team crests for the **Bundesliga, 2. Bundesliga, 3. Liga, DFB-Pokal** and many more leagues. **No API key. No login. Datacenter-proxy friendly.**

Perfect for football data feeds, fan apps, betting/analytics dashboards and fantasy leagues.

***

### ✨ Features

- **No key, no auth** — runs on the free public OpenLigaDB API.
- **Datacenter proxy friendly** — clean JSON, no browser needed, cheap to run.
- **Full match records** — fixtures + final results + goal scorers in one row.
- **Many leagues & seasons** — just pass `shortcut/season` (e.g. `bl1/2024`).
- **Every field nullable** — never crashes on partial upstream data.
- Structured, flat output ready for Google Sheets, Excel, JSON, or CSV export.

### 💶 Pricing

Roughly **$0.5 per 1,000 matches** — one of the cheapest sports feeds on Apify. A full Bundesliga season (~306 matches) costs pennies.

### 🔧 Input

| Field | Type | Description |
|-------|------|-------------|
| `mode` | select | `matches` — fetch all matches for the given leagues. |
| `leagues` | array | List of `shortcut/season` strings, e.g. `["bl1/2024", "bl2/2024"]`. |
| `maxItems` | integer | Max matches in total (1–5000, default 500). |

#### Example input

```json
{
  "mode": "matches",
  "leagues": ["bl1/2024", "bl2/2024"],
  "maxItems": 500
}
```

### 🏆 Supported leagues

Any league shortcut supported by OpenLigaDB works. Common ones:

| Shortcut | League |
|----------|--------|
| `bl1` | 1. Bundesliga |
| `bl2` | 2. Bundesliga |
| `bl3` | 3. Liga |
| `dfb` | DFB-Pokal |
| `uefaem` / `em` | UEFA Euro |

> **Note:** The full, always-current list of available leagues and seasons is at
> [`https://api.openligadb.de/getavailableleagues`](https://api.openligadb.de/getavailableleagues).
> Season is the start year (e.g. `2024` = 2024/25).

### 📤 Output

Each item is one match:

```json
{
  "match_id": 72214,
  "league": "1. Fußball-Bundesliga 2024/2025",
  "season": 2024,
  "matchday": "1. Spieltag",
  "date": "2024-08-23T20:30:00Z",
  "finished": true,
  "team1": "Borussia Mönchengladbach",
  "team2": "Bayer 04 Leverkusen",
  "team1_icon": "https://i.imgur.com/KSIk0Eu.png",
  "team2_icon": "https://.../B04_Standard_Logo_RGB.png",
  "score1": 2,
  "score2": 3,
  "stadium": "Borussia Park",
  "city": "Mönchengladbach",
  "viewers": null,
  "goals": ["12' Granit Xhaka", "38' F. Wirtz", "59' N. Elvedi", "85' T. Kleindienst", "90' F. Wirtz"],
  "source": "openligadb",
  "scraped_at": "2026-07-20T22:12:49Z"
}
```

The final score prefers the `Endergebnis` (final result) entry and falls back to the last available result.

### 🎯 Use cases

- **Football data** feeds and historical archives
- **Fan apps** — fixtures, live-ish results and squads
- **Betting / analytics** models and dashboards
- **Fantasy** football scoring and leaderboards

### 🔗 Related actors by ninhothedev

- [ESPN Scores Scraper](https://apify.com/ninhothedev/espn-scores-scraper)
- [ESPN Teams Scraper](https://apify.com/ninhothedev/espn-teams-scraper)
- [Sports Scraper](https://apify.com/ninhothedev/sports-scraper)
- [ESPN News Scraper](https://apify.com/ninhothedev/espn-news-scraper)

### 🏷️ Keywords

openligadb, bundesliga scraper, football api, soccer scraper, football results, match data, fixtures, sports data, german football, fantasy football, betting data, 2. bundesliga, dfb pokal, goal scorers

***

*Data © OpenLigaDB contributors, provided under their open terms. This actor is an independent tool and is not affiliated with OpenLigaDB, the DFL or the DFB.*

# Actor input Schema

## `mode` (type: `string`):

What to scrape. Currently 'matches' fetches all matches (fixtures, results, goals, teams) for each league/season you provide.

## `leagues` (type: `array`):

One or more leagues as 'shortcut/season', e.g. 'bl1/2024' for Bundesliga 2024/25, 'bl2/2024' for 2. Bundesliga. Find valid shortcuts at https://api.openligadb.de/getavailableleagues (bl1, bl2, bl3, dfb, uefaem, em, and many more).

## `maxItems` (type: `integer`):

Maximum number of matches to return in total across all leagues (1-5000).

## Actor input object example

```json
{
  "mode": "matches",
  "leagues": [
    "bl1/2024",
    "bl2/2024"
  ],
  "maxItems": 500
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "leagues": [
        "bl1/2024",
        "bl2/2024"
    ],
    "maxItems": 500
};

// Run the Actor and wait for it to finish
const run = await client.actor("ninhothedev/openligadb-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "leagues": [
        "bl1/2024",
        "bl2/2024",
    ],
    "maxItems": 500,
}

# Run the Actor and wait for it to finish
run = client.actor("ninhothedev/openligadb-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "leagues": [
    "bl1/2024",
    "bl2/2024"
  ],
  "maxItems": 500
}' |
apify call ninhothedev/openligadb-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=ninhothedev/openligadb-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/JhLieW5dcG0KErYcL/builds/AAvARQhuX4ofiVt5O/openapi.json
