# Sofascore Live Events Scraper (`maximedupre/sofascore-live-events-scraper`) Actor

Scrape Sofascore live events, scheduled fixtures, scores, teams, players, managers, and supported match URLs. Export sports data to datasets, API, schedules, and integrations. No Sofascore login or API key needed.

- **URL**: https://apify.com/maximedupre/sofascore-live-events-scraper.md
- **Developed by:** [Maxime Dupré](https://apify.com/maximedupre) (community)
- **Categories:** Sports
- **Stats:** 5 total users, 1 monthly users, 91.7% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $22.60 / 1,000 scraped results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

### ⚽ Sofascore live events scraper for sports data

Sofascore Live Events Scraper collects public sports data from [Sofascore](https://www.sofascore.com/). Use it to scrape live matches, scheduled fixtures, final scores, teams, tournaments, player search results, manager search results, and supported Sofascore URLs without a Sofascore login or API key.

Start with **Scheduled events by date**, keep **Football**, and use the prefilled date for a quick first dataset. Switch to **Live events** when you need currently active matches. Use **Sofascore URLs** when you already have match, team, player, or tournament pages to enrich.

This Actor is useful for sports dashboards, match monitoring, content planning, fantasy research, team lookup workflows, and data pipelines that need structured Sofascore data instead of manual copy-paste from scoreboard pages.

### ✅ What this Actor does

- Scrapes live Sofascore events for 13 supported sports.
- Scrapes scheduled events and finished results for a selected date.
- Accepts Sofascore match, team, player, and tournament URLs in URL mode.
- Searches public Sofascore teams, players, and managers by name.
- Saves one dataset item per successfully collected event or entity.
- Returns teams, scores, tournament context, status, source URLs, source IDs, and scrape metadata.
- Can add available match details such as venue, referee, and incidents when **Include match details** is enabled.
- Works with Apify exports, API access, schedules, webhooks, and integrations.

The Actor focuses on public Sofascore pages and public scoreboard data. It does not log in, place bets, stream real-time websocket updates, book anything, or guarantee that live scores remain unchanged after a run finishes.

### 📦 Data you can export

Each output item is a scraped Sofascore event, entity, or supported page result. Event rows can include:

- `rowType`, `sourceMode`, `sourceTarget`, `sourceUrl`, and `sourceRank`
- `id`, `customId`, `name`, `slug`, and `sport`
- `tournament`, `season`, and `round`
- `eventStatus`, `startTimestamp`, and `startDate`
- `homeTeam`, `awayTeam`, `homeScore`, `awayScore`, and `winnerCode`
- `hasGlobalHighlights`, `hasXg`, `hasEventPlayerStatistics`, and `hasEventPlayerHeatMap`
- `venue`, `referee`, and `incidents` when match details are requested and available
- `scrapedAt` and `status`

Team, player, and manager search rows use the same trace fields and add identity fields such as name, slug, country, team, position, jersey number, user count, and image URL when Sofascore exposes them.

You can export results as JSON, CSV, Excel, XML, RSS, or HTML, or read them from the Apify API.

### 🚀 How to run it

1. Open the Input tab.
2. Choose a **Mode**.
3. For live or scheduled events, choose a **Sport**.
4. For scheduled events, enter a **Date** in `YYYY-MM-DD` format.
5. For search modes, enter a team, player, or manager name in **Search query**.
6. For URL mode, paste one or more Sofascore URLs.
7. Set **Maximum results** to control dataset size and cost.
8. Run the Actor and export the dataset from Apify.

For a quick first run, use:

```json
{
	"mode": "scheduledEvents",
	"sport": "football",
	"date": "2026-06-03",
	"maxItems": 25,
	"includeMatchDetails": false
}
````

### 🎯 Input modes

#### ⚽ Live events

Collect currently live events for one sport. This works well for live scoreboards, monitoring, or checking the current public Sofascore feed.

#### 📅 Scheduled events by date

Collect events for a specific date. This is the easiest first run and works well for fixtures, finished results, or date-based sports reports. The date must use `YYYY-MM-DD`.

#### 🔗 Sofascore URLs

Paste supported Sofascore match, team, player, or tournament URLs. This is useful when your workflow already has page URLs and you want structured output with source identifiers.

#### 🔎 Team, player, and manager search

Search Sofascore by name and return matching public entities. Use this to resolve canonical IDs, slugs, teams, countries, and profile data before building downstream sports workflows.

### 🏆 Supported sports

The event modes support:

- Football
- Basketball
- Tennis
- Ice hockey
- Baseball
- Handball
- Volleyball
- Snooker
- Rugby
- MMA
- Cricket
- American football
- Esports

### 💳 Pricing

This Actor uses pay-per-event pricing. You are charged for each saved Sofascore event, team, player, manager, tournament, or supported page result. Runs with no saved results do not create paid result charges.

Keep **Maximum results** low for test runs. Increase it once the output matches the sport, date, search query, or URL list you need.

### ⚠️ Limits and caveats

- The Actor collects public Sofascore data only.
- Live event rows reflect the source at run time; live scores can change after the run.
- Some optional fields can be `null` when Sofascore does not show that value.
- Match details use extra source requests and can be unavailable for some events.
- Unsupported, malformed, private, removed, or unresolved URLs are reported in the run log and are not saved as placeholder rows.
- This Actor is independent and is not affiliated with, endorsed by, or sponsored by Sofascore.

### ❓ FAQ

#### 🔐 Do I need a Sofascore login or API key?

No. The Actor collects public Sofascore data and does not ask for Sofascore cookies, login details, or an API key.

#### 📡 Is this a real-time streaming feed?

No. Each run collects the public data available at that moment and saves it to the dataset. Use Apify schedules if you need repeated checks.

#### 🧾 Can I scrape a specific match page?

Yes. Use **Sofascore URLs** mode and paste supported match URLs. Enable **Include match details** when you want available venue, referee, and incident data.

#### 🧮 Why are some fields empty?

Sofascore does not show every field for every sport, tournament, team, player, or match. Empty source values are returned as `null` or omitted rather than filled with guessed data.

### 📝 Changelog

- 0.0: Initial release.

### 🆘 Support

For issues, questions, or feature requests, [file a ticket](https://console.apify.com/actors/maximedupre~sofascore-live-events-scraper/issues) and I'll fix or implement it in less than 24h 🫡

### 🔗 Other actors

- [Award Flights Scraper ↗](https://apify.com/maximedupre/award-flights-scraper) - Scrape award flight availability with miles, seats, cabins, and segments.
- [YouTube Channel Statistics Scraper ↗](https://apify.com/maximedupre/youtube-channel-statistics-scraper) - Export public YouTube channel stats without a YouTube API key.
- [YouTube Channel Search Scraper ↗](https://apify.com/maximedupre/youtube-channel-search-scraper) - Find public YouTube channels from search keywords.
- [Website URL Crawler ↗](https://apify.com/maximedupre/website-url-crawler) - Crawl websites and export rendered link maps.
- [Product Hunt Scraper ↗](https://apify.com/maximedupre/product-hunt-scraper) - Collect Product Hunt launches, ranks, media, and startup lead data.

**Made with ❤️ by Maxime Dupré**

# Actor input Schema

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

Choose the Sofascore job for this run.

## `sport` (type: `string`):

Sport to use for live events or scheduled events.

## `date` (type: `string`):

Date for scheduled events and finished results. Use YYYY-MM-DD, for example 2026-06-03.

## `query` (type: `string`):

Team, player, or manager name to search on Sofascore.

## `startUrls` (type: `array`):

Add supported Sofascore match, team, player, or tournament URLs when using URL mode.

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

Maximum Sofascore results to save for the selected run.

## `includeMatchDetails` (type: `boolean`):

Add available venue, referee, incident, and match-detail data for event results.

## Actor input object example

```json
{
  "mode": "scheduledEvents",
  "sport": "football",
  "date": "2026-06-03",
  "query": "Messi",
  "startUrls": [
    "https://www.sofascore.com/football/match/nigeria-poland/dUbsKVb#id:16048005"
  ],
  "maxItems": 25,
  "includeMatchDetails": false
}
```

# Actor output Schema

## `results` (type: `string`):

Open the dataset with scraped Sofascore sports data.

# 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 = {
    "mode": "scheduledEvents",
    "sport": "football",
    "date": "2026-06-03",
    "query": "Messi",
    "startUrls": [
        "https://www.sofascore.com/football/match/nigeria-poland/dUbsKVb#id:16048005"
    ],
    "maxItems": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("maximedupre/sofascore-live-events-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 = {
    "mode": "scheduledEvents",
    "sport": "football",
    "date": "2026-06-03",
    "query": "Messi",
    "startUrls": ["https://www.sofascore.com/football/match/nigeria-poland/dUbsKVb#id:16048005"],
    "maxItems": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("maximedupre/sofascore-live-events-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 '{
  "mode": "scheduledEvents",
  "sport": "football",
  "date": "2026-06-03",
  "query": "Messi",
  "startUrls": [
    "https://www.sofascore.com/football/match/nigeria-poland/dUbsKVb#id:16048005"
  ],
  "maxItems": 25
}' |
apify call maximedupre/sofascore-live-events-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Sofascore Live Events Scraper",
        "description": "Scrape Sofascore live events, scheduled fixtures, scores, teams, players, managers, and supported match URLs. Export sports data to datasets, API, schedules, and integrations. No Sofascore login or API key needed.",
        "version": "0.0",
        "x-build-id": "NIjkJa9I53BesSf5w"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/maximedupre~sofascore-live-events-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-maximedupre-sofascore-live-events-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/maximedupre~sofascore-live-events-scraper/runs": {
            "post": {
                "operationId": "runs-sync-maximedupre-sofascore-live-events-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/maximedupre~sofascore-live-events-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-maximedupre-sofascore-live-events-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "mode",
                    "sport",
                    "maxItems",
                    "includeMatchDetails"
                ],
                "properties": {
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "liveEvents",
                            "scheduledEvents",
                            "eventUrls",
                            "teamSearch",
                            "playerSearch",
                            "managerSearch"
                        ],
                        "type": "string",
                        "description": "Choose the Sofascore job for this run.",
                        "default": "scheduledEvents"
                    },
                    "sport": {
                        "title": "Sport",
                        "enum": [
                            "football",
                            "basketball",
                            "tennis",
                            "ice-hockey",
                            "baseball",
                            "handball",
                            "volleyball",
                            "snooker",
                            "rugby",
                            "mma",
                            "cricket",
                            "american-football",
                            "esports"
                        ],
                        "type": "string",
                        "description": "Sport to use for live events or scheduled events.",
                        "default": "football"
                    },
                    "date": {
                        "title": "Date",
                        "type": "string",
                        "description": "Date for scheduled events and finished results. Use YYYY-MM-DD, for example 2026-06-03.",
                        "default": "2026-06-03"
                    },
                    "query": {
                        "title": "Search query",
                        "type": "string",
                        "description": "Team, player, or manager name to search on Sofascore."
                    },
                    "startUrls": {
                        "title": "Sofascore URLs",
                        "maxItems": 100,
                        "type": "array",
                        "description": "Add supported Sofascore match, team, player, or tournament URLs when using URL mode.",
                        "items": {
                            "type": "string",
                            "minLength": 1
                        }
                    },
                    "maxItems": {
                        "title": "Maximum results",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Maximum Sofascore results to save for the selected run.",
                        "default": 25
                    },
                    "includeMatchDetails": {
                        "title": "Include match details",
                        "type": "boolean",
                        "description": "Add available venue, referee, incident, and match-detail data for event results.",
                        "default": false
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
