# Sofascore Scraper | Live Scores, Fixtures & Standings (`genial_candlestand/sofascore-scraper`) Actor

Get Sofascore matches for 20 sports as flat rows: home and away team, score, period scores, status, start time, league and season. Fixtures and results of any date, live scores, season matches, league tables, optional venue, referee and match statistics (xG, possession). IDs or URLs, no login.

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

## Pricing

from $0.64 / 1,000 match or table rows

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/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 | Live Scores, Fixtures & Standings

![Sofascore Scraper | Live Scores, Fixtures & Standings](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/sofascore-com-sports-scores-and-stats-banner-4fd71c44.png)

Get Sofascore match data as flat rows: home and away team, final score and period scores, match status, start time, league, round and season for 20 sports. Switch modes to get live scores, the matches of a league season, league tables with points, wins and losses, or single matches with venue, referee and full-match statistics such as possession, expected goals (xG) and corner kicks.

### What does Sofascore Scraper do?

You pick a mode and the actor returns one row per match or one row per league-table position from Sofascore. A day schedule covers every country and league of the chosen sports, and the day is read in your timezone, so "today in New York" means exactly that. Competitions and matches can be given as Sofascore IDs or as sofascore.com URLs. It is built for sports analysts, bettors, fantasy and media sites, and developers who need scores, fixtures and tables without learning Sofascore's IDs and endpoints. No login or API key is needed.

### How to scrape Sofascore scores and fixtures

![How Sofascore Scraper works: Reads Sofascore's public JSON API via its mirror host sofascore1.com; Lists the day's categories per sport, then each category's matches; Pages season results or fixtures ](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/sofascore-com-sports-scores-and-stats-how-4968a28d.png)

1. Open the actor in Apify Console and choose **What to get**: matches on a date, live matches now, league season matches, league standings or specific matches.
2. For a date schedule or live scores, pick the **Sports** (football, tennis, basketball, ice hockey and 16 more) and, for a date, the **Date**, **Days** and **Timezone**.
3. For season matches or standings, add **Tournaments**: an ID such as `17` (Premier League) or a Sofascore tournament URL. Optionally set the **Season**, e.g. `25/26`.
4. For single matches, add **Matches**: match IDs or Sofascore match URLs.
5. Optionally switch on **Include match details** (venue, referee) and **Include match statistics**, and set **Max rows**.
6. Click **Start** and download the rows as JSON, CSV or Excel, or read them through the API.

### How much does it cost to scrape Sofascore?

Price per event by Apify plan:

| Event | Free | Bronze | Silver | Gold and above |
|---|---|---|---|---|
| Match or table row | $0.75 per 1,000 | $0.713 per 1,000 | $0.675 per 1,000 | $0.638 per 1,000 |
| Match statistics | $1.00 per 1,000 | $0.95 per 1,000 | $0.90 per 1,000 | $0.85 per 1,000 |
| Actor start | $0.00005 | $0.00005 | $0.00005 | $0.00005 |

A test run with the API example input below returned 30 rows in 7 s.

One paid `result` event is one row in the dataset: one match or one league-table position. Match statistics are an add-on: one `match-statistics` event per match row that actually received statistics. Venue and referee details are not charged extra. Matches for which Sofascore has no statistics are not charged the add-on, and a run that finds nothing produces no `result` events.

| Scenario | Events | Cost on the Free plan |
|---|---|---|
| Default run: 100 football matches of today | 100 `result` + start | about $0.075 |
| Premier League table (20 positions) | 20 `result` + start | about $0.015 |
| 1,000 matches of a weekend schedule | 1,000 `result` + start | about $0.75 |
| 500 matches with statistics, 200 of them have statistics | 500 `result` + 200 `match-statistics` + start | about $0.575 |

The start fee is $0.00005 per GB of run memory, a tiny fraction of a cent.

### Input

![Sofascore Scraper input example: What to get, Sports, Days, Timezone, Season matches, Match status filter, Include match details (venue, referee)](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/sofascore-com-sports-scores-and-stats-input-f5d603ca.png)

| Field | What it does |
|---|---|
| `mode` | `scheduled` (matches on a date, default), `live`, `tournament` (league season matches), `standings` (league tables) or `matches` (specific matches) |
| `sports` | For `scheduled` and `live`: one or more of 20 sports — football, tennis, basketball, ice-hockey, american-football, baseball, volleyball, handball, cricket, rugby, esports, futsal, table-tennis, darts, badminton, padel, aussie-rules, floorball, waterpolo, minifootball. Default `football` |
| `date` | For `scheduled`: first day, `YYYY-MM-DD`. Empty = today in `timezone`. Past dates give results, future dates give fixtures |
| `days` | For `scheduled`: consecutive days from `date`, 1–14 (default 1) |
| `timezone` | IANA timezone (e.g. `Europe/London`) that defines the day in `scheduled` mode and the `matchDate` column. Default `UTC` |
| `tournaments` | Competition IDs or tournament URLs. Required for `tournament` and `standings`; in `scheduled` and `live` it keeps only matches of these competitions |
| `season` | For `tournament` and `standings`: season label (`25/26`, `2025`) or season ID. Empty = current season |
| `seasonMatches` | For `tournament`: `finished` (latest results first, default), `upcoming` (next fixtures first) or `all` |
| `matches` | Required for `matches` mode: match IDs or Sofascore match URLs |
| `statuses` | For `scheduled` and `tournament`: keep only `notstarted`, `inprogress`, `finished`, `postponed` and/or `canceled` matches. Empty = all |
| `includeDetails` | Adds venue, city, country, capacity and referee (no extra charge). Always on in `matches` mode; not used for standings |
| `includeStatistics` | Adds full-match `stat*Home` / `stat*Away` columns, charged per match that has statistics; not used for standings |
| `maxItems` | Stop after this many rows (default 100) |
| `proxyConfiguration` | Apify Proxy; the datacenter proxy (default) is enough |

Example — every football match of 8 November 2026, London time:

```json
{
  "mode": "scheduled",
  "sports": ["football"],
  "date": "2026-11-08",
  "timezone": "Europe/London",
  "maxItems": 500
}
```

Example — Premier League and LaLiga tables of the current season:

```json
{
  "mode": "standings",
  "tournaments": ["17", "8"]
}
```

### What data can you extract from Sofascore?

![Sofascore Scraper output example: Start (UTC), Sport, Category, Competition, Home, Home score](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/sofascore-com-sports-scores-and-stats-output-f2c0165b.png)

Each run has one row shape: match rows (`recordType: "match"`) in the `scheduled`, `live`, `tournament` and `matches` modes, or table rows (`recordType: "standing"`) in `standings` mode. Every row has `url` and `scrapedAt`.

| Group | Fields |
|---|---|
| Match identity | `recordType`, `url`, `title`, `matchId`, `customId`, `sport` |
| Competition | `category`, `categoryId`, `tournament`, `uniqueTournament`, `uniqueTournamentId`, `seasonId`, `season`, `round`, `roundName` |
| Status and time | `status`, `statusDescription`, `statusCode`, `startTime` (UTC), `matchDate` (in your timezone) |
| Teams | `homeTeam`, `homeTeamId`, `homeTeamShortName`, `homeTeamCode`, `awayTeam`, `awayTeamId`, `awayTeamShortName`, `awayTeamCode` |
| Scores | `homeScore`, `awayScore`, `homeScorePeriod1`…`homeScorePeriod5`, `awayScorePeriod1`…`awayScorePeriod5`, `homeScoreOvertime`, `awayScoreOvertime`, `homeScorePenalties`, `awayScorePenalties`, `winner` (home, away or draw) |
| Coverage flags | `hasXg`, `hasPlayerStatistics`, `finalResultOnly` |
| Details (optional) | `venue`, `venueCity`, `venueCountry`, `venueCapacity`, `referee` |
| Statistics (optional) | `statisticsAvailable` and full-match pairs such as `statBallPossessionHome`/`Away`, `statExpectedGoalsHome`/`Away`, `statTotalShotsOnGoal…`, `statShotsOnGoal…`, `statBigChanceCreated…`, `statCornerKicks…`, `statFouls…`, `statOffsides…`, `statYellowCards…`, `statRedCards…`, `statPasses…`, `statAccuratePasses…`, `statGoalkeeperSaves…`; basketball, tennis and other sports add their own `stat<Key>Home` / `stat<Key>Away` columns |
| Table rows | `standingsName`, `position`, `team`, `teamId`, `matches`, `wins`, `draws`, `losses`, `scoresFor`, `scoresAgainst`, `scoreDiff`, `points`, `winPercentage`, `promotion`, plus `category`, `uniqueTournament`, `uniqueTournamentId`, `seasonId`, `season` |

A real match row (Premier League, 8 November 2026, shortened — null period columns removed):

```json
{
  "recordType": "match",
  "matchId": 16363912,
  "customId": "Fsab",
  "url": "https://www.sofascore.com/football/match/brentford-brighton-and-hove-albion/Fsab#id:16363912",
  "title": "Brighton & Hove Albion – Brentford",
  "sport": "football",
  "category": "England",
  "categoryId": 1,
  "tournament": "Premier League",
  "uniqueTournament": "Premier League",
  "uniqueTournamentId": 17,
  "seasonId": 96668,
  "season": "26/27",
  "round": 10,
  "roundName": null,
  "status": "finished",
  "statusDescription": "Ended",
  "statusCode": 100,
  "startTime": "2026-11-08T14:00:00.000Z",
  "matchDate": "2026-11-08",
  "homeTeam": "Brighton & Hove Albion",
  "homeTeamId": 30,
  "homeTeamShortName": "Brighton",
  "homeTeamCode": "BHA",
  "awayTeam": "Brentford",
  "awayTeamId": 50,
  "awayTeamShortName": "Brentford",
  "awayTeamCode": "BRE",
  "homeScore": 2,
  "homeScorePeriod1": 2,
  "homeScorePeriod2": 0,
  "awayScore": 0,
  "awayScorePeriod1": 0,
  "awayScorePeriod2": 0,
  "winner": "home",
  "hasXg": true,
  "hasPlayerStatistics": true,
  "finalResultOnly": false,
  "scrapedAt": "2026-11-08T20:44:05.175Z"
}
```

### Use cases

- **Daily results and fixtures feeds:** pull every match of a day (or up to 14 days) for one or more sports into a sheet or database on a schedule.
- **Live score widgets:** poll `live` mode for basketball, ice hockey or tennis matches in play, with period and set scores.
- **Betting and analytics models:** collect a league season's finished matches with xG, shots, possession and cards from the statistics columns.
- **League tables for media and fantasy sites:** fetch the current or a past season's table, including conferences, divisions and groups.
- **AI agents:** answer "the Premier League table" or "today's NBA scores" from documented columns instead of raw JSON.

### Limitations

- The actor reads Sofascore's public JSON through Sofascore's own mirror host `sofascore1.com`. If Sofascore closes that host or puts a captcha on it, runs fail with a clear "blocked" error; captchas are never solved.
- Coverage varies by league: lower leagues often have no venue, referee, statistics or xG. Such rows have empty detail columns and `statisticsAvailable: false`.
- Scores are empty before kick-off, and `winner` is empty until the match is finished. `points` is empty in tables ranked by win percentage (e.g. NBA), where `winPercentage` is filled instead.
- Cups and tennis tournaments have no league table; the actor logs a warning and continues with the next tournament.
- Player data, lineups, incidents and odds are not returned.
- One mode per run. `days` is limited to 14. A full football day has about 9,000 matches, so raise `maxItems` when you need all of them.

### Tips and troubleshooting

- **A day schedule stops at 100 rows:** that is the default `maxItems`. Matches come in Sofascore's category order (England, Spain … first), so a low limit returns the top countries only.
- **Only some leagues:** add their IDs to `tournaments` in `scheduled` or `live` mode; only matches of those competitions are kept. The ID is the last number of the tournament URL (`…/premier-league/17`).
- **Only results or only upcoming fixtures:** use `statuses` in `scheduled` and `tournament` mode, or `seasonMatches` in `tournament` mode. `statuses` is ignored in `live`, `standings` and `matches` modes.
- **0 rows:** in `live` mode nothing may be in play for that sport right now; with `season` set, check that the label matches Sofascore's (e.g. `25/26` for football, `2025` for single-year seasons) — an unknown season is skipped with a warning.
- **Input error before the run starts:** `tournament` and `standings` need `tournaments`, `matches` mode needs `matches`, and `matches` must not be set in other modes.
- **Proxy:** the default Apify datacenter proxy is enough; residential is not needed.

### API, MCP and integrations

Run the actor from your code with the same JSON input as in Console. Your API token is in [Console → Settings → API & Integrations](https://console.apify.com/settings/integrations).

**Python** (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("genial_candlestand/sofascore-scraper").call(run_input={
    "mode": "scheduled",
    "sports": ["football"],
    "timezone": "UTC",
    "maxItems": 30,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

**Node.js** (`npm install apify-client`):

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

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('genial_candlestand/sofascore-scraper').call({
    "mode": "scheduled",
    "sports": ["football"],
    "timezone": "UTC",
    "maxItems": 30,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**HTTP** — one request runs the actor and returns the results (runs up to 5 minutes; longer ones: [run asynchronously](https://docs.apify.com/api/v2/act-runs-post)):

```bash
curl -X POST "https://api.apify.com/v2/acts/genial_candlestand~sofascore-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode":"scheduled","sports":["football"],"timezone":"UTC","maxItems":30}'
```

**AI agents (MCP).** Add the actor as a tool of the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp). Claude Code:

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=genial_candlestand/sofascore-scraper"
```

Claude Desktop, Cursor or VS Code: `{"mcpServers": {"apify": {"url": "https://mcp.apify.com?tools=genial_candlestand/sofascore-scraper"}}}`. Then ask, for example:

- "Get today's NBA scores and period scores from Sofascore"
- "Show the current Premier League table with points, wins and losses"
- "List all football matches on 2026-11-08 in Europe/London time with xG and possession"

**Integrations.** Run it on a schedule with [Apify Schedules](https://docs.apify.com/platform/schedules) and send the results to Google Sheets, Slack, Zapier, Make, n8n or your webhook — see [Apify integrations](https://docs.apify.com/platform/integrations).

### FAQ

**Is it legal to scrape Sofascore?**<br>
The actor collects public match data that Sofascore shows without a login. It returns team, competition and score data, plus the referee's name when details are requested, as Sofascore publishes them. You are responsible for how you use the data, including Sofascore's terms and the laws that apply to you.

**Can I get historical results?**<br>
Yes. Any past date works in `scheduled` mode, and `tournament` mode with a `season` returns a past season's matches; `standings` with `season` returns a past table.

**Do I need to know Sofascore IDs?**<br>
No. You can paste sofascore.com tournament and match URLs; the actor reads the ID from them. The `matchId` and `uniqueTournamentId` columns give you IDs for later runs.

**How is it different from other Sofascore actors?**<br>
It returns one flat, documented row shape per mode with statistics as separate columns, accepts both IDs and URLs, reads dates in your timezone and works on the datacenter proxy. A row costs $0.75 per 1,000, while the Sofascore actor with the most monthly users in our comparison charges $4.80 per 1,000 rows.

**How fresh are live scores?**<br>
Each run reads the scores at the moment of the request; the source caches them for only a few seconds. Schedule repeated runs for continuous updates.

### Also useful

- [Flashscore Scraper](https://apify.com/genial_candlestand/flashscore-results-scraper) — cross-check results and fixtures from Flashscore: match scores, schedules and stats
- [Google News Scraper](https://apify.com/genial_candlestand/google-news-articles-search-scraper) — follow news articles about the teams and leagues you track
- [Google Trends Scraper](https://apify.com/genial_candlestand/google-trends-scraper) — measure search interest in clubs, players and tournaments by region
- [YouTube Search Scraper](https://apify.com/genial_candlestand/youtube-search-scraper) — find match highlight videos with views and channels

# Actor input Schema

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

scheduled: every match of the chosen sports on a date (fixtures and results). live: matches in play now. tournament: matches of a league season (needs Tournaments). standings: league tables (needs Tournaments). matches: specific matches by ID or URL (needs Matches).

## `sports` (type: `array`):

Sports for the 'scheduled' and 'live' modes. All countries and leagues of each sport are covered unless you narrow them with Tournaments. Ignored in other modes.

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

First day for 'scheduled' mode, YYYY-MM-DD, read in Timezone. Empty = today. Past dates give results, future dates give fixtures.

## `days` (type: `integer`):

Number of consecutive days from Date for the 'scheduled' mode (1 = only that day, at most 14).

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

IANA timezone name, e.g. Europe/London or America/New_York. It defines which matches belong to the day in 'scheduled' mode and fills the matchDate column. Default UTC.

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

Sofascore competition IDs or tournament URLs, e.g. 17 (Premier League), 132 (NBA) or https://www.sofascore.com/tournament/football/england/premier-league/17. Required for 'tournament' and 'standings'; in 'scheduled' and 'live' only matches of these competitions are kept.

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

For 'tournament' and 'standings': season label as on Sofascore (e.g. 25/26 or 2025) or a season ID. Empty = the current season of each tournament.

## `seasonMatches` (type: `string`):

For 'tournament' mode: finished (latest results first), upcoming (next fixtures first) or all (results, then fixtures).

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

Required for 'matches' mode, not allowed in other modes: Sofascore match IDs (16363912) or match URLs. Venue and referee are always included.

## `statuses` (type: `array`):

For 'scheduled' and 'tournament': keep only matches with these statuses. Empty = all statuses.

## `includeDetails` (type: `boolean`):

Adds venue, city, country, capacity and referee to every match row (one extra request per match, no extra charge). Always on in 'matches' mode. Not used for standings.

## `includeStatistics` (type: `boolean`):

Adds full-match statistics as stat<Key>Home / stat<Key>Away columns (possession, xG, shots, corners, cards …; other keys in basketball, tennis …). Charged per match that has statistics; lower leagues often have none. Not used for standings.

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

Stop after this many rows (matches or table rows). A full football day has about 9,000 matches.

## `proxyConfiguration` (type: `object`):

Apify datacenter proxy works and is the cheapest; residential is not needed.

## Actor input object example

```json
{
  "mode": "scheduled",
  "sports": [
    "football"
  ],
  "days": 1,
  "timezone": "UTC",
  "tournaments": [],
  "seasonMatches": "finished",
  "matches": [],
  "statuses": [],
  "includeDetails": false,
  "includeStatistics": false,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Dataset with all match or standings rows

## `overview` (type: `string`):

Matches in the overview view

## `summary` (type: `string`):

Counts, requests and warnings of the run

# 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 = {
    "tournaments": [],
    "matches": [],
    "maxItems": 100,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("genial_candlestand/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 = {
    "tournaments": [],
    "matches": [],
    "maxItems": 100,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("genial_candlestand/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 '{
  "tournaments": [],
  "matches": [],
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call genial_candlestand/sofascore-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,genial_candlestand/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/W9UURfwp8iuG4IIl4/builds/2wLtUqniU3MOjk92W/openapi.json
