# SofaScore Scraper - $0.80 / 1000 Results (`scrapeunblocker/sofascore-scraper`) Actor

SofaScore for 26 sports: a day's fixtures and results or live scores, search, and full match, team, player and competition records with stats, lineups, incidents, odds, shot maps, squads and standings. $0.80 per 1000 results, $1.00 per 1000 detail records.

- **URL**: https://apify.com/scrapeunblocker/sofascore-scraper.md
- **Developed by:** [Scrapeunblocker](https://apify.com/scrapeunblocker) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## SofaScore Scraper

Scrape **SofaScore** (sofascore.com) as clean JSON, for all **26 sports** the site covers: football (soccer), basketball, tennis, ice hockey, American football, baseball, handball, volleyball, cricket, rugby, esports, MMA, darts, snooker and more. Get a sport's **fixtures and results for any day** or the **live scores** right now, **search** teams, players, competitions and matches, or pull full records: a **match** with statistics, lineups and player ratings, incidents, odds, momentum, shot map with xG and commentary; a **team** with its matches, squad and transfers; a **player** with season statistics, matches and transfers; a **competition** with standings, fixtures and top players.

### Features

- **Matches of a day or live now** - a sport's matches for any date in your time zone, biggest competitions first, up to 500 per run, filtered by status (in progress, not started, finished), by country or by competition.
- **Search** - teams, players, competitions, matches, managers, referees and venues by name, optionally within one sport.
- **Match details** - pick any of 13 sections: statistics, lineups (formation, every player with rating and match stats), incidents (goals, cards, substitutions, VAR), head-to-head with the last 10 meetings, odds, momentum, pre-game form, fan votes, managers, best players, shot map (xG, xGOT, coordinates), commentary and highlights.
- **Teams, players and competitions** - by id, sofascore.com link or plain name ("Real Madrid", "Lionel Messi", "Premier League"); tennis players and MMA fighters are teams on SofaScore and work the same way.
- **Many inputs per run** - search terms, matches, teams, players or competitions in parallel. The same entity given twice (as a name and as an id) is stored and billed once.

### Use cases

- **Sports data feeds and apps** - fixtures, live scores and results for any sport and day.
- **Betting and prediction models** - odds, head-to-head, form, xG and shot maps per match.
- **Scouting and analytics** - player season statistics, ratings, market values and transfer histories.
- **League tables and media** - standings, rounds, top scorers and top teams for any competition and season.

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `mode` | string | `events` | `events` (matches of a day or live), `search`, `match`, `team`, `player` or `tournament` (competition). |
| `sport` | string | `any` | One of the 26 sports. Events mode lists this sport (`any` lists football); search and names are looked up within it. |
| `date` | string | `today` | Events: `YYYY-MM-DD`, `today`, `yesterday` or `tomorrow`. |
| `timezone` | string | `UTC` | Events: IANA name (`Europe/London`) or offset (`+02:00`) the day is read in. |
| `live` | boolean | `false` | Events: the matches in progress right now. |
| `status` | string | `all` | Events: `all`, `live`, `upcoming` or `finished`. |
| `country` | string | - | Events: one country or category (`England`, `ES`, `ATP`). |
| `tournament` | string | - | Events: one competition (id, link or name). |
| `maxResults` | integer | `100` | Events: matches to return (1-500). |
| `queries` | array | `real madrid` | Search terms (search mode). |
| `searchType` | string | `all` | Search: `all`, `teams`, `players`, `tournaments`, `matches`, `managers`, `referees`, `venues`. |
| `maxResultsPerQuery` | integer | `20` | Search: results per search term (1-100). |
| `page` | integer | `1` | Search: results page to start from (1-5). |
| `matches` | array | - | Match mode: match ids or sofascore.com match links. |
| `matchInclude` | array | statistics, lineups, incidents | Match mode sections. |
| `teams` | array | - | Team mode: team ids, links or names. |
| `teamInclude` | array | last_matches, next_matches | `last_matches`, `next_matches`, `squad`, `tournaments`, `transfers`. |
| `players` | array | - | Player mode: player ids, links or names. |
| `playerInclude` | array | season_stats, last_matches | `seasons`, `season_stats`, `last_matches`, `transfers`, `attributes`, `national_team`. |
| `statsTournament` | string | - | Player mode: competition id for `season_stats` (default the player's first). |
| `tournaments` | array | - | Competition mode: competition ids, links or names. |
| `tournamentInclude` | array | standings, last_matches, next_matches | `seasons`, `standings`, `rounds`, `last_matches`, `next_matches`, `top_players`, `top_teams`. |
| `season` | string | - | Competition and player modes: season id or year (`26/27`, `2026`); default the current one. |
| `concurrency` | integer | `3` | Inputs processed at the same time (1-5). |

#### Example inputs

Yesterday's finished tennis matches in Vilnius time:

```json
{
  "mode": "events",
  "sport": "tennis",
  "date": "yesterday",
  "timezone": "Europe/Vilnius",
  "status": "finished"
}
```

Two players with their season statistics and transfers:

```json
{
  "mode": "player",
  "players": ["Lionel Messi", "https://www.sofascore.com/football/player/kylian-mbappe/826643"],
  "playerInclude": ["season_stats", "last_matches", "transfers"]
}
```

### Output

Every item has `mode` (where it came from), `type` (match, team, player, tournament, manager, referee or venue) and `input` (the search term, the day list or the input you gave). A match from a day list or a search:

```json
{
  "mode": "events",
  "type": "match",
  "input": "tennis 2026-11-01",
  "position": 1,
  "name": "Jiri Lehečka - Valentin Vacherot",
  "id": 17377323,
  "url": "https://www.sofascore.com/tennis/match/jiri-lehecka-valentin-vacherot/mDnbsRUbc#id:17377323",
  "sport": "tennis",
  "tournament": {"id": 2406, "name": "Basel", "category": {"id": 3, "name": "ATP"}, "stage": "Basel, Switzerland"},
  "season": {"id": 82440, "name": "ATP Basel, Switzerland Men Singles 2026", "year": "2026"},
  "roundName": "Final",
  "status": {"code": 100, "type": "finished", "description": "Ended"},
  "startTime": "2026-11-01T14:30:00Z",
  "homeTeam": {"id": 254742, "name": "Jiri Lehečka", "country": "Czechia"},
  "awayTeam": {"id": 158912, "name": "Valentin Vacherot", "country": "Monaco"},
  "homeScore": {"current": 1, "period1": 6, "period2": 3, "period3": 3},
  "awayScore": {"current": 2, "period1": 2, "period2": 6, "period3": 6},
  "winner": "away",
  "groundType": "Hardcourt indoor"
}
```

A detail record keeps the entity under its own key (`event`, `team`, `player` or `tournament`) with one key per section asked for (lists shortened):

```json
{
  "mode": "match",
  "type": "match",
  "input": "16363904",
  "id": 16363904,
  "name": "Chelsea - Manchester United",
  "sport": "football",
  "url": "https://www.sofascore.com/football/match/chelsea-manchester-united/mcYb#id:16363904",
  "event": {"id": 16363904, "homeScore": {"current": 2}, "awayScore": {"current": 0}, "venue": {"name": "Stamford Bridge"}, "referee": {"name": "Peter Bankes"}},
  "statistics": [{"period": "ALL", "groups": [{"name": "Match overview", "items": [{"key": "ballPossession", "home": "58%", "away": "42%", "homeValue": 58, "awayValue": 42}, {"key": "expectedGoals", "home": "3.00", "away": "1.24"}]}]}],
  "lineups": {"confirmed": true, "home": {"formation": "4-2-3-1", "players": [{"name": "Mike Penders", "position": "G", "rating": 7.3, "statistics": {"totalPass": 25}}]}},
  "incidents": [{"type": "goal", "class": "regular", "time": 50, "isHome": true, "homeScore": 1, "awayScore": 0, "player": {"name": "Morgan Rogers"}}]
}
```

Sections SofaScore does not have for an entity (statistics before kick-off, next matches of a retired player) are named in `unavailable`. The `LISTS` and `SEARCHES` records in the key-value store keep each list's day, filters and whether more results are available.

### Pricing

Pay per result, two prices:

- **$0.80 per 1000 results** - a match from a day or live list, or a search hit.
- **$1.00 per 1000 detail records** - a match, team, player or competition with all the sections you picked (one record, whatever the number of sections).

An input that returns nothing (an unknown team, an empty day, a call SofaScore refused) is listed in the `ERRORS` record of the key-value store and is not charged. A run stops at the maximum total charge you set.

### Notes

- Motorsport and cycling are raced in stages, not matches: SofaScore has no day list of them (search and detail modes still work).
- A name is resolved with SofaScore's own search (the best match); give an id or a link when a name is ambiguous, or set `sport`.
- Times are UTC (`startTime`) with the Unix timestamp next to them (`startTimestamp`).

Powered by [ScrapeUnblocker](https://www.scrapeunblocker.com).

# Actor input Schema

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

Matches: one sport's matches on a day (or live now), biggest competitions first - one item per match. Search: one item per search hit. Match / Team / Player / Competition: one item per entry in the matching list below, with the sections you pick.

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

Matches mode: the sport to list (Any sport lists football). Search and team / player / competition names: look only within this sport, e.g. Tennis for 'Jannik Sinner'. Ids and links do not need it.

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

Matches mode: YYYY-MM-DD, or today / yesterday / tomorrow (in the time zone below).

## `timezone` (type: `string`):

Matches mode: the time zone the day is read in - an IANA name (Europe/London, America/New_York) or a UTC offset (+02:00).

## `live` (type: `boolean`):

Matches mode: the matches in progress right now instead of a day's list (Day is then ignored).

## `status` (type: `string`):

Matches mode: keep only matches in this state.

## `country` (type: `string`):

Matches mode, optional: only one country or category - a name, slug or ISO code (England, Spain, US; ATP or WTA for tennis). Not together with Competition.

## `tournament` (type: `string`):

Matches mode, optional: only one competition - its id, a sofascore.com competition link or a name (Premier League, NBA, Champions League).

## `maxResults` (type: `integer`):

Matches mode: how many matches to return (1-500), biggest competitions first.

## `queries` (type: `array`):

Search mode: names to look for - a team, player, competition, match ('arsenal chelsea'), manager, referee or venue. One per line.

## `searchType` (type: `string`):

Search mode: keep to one kind of result.

## `maxResultsPerQuery` (type: `integer`):

Search mode: results for each search term (1-100, SofaScore serves 20 a page).

## `page` (type: `integer`):

Search mode: the results page to start from (1-5).

## `matches` (type: `array`):

Match mode: match ids (16363904, from the Matches or Search mode) or sofascore.com match links. A link without '#id:' names the pairing - the match in progress, else the next, else the latest is used. One per line.

## `matchInclude` (type: `array`):

Match mode: sections to add to each match. Select all of them for the full match; none for just the match card.

## `teams` (type: `array`):

Team mode: team ids (2829), sofascore.com team links or names (best search match; set Sport for non-football names). Tennis players, MMA fighters and other individual competitors are teams on SofaScore. One per line.

## `teamInclude` (type: `array`):

Team mode: sections to add to each team.

## `players` (type: `array`):

Player mode: player ids (12994), sofascore.com player links or names (best search match). One per line.

## `playerInclude` (type: `array`):

Player mode: sections to add to each player.

## `statsTournament` (type: `string`):

Player mode, optional: the competition id for Season statistics (see the Competitions and seasons section). Default the player's first listed competition.

## `tournaments` (type: `array`):

Competition mode: competition ids (17), sofascore.com competition links (a link's '#id:' picks the season) or names (Premier League, NBA). One per line.

## `tournamentInclude` (type: `array`):

Competition mode: sections to add to each competition.

## `season` (type: `string`):

Competition and Player modes, optional: a season id or its year as SofaScore writes it (26/27, 2026). Default the current season (for a player: the latest).

## `concurrency` (type: `integer`):

How many search terms or detail inputs to process at the same time (1-5).

## Actor input object example

```json
{
  "mode": "events",
  "sport": "any",
  "date": "today",
  "timezone": "UTC",
  "live": false,
  "status": "all",
  "maxResults": 100,
  "queries": [
    "real madrid"
  ],
  "searchType": "all",
  "maxResultsPerQuery": 20,
  "page": 1,
  "matches": [
    "16363904"
  ],
  "matchInclude": [
    "statistics",
    "lineups",
    "incidents"
  ],
  "teams": [
    "Real Madrid"
  ],
  "teamInclude": [
    "last_matches",
    "next_matches"
  ],
  "players": [
    "Lionel Messi"
  ],
  "playerInclude": [
    "season_stats",
    "last_matches"
  ],
  "tournaments": [
    "Premier League"
  ],
  "tournamentInclude": [
    "standings",
    "last_matches",
    "next_matches"
  ],
  "concurrency": 3
}
```

# Actor output Schema

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

One item per match of a list, per search hit, or per requested match, team, player or competition with its sections; the mode field says which

## `lists` (type: `string`):

Matches mode: the day, time zone, filters and whether more matches are available

## `searches` (type: `string`):

Search mode: per search term, results collected and whether more are available

## `errors` (type: `string`):

Inputs that returned nothing (unknown team, empty list, refused call), with the reason (not billed)

# 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 = {
    "queries": [
        "real madrid"
    ],
    "matches": [
        "16363904"
    ],
    "teams": [
        "Real Madrid"
    ],
    "players": [
        "Lionel Messi"
    ],
    "tournaments": [
        "Premier League"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeunblocker/sofascore-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 = {
    "queries": ["real madrid"],
    "matches": ["16363904"],
    "teams": ["Real Madrid"],
    "players": ["Lionel Messi"],
    "tournaments": ["Premier League"],
}

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

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

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

```

## CLI example

```bash
echo '{
  "queries": [
    "real madrid"
  ],
  "matches": [
    "16363904"
  ],
  "teams": [
    "Real Madrid"
  ],
  "players": [
    "Lionel Messi"
  ],
  "tournaments": [
    "Premier League"
  ]
}' |
apify call scrapeunblocker/sofascore-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapeunblocker/sofascore-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

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