# Sofascore Scraper: Match Stats, Player Ratings & Standings (`scrapebench/sofascore-match-stats-player-ratings-scraper`) Actor

Sofascore match data in analysis-ready rows: fixtures and results by date, league or team, match statistics with xG, one row per player per match with rating, standings, player season stats. No start fee, from $2 per 1,000 rows.

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

## Pricing

from $0.002 / match, standing or search row

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/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: Match Stats, Player Ratings & Standings

### Pain points

- A match page shows xG, shots, possession and every player's rating, but getting a round of matches into a sheet means copying it by hand, match by match.
- Player ratings and per-player statistics come nested inside each match, so a fantasy or scouting sheet with one row per player per match takes a script to build.
- League tables, fixtures and player pages are keyed by numeric ids you have to look up before you can ask for anything.
- A scheduled feed that bills a start fee on a run that returned nothing costs money for no data.

### What we solve

- Matches by date, by league (today's date, any date, or the current round), by team (recent and next matches) or live, one row per match with teams, score, half-time and period scores, status, round, venue and referee.
- Match statistics with xG, possession and shots as columns, every team statistic for the match and by period, incidents (goals, cards, substitutions, VAR), fan votes, head-to-head and the odds markets the site displays.
- One row per player per match: rating, minutes, goals, assists, xG, xA, and every other statistic the site gives for that player (passes, duels, tackles, saves; points and rebounds in basketball).
- League standings (total, home or away) and a player's profile and season statistics, by name: Premier League, Arsenal, Haaland.
- Search returns leagues, teams and players with their ids and links.
- Stable join keys for betting and props work: match_id, start_time, team names and a folded player_key.

### Summary

Pick what you need. Matches mode returns one row per match for a date, a league (a date or its current round), a team (its recent and next matches) or everything live right now, in 17 sports. Turn on match statistics to add one row per finished match with xG, possession and shots as columns, every team statistic for the match and per period, the incident timeline, fan votes, head-to-head and the odds markets the site displays. Turn on player ratings to add one row per player who played: rating, minutes, goals, assists, xG and xA as columns, plus every other statistic the site records for that player. Match details mode does all of that for the match links or ids you list, including plain /event/<id> links. Standings mode returns the total, home or away table of a league by name; player stats mode returns a player's profile and current season statistics per competition; search finds the ids. Unplayed matches, unknown names and refused requests come back as free notice rows, and there is no start fee, so an empty scheduled run costs nothing.

### Who it's for

- Football modellers and bettors who need xG, ratings and results as model input
- Fantasy football and DFS players who track player ratings and minutes
- Scouting and performance analysts comparing players across matches
- Content creators and bot operators posting results, tables and top performers
- AI agents answering questions about matches, tables and players

### How to use

Set the input, run the actor, and collect results from the run's dataset (export to JSON/CSV/Excel, or pull via the Apify API). Example input:

```json
{
  "mode": "matches",
  "league": "Premier League",
  "date": "yesterday",
  "includeMatchStats": true,
  "includePlayerRatings": true,
  "maxResults": 10
}
```

See **Inputs** below for every available field.

### What you get

One row per record:

| Field | Description |
|---|---|
| `record_type` | match, match_stats, player_match, standing, player, player_season or search_result |
| `match_id, url, sport, league, season, round, start_time, match_date, status` | Match rows: which match and when (start_time in UTC) |
| `home_team, away_team, home_score, away_score, home_score_ht, away_score_ht, winner, venue, referee` | Match rows: teams and result, plus score by period |
| `expected_goals_home/away, possession_home/away, shots_home/away, stats_home, stats_away, stats_by_period` | Match statistics: xG, possession and shots as columns, every team statistic for the match and per period |
| `incidents, votes, h2h, odds_markets, formation_home/away, missing_players` | Match statistics: goals, cards, substitutions and VAR by minute; fan votes; head-to-head; the odds markets the site displays; formations and absentees |
| `player, player_id, player_key, team, opponent, side, position, starter, rating, minutes_played` | Player rows: who played, for whom, and the site's rating |
| `goals, assists, expected_goals, expected_assists, points, rebounds, stats` | Player rows: key numbers as columns and every other statistic in stats |
| `position, team, matches, wins, draws, losses, goals_for, goals_against, goal_diff, points, promotion` | Standing rows (total, home or away table) |
| `appearances, rating, goals, assists, expected_goals, stats` | Player season rows, one per competition |
| `query, result_type, id, name, url` | Search rows: leagues, teams and players with their ids |

Sample:

```json
{
  "record_type": "player_match",
  "match_id": 16363662,
  "match": "Newcastle United - Arsenal",
  "league": "Premier League",
  "start_time": "2026-11-21T17:30:00Z",
  "player": "Noni Madueke",
  "player_key": "noni madueke",
  "team": "Arsenal",
  "opponent": "Newcastle United",
  "side": "away",
  "position": "M",
  "starter": true,
  "rating": 8.6,
  "minutes_played": 90,
  "goals": 1,
  "assists": 0,
  "expected_goals": 0.3904,
  "expected_assists": 0.0722659,
  "stats": {
    "total_pass": "\u2026",
    "key_pass": "\u2026",
    "duel_won": "\u2026",
    "touches": "\u2026"
  }
}
```

### Inputs

| Field | Required | Type | Default | Description |
|---|---|---|---|---|
| `mode` | no | string | `"matches"` | matches: the matches of a date, the live matches, a league's round, or a team's last/next matches (one row per match). match_details: everything about the matches you list (statistics with xG, incidents, lineups, one row per player with rating). standings: a league table. player_stats: a player's profile and season statistics. search: find a league, team or player by name. |
| `sport` | no | string | `"football"` | For matches by date or live. Football by default. |
| `date` | no | string | `"yesterday"` | A day as YYYY-MM-DD, or today / yesterday / tomorrow (UTC). For matches mode. Leave empty with no league or team for today's matches. |
| `dates` | no | array | — | Several days (YYYY-MM-DD). Each day is one batch entry; maxResults applies per entry. |
| `liveOnly` | no | boolean | `false` | Matches mode: the matches in play right now for the sport, instead of a date. |
| `league` | no | string | `"Premier League"` | A league by name (Premier League, LaLiga, NBA, Champions League) or its Sofascore id / link. Matches mode: narrows a date to this league, or with no date lists the current round. Standings mode: the table. |
| `leagues` | no | array | — | Several leagues, each one batch entry. |
| `season` | no | string | — | Standings and player stats: a season as the site writes it (25/26, 2025) or its id. Empty = the current season. |
| `team` | no | string | — | Matches mode: a team by name (Arsenal) or id / link; returns its recent and upcoming matches. |
| `teams` | no | array | — | Several teams, each one batch entry. |
| `match` | no | string | — | Match details mode: a match link (any Sofascore match link, including plain /event/<id> links) or its numeric id. |
| `matches` | no | array | — | Several match links or ids, each one batch entry. |
| `player` | no | string | — | Player stats mode: a player by name (Haaland), id or link. |
| `players` | no | array | — | Several players, each one batch entry. |
| `query` | no | string | — | Search mode: a name to look up (league, team or player). |
| `queries` | no | array | — | Several names, each one batch entry. |
| `includeMatchStats` | no | boolean | `false` | Matches mode: also return one match statistics row (xG, shots, possession by period, incidents, fan votes, head-to-head, displayed odds) per finished match. Charged per match. Always on in match details mode. |
| `includePlayerRatings` | no | boolean | `false` | Matches mode: also return one row per player per finished match (rating, minutes, goals, assists, xG, xA, passes...). Charged once per match, not per player. Always on in match details mode. |
| `standingsView` | no | string | `"total"` | total, home or away table. |
| `maxResults` | no | integer | `100` | Per entry (each date, league, team, match, player or search): at most this many matches (matches mode) or rows. A free notice says how many more there were. |
| `proxyConfiguration` | no | object | `{"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]}` | Apify residential proxy by default, which this actor needs. Change it only to supply your own residential proxies. |

### Pricing (Pay Per Event)

You pay per result (`result-row`) — **no charge for empty runs**. Example: **1000 match rows** at *$0.002/result* ≈ **$2.00**.

A match row is $0.002, its statistics $0.005 and all its player ratings $0.004, so a full match is $0.011. A player season row is $0.003. No start fee, notices free. Examples: a 10-match round with statistics and ratings is $0.11; 500 fixtures is $1.00.

### Use cases

- Yesterday's results for a league with xG, shots and possession in a sheet.
- Every player's rating, minutes, goals and xG for a round of matches.
- A scheduled fixtures or live-score feed that never bills an empty run.
- League table by name, total, home or away, with the promotion and relegation zones.
- A player's season statistics per competition: rating, goals, assists, xG.
- Model input joined to player prop lines on player_key and match start time.
- Head-to-head and fan votes before a match.

### Why this actor

- One row per player per match with stable snake_case columns, not one huge nested record per match.
- Leagues, teams and players by name: no numeric ids to look up first.
- No start fee; unplayed matches, unknown names and refusals are free notice rows.
- A full match (match row, statistics and every player's rating) is $0.011.
- Join keys shared with our player props actor: match start time, team names and a folded player name.

### Limitations & updates

Public match data as the site shows it: no heatmaps, shot maps or point-by-point tennis in this version, and no league leaderboards yet. A match day is read in the site's own order (by kick-off time), up to maxResults matches per entry. Player ratings exist only for matches the site rates. Each run is a snapshot; schedule it for a feed. Not affiliated with or endorsed by Sofascore.

### FAQ

**What does a run cost?**

$0.002 per match, standing, player profile or search row; $0.005 per match statistics row; $0.004 per match for all its player ratings; $0.003 per player season row. A 10-match round with statistics and ratings is $0.11. There is no start fee and notice rows are free, so a run that finds nothing costs nothing.

**Which sports are covered?**

Matches by date or live in 17 sports (football, basketball, tennis, ice hockey, American football, baseball, volleyball, handball, rugby, cricket, esports and more). Match statistics and player rows follow what the site publishes for the match: richest in football and basketball (box scores with points, rebounds and assists).

**How do I pick a league, team or player?**

By name (Premier League, Arsenal, Haaland), by the site's id, or by a link. A name takes the best match of that kind; search mode lists the candidates with their ids if you want to be exact. A name with no match returns a free notice listing what the search found.

**What happens with a match that has not started?**

You get its match row; statistics and player ratings are skipped, not charged, and a free notice says how many matches had none yet.

**Which match links work?**

Any match link from the site, including the short /event/<id> form, or the bare numeric id.

**Are the odds bookmaker prices?**

They are the odds markets the site displays on the match page (initial and current prices, fractional and decimal). For sportsbook and pick'em player props, see the related props actor.

### Which actor to choose

Related sports and odds tools:

- **Player Props Odds Scraper: FanDuel, PrizePicks & Underdog Lines** — You want tonight's player prop lines to set against ratings and statistics.
- **Kalshi & Polymarket Prediction Market Odds Scraper** — You want prediction-market prices on the same matches.

### Guides & use cases

Written up on **[scrapebench.dev](https://scrapebench.dev)** — the bench that runs and verifies this actor against the live source every night:

- **How-to:** [How to run Sofascore Scraper: Match Stats, Player Ratings & Standings](https://scrapebench.dev/guides/how-to-sofascore-match-stats-player-ratings-scraper/)
- **Use case:** [A football team's recent matches with xG and every player's rating in one sheet](https://scrapebench.dev/use-cases/football-round-xg-and-player-ratings-sheet/)

More actors, coverage and nightly verification results: **[scrapebench.dev](https://scrapebench.dev)**

### Works with AI assistants (MCP)

Callable as an MCP tool, so Claude, Cursor, VS Code Copilot and other MCP clients can run it directly. Grab the config from the [MCP tab](https://apify.com/scrapebench/sofascore-match-stats-player-ratings-scraper/api/mcp) on this page — Apify hosts the server and keeps that snippet current, and OAuth signs you in on first connect, so no API token goes in your config file.

Then just ask:

> "Get yesterday's Premier League results with xG and every player's rating, and tell me the three best-rated players."

Run as {"mode":"matches","league":"Premier League","date":"yesterday","includeMatchStats":true,"includePlayerRatings":true,"maxResults":10}. Runs started this way bill exactly like any other run.

### Data & lawful use

This actor collects publicly available information that Sofascore (SofaScore Limited) publishes for public
lookup — licence records, business listings and the contact details professionals list there.
Some of it identifies individuals (sole proprietors, licence holders, agents), so treat any
names, phone numbers and emails in your results as personal data.

When you run this actor, you decide what is collected and what it is used for, so you are the
controller of that data and we act only as your processor (Apify Standard Actor Contract).
You need a lawful basis for your use, must honour opt-out and deletion requests, and must
follow the marketing rules that apply to you (CAN-SPAM, TCPA, GDPR, CCPA and similar).
Don't use the output for unsolicited bulk messaging, for screening covered by the FCRA, or
for anything the source's own terms forbid.

Your results are stored in your own Apify account. We don't keep a copy of your results and
don't sell or share them.

### Disclaimer

This is an independent tool. It is not affiliated with, endorsed by or sponsored by
Sofascore (SofaScore Limited). Names and marks are used only to describe the data source. Records are
provided as published by the source and may be out of date or incomplete. For anything
consequential (hiring, a permit, a legal decision), confirm the record with the issuing
agency. You are responsible for making sure your use complies with applicable law and the
source's terms.

### Need help?

Open an issue on this actor's **Issues** tab and we'll respond there. Bug reports, missing
fields and feature requests are all welcome. Guides and examples: [scrapebench.dev](https://scrapebench.dev).

If you are a person named in this data and want your record removed from our copy, email
apify-help@scrapebench.dev; the source agency remains the official record.

Your run may be used to improve our services. If something looks off, or you want this actor to fit your use better, please share your run data with us: [Apify Console → Settings → Security → Share run data with developers](https://console.apify.com/settings/security). It lets us see exactly what went wrong and keep improving the actor.

If this actor saved you time, a short review on its Store page helps other buyers find it.

# Actor input Schema

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

matches: the matches of a date, the live matches, a league's round, or a team's last/next matches (one row per match). match_details: everything about the matches you list (statistics with xG, incidents, lineups, one row per player with rating). standings: a league table. player_stats: a player's profile and season statistics. search: find a league, team or player by name.

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

For matches by date or live. Football by default.

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

A day as YYYY-MM-DD, or today / yesterday / tomorrow (UTC). For matches mode. Leave empty with no league or team for today's matches.

## `dates` (type: `array`):

Several days (YYYY-MM-DD). Each day is one batch entry; maxResults applies per entry.

## `liveOnly` (type: `boolean`):

Matches mode: the matches in play right now for the sport, instead of a date.

## `league` (type: `string`):

A league by name (Premier League, LaLiga, NBA, Champions League) or its Sofascore id / link. Matches mode: narrows a date to this league, or with no date lists the current round. Standings mode: the table.

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

Several leagues, each one batch entry.

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

Standings and player stats: a season as the site writes it (25/26, 2025) or its id. Empty = the current season.

## `team` (type: `string`):

Matches mode: a team by name (Arsenal) or id / link; returns its recent and upcoming matches.

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

Several teams, each one batch entry.

## `match` (type: `string`):

Match details mode: a match link (any Sofascore match link, including plain /event/<id> links) or its numeric id.

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

Several match links or ids, each one batch entry.

## `player` (type: `string`):

Player stats mode: a player by name (Haaland), id or link.

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

Several players, each one batch entry.

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

Search mode: a name to look up (league, team or player).

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

Several names, each one batch entry.

## `includeMatchStats` (type: `boolean`):

Matches mode: also return one match statistics row (xG, shots, possession by period, incidents, fan votes, head-to-head, displayed odds) per finished match. Charged per match. Always on in match details mode.

## `includePlayerRatings` (type: `boolean`):

Matches mode: also return one row per player per finished match (rating, minutes, goals, assists, xG, xA, passes...). Charged once per match, not per player. Always on in match details mode.

## `standingsView` (type: `string`):

total, home or away table.

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

Per entry (each date, league, team, match, player or search): at most this many matches (matches mode) or rows. A free notice says how many more there were.

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

Apify residential proxy by default, which this actor needs. Change it only to supply your own residential proxies.

## Actor input object example

```json
{
  "mode": "matches",
  "sport": "football",
  "date": "yesterday",
  "liveOnly": false,
  "league": "Premier League",
  "includeMatchStats": false,
  "includePlayerRatings": false,
  "standingsView": "total",
  "maxResults": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

Matches, match statistics, player ratings, standings and player stats from your 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 = {
    "mode": "matches",
    "date": "yesterday",
    "league": "Premier League",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapebench/sofascore-match-stats-player-ratings-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": "matches",
    "date": "yesterday",
    "league": "Premier League",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("scrapebench/sofascore-match-stats-player-ratings-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 '{
  "mode": "matches",
  "date": "yesterday",
  "league": "Premier League",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call scrapebench/sofascore-match-stats-player-ratings-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapebench/sofascore-match-stats-player-ratings-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/41alLwlEJSSBPi3D8/builds/6EqBk6AX4OxEfiwxZ/openapi.json
