# SofaScore Scraper: Live Scores, Football & Tennis Stats, Odds (`hyperbach/sofascore-scraper`) Actor

SofaScore scraper and API, no login: live scores, a day's fixtures to SofaScore's own count, matches with statistics, lineups, incidents, odds and xG shot maps, teams, players, standings, ATP, WTA and FIFA rankings. Football, tennis, basketball and 20+ sports. One row a record. Misses free.

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

## Pricing

from $0.76 / 1,000 sofascore records

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, Football & Tennis Stats, Odds

**Scrape SofaScore logged out: matches with their statistics, lineups, incidents, odds, momentum and every other section of SofaScore's match page, the live board of any sport, every match of a day to SofaScore's own count, teams, players, competitions with their standings, managers, referees, venues and the ATP, WTA, UTR, FIFA and UEFA rankings — one row per record, each section's state stated on the row.** Paste SofaScore links, ids or keywords, or ask for the live board or a date. Every input ends with a free row that says what it gave. No login, no cookies, no proxy to set up.

**From $1.53 per 1,000 rows (`result`) on the Free plan, $1.3005 on Starter; every row and add-on is priced under Pricing below.** A run start is $0.01994. The default input returns about 23 rows for about $0.05207. An input that gives no record (not found, a match link without its id, a value that names nothing) and every input's summary row are free.

![A SofaScore match page on a phone: an invented match, Northfield FC 2-1 Harbor City in the Coastal League, with its statistics tab. Beside it, the row this Actor returns for the match, with sectionsStatus highlighted: the odds not published by SofaScore for this match, the head to head served.](https://api.apify.com/v2/key-value-stores/dcLLNGq99686o2A4v/records/hero-sofascore-scraper.webp)

### How it compares

- **Cheaper than abotapi's SofaScore Scraper, with more data:** $1.84 per 1,000 records, against $2.92; 27 fields per record, against 22.
- **Cheaper than rl1987's SofaScore Scraper, with more data:** $1.84 per 1,000 records, against $2.76; 27 fields per record, against 10.
- **zen-studio's SofaScore Scraper gives more data:** 54 fields per record, against our 27. The price is about the same: $1.84 per 1,000 records, against $1.88.
- **parsebird's SofaScore Scraper returned nothing for this job:** this Actor returned 23 records.

Measured on 2026-11-18. Each line compares one job, run by both scrapers at the same time. Prices are per 1,000 records: Apify Actors at the Scale plan's prices.

### Tested head-to-head on 2026-11-18

The job: SofaScore's search for Real Madrid (every kind, its own order) and one finished match by its link (the input schema's example: the lane study's T1 and T3). Every Actor ran on it the same day from the same harness; every run's cost is at the Scale plan's prices: a rival's charged events at its price for that plan, this Actor's at its list price. Fields counts the filled fields of a typical row. Each rival searches Real Madrid (every kind); zen-studio also reads the match link, as ours does. abotapi/sofascore-scraper is the most used multi-sport SofaScore scraper; rl1987, zen-studio and parsebird are the next ones that take a search. Re-measured monthly.

| Actor | Rows | First row | Run time | Cost | Fields | Failures |
|---|---|---|---|---|---|---|
| **this Actor** | 23 | 47 s | 49 s | $0.042 | 27 | none |
| `abotapi/sofascore-scraper` | 20 | 15 s | 22 s | $0.058 | 22 | none |
| `rl1987/sofascore-api-scraper` | 20 | 4.4 s | 4.7 s | $0.055 | 10 | none |
| `zen-studio/sofascore-scraper` | 15 | 6.7 s | 7.1 s | $0.028 | 54 | none |
| `parsebird/sofascore-scraper` | 0 | — | 31 s | $0.0001 | — | no rows |

### Why this SofaScore scraper

- **Every section, stated.** A match row carries the sections you ask for, each SofaScore's own object: statistics, lineups with ratings, incidents, odds, fan votes, head to head, shot map with xG, player heatmaps, momentum, best players, pre-match form, managers, streaks, highlights, average positions, commentary, SofaScore's post-match insights, weather, point by point, tennis power, innings, at-bats, esports games, series, news, the clubs' posts, team heatmaps, TV channels, win probability. A section SofaScore does not publish for a match says `not_published` on the row, and `sectionsCount` says how many items a served one holds (a lower league's statistics: 8 items; Valencia 0-3 Real Madrid: 135) — never a missing key.
- **A whole day, to SofaScore's own count.** A date reads every football match SofaScore lists that day across every competition and checks the total against SofaScore's own count: 897 of 897 on 18 November 2026 (UTC) in 109 calls. The input's row says COMPLETE, or LIST_END with the count when SofaScore lists fewer than it counts. Any time zone: SofaScore counts a day per time zone, and so does the run.
- **Search past the first page.** SofaScore's search pages by 20; the run reads on to the end (44 teams for `Real Madrid`) and reads each result in full, so a team row names its manager, venue and league.
- **The live board as SofaScore orders it**, for any of 26 sports, with filters by status, competition, country, tennis tour and singles or doubles; a row your filters leave out is not charged.
- **Rankings**: ATP and WTA (official and live), UTR men and women, FIFA, UEFA clubs and countries, rugby union and league, padel, UFC weight classes — one row per ranked team or player, 500 the most SofaScore lists (the row says TRUNCATED when it reaches them).
- **No silent failure.** SofaScore refuses scripts with a browser check; the run passes it the way a visitor does, in a real browser, and asks every section from SofaScore's own page. A call SofaScore refuses is asked again, then named on the row (`refused`) and in the status line. Every input you give has its own row that says what it gave.
- **Charged per record, once.** One row, one charge, whatever sections it carries; only the players' heatmaps, one call per player, are their own small fee. A record two inputs find is delivered and charged once; inputs that give nothing, a match link without its id and the summary rows are free.
- **Speed.** Every run opens one real browser and passes SofaScore's check before its first call, then asks twelve of SofaScore's own calls at once. On build 0.1.3 (stage 4's speed runs, 2026-11-18) the first result came at 21.05-37.93 seconds of run time on a warm node (37.93 the median of 3; once 170.64 with a cold node and a check that failed and passed on a fresh connection), and a warm live board gave 50 matches in 10.56 seconds with no section (289.8 a minute), 60.6 a minute with three sections a match. A run on a node that has not pulled the image yet waits 28-36 seconds more before the browser starts (8 of the 12 runs of the 0.1.4 gate).

### Who it's for

- **Sports data and betting analysts** — Statistics, xG, shot maps, odds and momentum of the matches they study, every section on one row with its state.
- **Fantasy and prediction builders** — Lineups with ratings, pre-match form, injuries (missing players) and fan votes before kick-off.
- **Media and content teams** — The live board and the day's fixtures across every competition, with scores, venues and TV channels.
- **Tennis analysts** — Point by point, tennis power, serve statistics, the live board by tour, and the ATP, WTA and UTR rankings.

### Quick start

**Basic — newest postings**

```json
{
  "maxItems": 10
}
```

### Switching from `abotapi/sofascore-scraper`?

Your input works as it is. Each name in the left column is read as this Actor's own field and the run log says so (`read <theirs> as <ours>`); a name marked *not read* is ignored with a note. A value in the other Actor's shape, an object list or its own date form, is read too.

| abotapi/sofascore-scraper | this Actor | what to know |
|---|---|---|
| `mode` | *not read* | Not needed: the inputs you fill name the work. Its value is read all the same: `live` turns on `live`, `scheduled` reads today's fixtures (`date`). |
| `searchQueries` | `searchQueries` | The same keywords; each result is read in full, and past SofaScore's first page of 20 (`maxResultsPerQuery`). |
| `searchType` | `searchType` | The same values (all, team, player, tournament, match), and manager, referee and venue. |
| `urls` | `urls` | The same SofaScore links of every page kind; a match link without #id: is a free row that names the pair's match ids. |
| `expandTournamentMatches` | `expandTournamentMatches` | The same: a competition link also gives every match of its season. |
| `tournamentSeasons` | `tournamentSeasons` | The same values: current or all. |
| `sports` | `sports` | The same sport names; none chosen = football. |
| `date` | `date` | The same day (YYYY-MM-DD), and today, tomorrow or yesterday; read across every competition, to SofaScore's own count. |
| `daysAhead` | `daysAhead` | The same: more days after the date. |
| `includeStatistics` | `includeStatistics` | The same switch, on by default. |
| `includeLineups` | `includeLineups` | The same switch, on by default. |
| `includeIncidents` | `includeIncidents` | The same switch, on by default. |
| `includeOdds` | `includeOdds` | The same switch: every market, the featured market and the winning odds. |
| `includeVotes` | `includeVotes` | The same switch. |
| `includeH2H` | `includeH2H` | The same switch; the pair's past meetings are `matchSections` h2hMatches. |
| `includeShotmap` | `includeShotmap` | The same switch. |
| `includePlayerHeatmaps` | `includePlayerHeatmaps` | The same switch: every player who played, no per-player fee. |
| `includeStandings` | `includeStandings` | The same switch, on by default; home and away tables are `tournamentSections` standingsHomeAway. |
| `includeSquad` | `includeSquad` | The same switch. |
| `maxItems` | `maxItems` | The same cap on the run's charged rows; 0 = none. |
| `proxy` | *not read* | Not needed: the Actor brings its own connections. |
| `resumeFromRunId` | *not read* | Not read: a run the platform migrates or resurrects continues by itself and charges nothing twice. |
| `incrementalMode` | *not read* | Not read: this Actor has no only-new mode (each run reads SofaScore live); compare runs by `id`. |
| `stateKey` | *not read* | Not read: no only-new mode (see incrementalMode). |
| `emitUnchanged` | *not read* | Not read: no only-new mode (see incrementalMode). |
| `emitExpired` | *not read* | Not read: no only-new mode (see incrementalMode). |
| `ignoreFieldsForChanges` | *not read* | Not read: no only-new mode (see incrementalMode). |
| `mcpConnectors` | *not read* | Not read: use Apify's own integrations and the MCP server on the dataset. |
| `notionParentPageUrl` | *not read* | Not read: use Apify's own integrations (see mcpConnectors). |
| `maxNotifyListings` | *not read* | Not read: use Apify's own integrations (see mcpConnectors). |

**What differs:**

- Every row is typed by `record_type` (match, team, player, tournament, manager, referee, venue, ranking), the leader's `type`; the match and team columns keep the leader's names (`homeTeam`, `statusType`, `uniqueTournament`, `tournamentId`, `managerName`, `venueCity`, `raw`).
- The sections ride in one `sections` object with a state for each (`sectionsStatus`), not one column each.
- A day is read across every competition to SofaScore's own count, not the day's most prominent fixtures under the cap.
- A search reads past SofaScore's first 20 results (`maxResultsPerQuery`).
- There is no only-new mode: each run reads SofaScore live.

### Output

One row per SofaScore record (`record_type`: match, team, player, tournament, manager, referee, venue, ranking, category or stage), and one free row per input (`record_type` target) with its verdict:

| field | meaning |
|---|---|
| `record_type` | What the row is: `match`, `team`, `player`, `tournament`, `manager`, `referee`, `venue`, `ranking` (one ranked team or player), `category` (a day's competition group, with `dayOverviewOnly`), `stage` (a motorsport race); `target` on an input's free summary row. |
| `status` | `ok`, or why an input gave no row (free): `not_found` (SofaScore answers 404 Not Found for it), `needs_match_id` (a match link without its #id: part: `note` names the pair's last and next match ids), `refused` (SofaScore did not serve it after a second ask), `invalid_input` (a value that names nothing), `failed` (the run could not open a session), `not_read` (the run stopped first). |
| `input` | The value you gave that this row answers. |
| `id` | SofaScore's own id of the record (a ranking row: the ranking and the ranked team's id). |
| `name` | The record's name (a match: home - away). |
| `sport` | SofaScore's sport slug (football, tennis, basketball, …). |
| `url` | The record's SofaScore page. |
| `startTime` | A match's start (UTC). |
| `startTimestamp` | A match's start, Unix seconds. |
| `statusType` | A match's state: notstarted, inprogress, finished, postponed, canceled, interrupted. |
| `statusDescription` | SofaScore's words for the state (Ended, 2nd half, 3rd set, …). |
| `statusCode` | SofaScore's code for the state. |
| `homeTeam` | The home team (or the first player). |
| `homeTeamId` | Its SofaScore id. |
| `awayTeam` | The away team (or the second player). |
| `awayTeamId` | Its SofaScore id. |
| `homeScore` | The home side's current score (sets won in tennis). |
| `awayScore` | The away side's current score. |
| `homeScoreHalftime` | The home side's first-period score (the first half, the first set's games). |
| `awayScoreHalftime` | The away side's first-period score. |
| `winner` | home, away or draw, once SofaScore names one. |
| `homeScoreDetail` | SofaScore's home score object: every period, overtime, penalties, the tennis point. |
| `awayScoreDetail` | SofaScore's away score object. |
| `homeTeamLogo` | The home team's logo. |
| `awayTeamLogo` | The away team's logo. |
| `tournament` | The tournament (a match), or the team's main competition (a team). |
| `uniqueTournament` | The competition (LaLiga, Wimbledon). |
| `tournamentId` | The competition's SofaScore id. |
| `category` | SofaScore's competition group: a country (Spain), or a tour (ATP, WTA, Challenger). |
| `country` | The country's name. |
| `countryCode` | The country's two-letter code. |
| `season` | The season's name (LaLiga 26/27). |
| `seasonId` | The season's SofaScore id. |
| `round` | The round's number. |
| `roundName` | The round's name (Round of 16, Final). |
| `venue` | The venue's name. |
| `venueCity` | The venue's city. |
| `venueCountry` | The venue's country. |
| `latitude` | The venue's latitude. |
| `longitude` | The venue's longitude. |
| `referee` | The referee's name. |
| `attendance` | The match's attendance. |
| `hasXg` | True when SofaScore has expected goals for the match. |
| `groundType` | Tennis: the court's surface. |
| `homeTeamSeed` | Tennis: the first player's seed. |
| `awayTeamSeed` | Tennis: the second player's seed. |
| `homeTeamRanking` | Tennis: the first player's ranking. |
| `awayTeamRanking` | Tennis: the second player's ranking. |
| `slug` | SofaScore's slug of the record. |
| `customId` | A match's pairing code (its link's last part). |
| `fullName` | A team's full name. |
| `shortName` | The short name. |
| `nameCode` | A team's three-letter code. |
| `gender` | M or F. |
| `national` | True for a national team. |
| `managerName` | A team's manager. |
| `managerId` | The manager's SofaScore id. |
| `venueCapacity` | The venue's capacity. |
| `teamColors` | A team's colours. |
| `foundationDate` | A team's foundation date. |
| `pregameForm` | A team's recent form (the last results, the average rating, the position). |
| `team` | The team a player, manager or ranked player belongs to. |
| `teamId` | Its SofaScore id. |
| `position` | A player's position (G, D, M, F). |
| `jerseyNumber` | A player's shirt number. |
| `height` | A player's height in cm. |
| `preferredFoot` | A player's preferred foot. |
| `dateOfBirth` | A player's or manager's date of birth. |
| `marketValue` | A player's market value. |
| `marketValueCurrency` | The market value's currency. |
| `contractUntil` | The end of a player's contract. |
| `preferredFormation` | A manager's preferred formation. |
| `games` | A referee's games. |
| `yellowCards` | A referee's yellow cards. |
| `redCards` | A referee's red cards. |
| `venueStatistics` | A venue's match statistics (matches, goals, win shares). |
| `titleHolder` | A competition's title holder. |
| `titleHolderTitles` | The title holder's titles. |
| `mostTitles` | The most titles any team has. |
| `tier` | A competition's tier. |
| `startDate` | A competition's start. |
| `endDate` | A competition's (or a race's) end. |
| `image` | The record's image or logo. |
| `ranking` | The ranking asked (atp, fifa, utrMen, …). |
| `rankingId` | The ranking's SofaScore id. |
| `rankingName` | The ranking's name. |
| `rankingUpdated` | When SofaScore last updated the ranking. |
| `rank` | The position in the ranking (a tennis player: their ranking). |
| `points` | The ranking points. |
| `previousRank` | The previous position. |
| `bestRank` | The best position. |
| `previousPoints` | The previous points. |
| `tournamentsPlayed` | Tournaments played (tennis). |
| `date` | The day a competition group row counts. |
| `totalEvents` | SofaScore's count of the group's matches that day. |
| `uniqueTournamentIds` | The group's competitions that day. |
| `searchQuery` | The keyword that found the record. |
| `searchRank` | Its position in SofaScore's results (1 = first). |
| `via` | The list the match came from (team 2829 last, tournament 8 next, live, day). |
| `sections` | The sections you asked for, each SofaScore's own object by name (statistics, lineups, incidents, odds, …); null for a section SofaScore did not serve. |
| `sectionsStatus` | Each asked section's state: served, empty (served with nothing in it), not_published (SofaScore has none for this record), refused (not served after a second ask) or cut (the run's time limit came first; the row went out with what was read). |
| `sectionsCount` | How many items each section holds (a lower league's statistics: 8; a top match: 135). |
| `heatmapPlayers` | The players whose touch heatmap is on the match row (with `includePlayerHeatmaps`: one `player-heatmap` event each); empty when not asked. |
| `raw` | SofaScore's own object of the record, whole. |
| `verdict` | On an input's row: COMPLETE (read whole; a day: every match SofaScore counts), LIST_END (SofaScore's list ended; a day: with its count), CAPPED (your cap), TRUNCATED (SofaScore's own limit: 500 ranking rows), PAGE_BOUND (40 pages of a long history), PARTIAL (stopped: `note` says why). |
| `rows_delivered` | On an input's row: the rows it delivered. |
| `source_count` | On an input's row: SofaScore's own count (a day's matches, the live board, a ranking's rows). |
| `note` | Why an input's row has the status or the verdict it has. |
| `scraped_at` | When this row was read (UTC). |

Example record:

```json
{
  "record_type": "match",
  "status": "ok",
  "input": "football:2026-11-18",
  "id": "17574032",
  "name": "Formación Metropolitana FC - Conejos de Tuxtepec",
  "sport": "football",
  "url": "https://www.sofascore.com/football/match/formacion-metropolitana-fc-conejos-de-tuxtepec/HXdesUKzh#id:17574032",
  "startTime": "2026-11-18T01:00:00Z",
  "startTimestamp": 1794963600,
  "statusType": "finished",
  "statusDescription": "Ended",
  "statusCode": 100,
  "homeTeam": "Formación Metropolitana FC",
  "homeTeamId": 936794,
  "awayTeam": "Conejos de Tuxtepec",
  "awayTeamId": 509882,
  "homeScore": 5,
  "awayScore": 1,
  "homeScoreHalftime": 2,
  "awayScoreHalftime": 1,
  "winner": "home",
  "homeScoreDetail": {
    "current": 5,
    "display": 5,
    "period1": 2,
    "period2": 3,
    "normaltime": 5
  },
  "awayScoreDetail": {
    "current": 1,
    "display": 1,
    "period1": 1,
    "period2": 0,
    "normaltime": 1
  },
  "homeTeamLogo": "https://img.sofascore.com/api/v1/team/936794/image",
  "awayTeamLogo": "https://img.sofascore.com/api/v1/team/509882/image",
  "tournament": "Liga TDP",
  "uniqueTournament": "Liga TDP",
  "tournamentId": 20341,
  "category": "Mexico",
  "country": "Mexico",
  "countryCode": "MX",
  "season": "26/27",
  "seasonId": 104598,
  "round": null,
  "roundName": null,
  "venue": null,
  "venueCity": null,
  "venueCountry": null,
  "latitude": null,
  "longitude": null,
  "referee": null,
  "attendance": null,
  "hasXg": null,
  "groundType": null,
  "homeTeamSeed": null,
  "awayTeamSeed": null,
  "homeTeamRanking": null,
  "awayTeamRanking": null,
  "slug": "formacion-metropolitana-fc-conejos-de-tuxtepec",
  "customId": "HXdesUKzh",
  "fullName": null,
  "shortName": null,
  "nameCode": null,
  "gender": null,
  "national": null,
  "managerName": null,
  "managerId": null,
  "venueCapacity": null,
  "teamColors": null,
  "foundationDate": null,
  "pregameForm": null,
  "team": null,
  "teamId": null,
  "position": null,
  "jerseyNumber": null,
  "height": null,
  "preferredFoot": null,
  "dateOfBirth": null,
  "marketValue": null,
  "marketValueCurrency": null,
  "contractUntil": null,
  "preferredFormation": null,
  "games": null,
  "yellowCards": null,
  "redCards": null,
  "venueStatistics": null,
  "titleHolder": null,
  "titleHolderTitles": null,
  "mostTitles": null,
  "tier": null,
  "startDate": null,
  "endDate": null,
  "image": null,
  "ranking": null,
  "rankingId": null,
  "rankingName": null,
  "rankingUpdated": null,
  "rank": null,
  "points": null,
  "previousRank": null,
  "bestRank": null,
  "previousPoints": null,
  "tournamentsPlayed": null,
  "date": null,
  "totalEvents": null,
  "uniqueTournamentIds": null,
  "searchQuery": null,
  "searchRank": null,
  "via": "day",
  "sections": null,
  "sectionsStatus": null,
  "sectionsCount": null,
  "heatmapPlayers": null,
  "raw": {
    "eventState": {},
    "tournament": {
      "name": "Liga TDP",
      "slug": "liga-tdp",
      "category": {
        "name": "Mexico",
        "slug": "mexico",
        "sport": {
          "name": "Football",
          "slug": "football",
          "id": 1
        },
        "priority": 0,
        "country": {
          "alpha2": "MX",
          "alpha3": "MEX",
          "name": "Mexico",
          "slug": "mexico"
        },
        "id": 12,
        "flag": "mexico",
        "alpha2": "MX"
      },
      "uniqueTournament": {
        "name": "Liga TDP",
        "slug": "liga-tdp",
        "category": {
          "name": "Mexico",
          "slug": "mexico",
          "sport": {
            "name": "Football",
            "slug": "football",
            "id": 1
          },
          "priority": 0,
          "country": {
            "alpha2": "MX",
            "alpha3": "MEX",
            "name": "Mexico",
            "slug": "mexico"
          },
          "id": 12,
          "flag": "mexico",
          "alpha2": "MX"
        },
        "userCount": 832,
        "hasPerformanceGraphFeature": false,
        "liveActivityEnabled": false,
        "country": {},
        "id": 20341,
        "hasEventPlayerStatistics": false,
        "displayInverseHomeAwayTeams": false
      },
      "priority": 0,
      "id": 114429
    },
    "season": {
      "name": "26/27",
      "year": "26/27",
      "editor": false,
      "id": 104598
    },
    "customId": "HXdesUKzh",
    "status": {
      "code": 100,
      "description": "Ended",
      "type": "finished"
    },
    "winnerCode": 1,
    "homeTeam": {
      "name": "Formación Metropolitana FC",
      "slug": "formacion-metropolitana-fc",
      "shortName": "Formación Metropolitana",
      "gender": "M",
      "sport": {
        "name": "Football",
        "slug": "football",
        "id": 1
      },
      "userCount": 133,
      "nameCode": "FMF",
      "disabled": false,
      "national": false,
      "type": 0,
      "country": {
        "alpha2": "MX",
        "alpha3": "MEX",
        "name": "Mexico",
        "slug": "mexico"
      },
      "id": 936794,
      "subTeams": [],
      "teamColors": {
        "primary": "#374df5",
        "secondary": "#374df5",
        "text": "#ffffff"
      }
    },
    "awayTeam": {
      "name": "Conejos de Tuxtepec",
      "slug": "conejos-de-tuxtepec",
      "shortName": "Conejos de Tuxtepec",
      "gender": "M",
      "sport": {
        "name": "Football",
        "slug": "football",
        "id": 1
      },
      "userCount": 65,
      "nameCode": "CTU",
      "disabled": false,
      "national": false,
      "type": 0,
      "country": {
        "alpha2": "MX",
        "alpha3": "MEX",
        "name": "Mexico",
        "slug": "mexico"
      },
      "id": 509882,
      "subTeams": [],
      "teamColors": {
        "primary": "#374df5",
        "secondary": "#374df5",
        "text": "#ffffff"
      }
    },
    "homeScore": {
      "current": 5,
      "display": 5,
      "period1": 2,
      "period2": 3,
      "normaltime": 5
    },
    "awayScore": {
      "current": 1,
      "display": 1,
      "period1": 1,
      "period2": 0,
      "normaltime": 1
    },
    "coverage": -1,
    "time": {
      "periodLength": 2700,
      "overtimeLength": 900,
      "totalPeriodCount": 2,
      "currentPeriodStartTimestamp": 1794968527
    },
    "changes": {
      "changes": [
        "status.code",
        "status.description",
        "status.type",
        "homeScore.normaltime",
        "awayScore.normaltime",
        "time.currentPeriodStart"
      ],
      "changeTimestamp": 1794971252
    },
    "hasGlobalHighlights": false,
    "crowdsourcingDataDisplayEnabled": false,
    "id": 17574032,
    "slug": "formacion-metropolitana-fc-conejos-de-tuxtepec",
    "startTimestamp": 1794963600,
    "finalResultOnly": false,
    "feedLocked": false,
    "isEditor": false,
    "eventFilters": {
      "category": [
        "club"
      ],
      "level": [
        "pro"
      ],
      "gender": [
        "M"
      ]
    }
  },
  "verdict": null,
  "rows_delivered": null,
  "source_count": null,
  "note": null,
  "scraped_at": "2026-11-18T12:59:11Z"
}
```

### Pricing

**Pay for the records a run delivers**, plus one run start. No platform usage is billed to you, and the price falls with your Apify plan.

| event | unit | Free | Starter | Scale | Business |
|---|---|---|---|---|---|
| SofaScore record (`result`) | per 1,000 | $1.53 | $1.3005 | $1.071 | $0.765 |
| Player heatmap (`player-heatmap`, with `includePlayerHeatmaps`) | per 1,000 players | $0.068 | $0.0578 | $0.0476 | $0.034 |
| Run start (`start`) | per run | $0.01994 | $0.01994 | $0.01994 | $0.01994 |

A record is **$1.53 per 1,000** on the Free plan ($0.00153 a row) and $1.3005 on Starter, with every section you ask for on it: statistics, lineups, incidents, odds, votes, head to head, shot map and the rest of the match page, a team's squad, a competition's standings. With `includePlayerHeatmaps`, each player whose heatmap SofaScore served adds **$0.000068** on the Free plan (a football match has 25-32 players who played); a heatmap SofaScore refuses adds nothing. Each run that delivers a charged record pays the **run start, $0.01994 once**: every run opens a real browser and passes SofaScore's check before the first call.

So the example (the search for Real Madrid and one match link, 21 records on 2026-11-18) costs $0.05207 on the Free plan and $0.0472505 on Starter; one match with every player's heatmap (32 players) $0.023646 and $0.0230901; 100 match rows $0.17294 and $0.14999; a football day of 900 matches $1.39694 and $1.19039. Free: every input's summary row (its verdict and SofaScore's count), a keyword with no result, an id SofaScore does not know, a match link without its id, a value that names nothing, a record the run already delivered (one row, one charge), a row your filters leave out, an input left unread at a cap, and a run that delivered no charged record (no run start either). A run that stops early (a timeout, an abort, the charge limit) is charged for the records it delivered.

Before the first request the log names the prices at your plan and what the run can cost: "at most" under `maxItems` (the heatmaps on top, one per player) and your charge limit. Enterprise plans have their own rates: the Actor's Pricing tab shows the price for your plan.

### Usage patterns

- **One match with every section** — Paste the match link (with its #id: part) or put the id in `matchIds`, turn on the sections you want (statistics, lineups and incidents are on), and add more in `matchSections`.
- **Today's fixtures** — Set `date` to today and pick the `sports`. Statistics, lineups and incidents are read for every match: turn them off for a fast fixtures list.
- **The live board** — Turn on `live` and pick the `sports`; filter by `statuses`, `tournaments`, `countries`, or for tennis `tennisCategories` and `tennisDraw`.
- **Teams, players and competitions** — Search by name or paste their links; `entityMatches` adds a team's or player's matches, `expandTournamentMatches` every match of a season, and the `…Sections` lists add their other sections.
- **Rankings** — List them in `rankings`: atp, wta, atpLive, wtaLive, utrMen, utrWomen, fifa, uefaClubs, uefaCountries, rugbyUnion, rugbyLeague, padelMen, padelWomen, or a SofaScore ranking id (UFC: 11 to 22).

### Input configuration

| field | type | default | what it does |
|---|---|---|---|
| `searchQueries` | `array` | `[]` | Names to look up on SofaScore: a team, player, competition, match, manager, referee or venue. Each result is read in full (its own record: a team's manager and venue, a player's profile), in SofaScore's own order. |
| `searchType` | `all` / `team` / `player` / `tournament` / `match` / `manager` / `referee` / `venue` | `"all"` | What a keyword looks for. 'all' is SofaScore's own mix of teams, players, competitions and matches. |
| `maxResultsPerQuery` | `integer` | `20` | The most results read for each keyword. SofaScore pages them by 20 and this Actor reads past the first page (44 teams for 'Real Madrid'). |
| `urls` | `array` | `[]` | Links of any SofaScore page: a match (with its #id: part, or /event/<id>), a team, player, competition (a season with #id:<season>), manager, referee, venue, a day's fixtures (/football/2026-11-18) or a ranking (/tennis/rankings/atp). Any host and language prefix works. A match link without #id: names a pairing, not a match: it gives a free row with the pair's last and next match ids. |
| `matchIds` | `array` | `[]` | SofaScore match (event) ids, such as 16421105. |
| `teamIds` | `array` | `[]` | SofaScore team ids, such as 2829 (Real Madrid). A tennis player is a team too. |
| `playerIds` | `array` | `[]` | SofaScore player ids, such as 826643. |
| `rankings` | `array` | `[]` | Rankings to read, one row per ranked team or player (SofaScore lists at most 500): uefaCountries, fifa, rugbyUnion, rugbyLeague, atp, wta, atpLive, wtaLive, uefaClubs, utrMen, utrWomen, padelMen, padelWomen, or a SofaScore ranking id (UFC weight classes are 11 to 22). |
| `live` | `boolean` | `false` | Read every match in play now in each of the sports below, in SofaScore's order. |
| `date` | `string` | `""` | Read every match of this day (YYYY-MM-DD, today, tomorrow or yesterday) in each of the sports below, across every competition SofaScore lists. Leave empty for no day job. |
| `daysAhead` | `integer` | `0` | Also read this many days after the date (0 = the one day). |
| `timezone` | `string` | `""` | The day's time zone: an IANA name (Europe/Madrid), UTC or an offset (+02:00). Empty = UTC. SofaScore counts a day per time zone. |
| `sports` | `array` | `[]` | The sports of the live board and the day's fixtures. None chosen = football. Motorsport gives its featured races. |
| `dayOverviewOnly` | `boolean` | `false` | Instead of the matches, one row per country or competition group of the day with its match count. |
| `statuses` | `array` | `[]` | Live board and day jobs: keep only matches in these states. |
| `tournaments` | `array` | `[]` | Live board and day jobs: keep only these competitions (SofaScore ids such as 8, or names such as LaLiga). Ids alone also skip the other groups' calls. |
| `countries` | `array` | `[]` | Live board and day jobs: keep only competitions of these countries (two-letter codes such as ES, or names such as Spain). |
| `tennisCategories` | `array` | `[]` | Tennis only: keep these tours (ATP, WTA, Challenger, ITF Men, ITF Women, UTR, …). |
| `tennisDraw` | `any` / `singles` / `doubles` | `"any"` | Tennis only: keep singles or doubles matches. |
| `entityMatches` | `none` / `last` / `next` / `both` | `"none"` | For a team, player, manager or referee you give: also their past matches, their next ones (teams), or both, one row each. |
| `expandTournamentMatches` | `boolean` | `false` | For a competition you give: also every match of its season, one row each. |
| `tournamentSeasons` | `current` / `all` | `"current"` | With every match of a competition: the current season (or the one you name), or all of them. |
| `season` | `string` | `""` | A competition's season by label (24/25, 2025) or id; empty = the current one. |
| `maxMatchesPerTarget` | `integer` | `0` | The most matches read for each team, player or competition, newest past matches first; with both lists, half past and half next (0 = to the list's end; a team's past matches reach back decades). |
| `includeStatistics` | `boolean` | `true` | Possession, shots, xG and the rest, by period. |
| `includeLineups` | `boolean` | `true` | Formations, players with their ratings and statistics, missing players; a predicted lineup before kick-off says confirmed false. |
| `includeIncidents` | `boolean` | `true` | Goals, cards, substitutions, period scores. |
| `includeOdds` | `boolean` | `false` | Every market, the featured market and the winning odds (fractional, as SofaScore shows them). |
| `includeVotes` | `boolean` | `false` | SofaScore's fan prediction poll. |
| `includeH2H` | `boolean` | `false` | The two teams' and the two managers' record against each other. |
| `includeShotmap` | `boolean` | `false` | Every shot with its xG, xGoT and pitch coordinates. |
| `includePlayerHeatmaps` | `boolean` | `false` | Each player's touches, for every player who played (one call a player). |
| `matchSections` | `array` | `[]` | Any other section of SofaScore's match page. A section SofaScore does not publish for a match is stated on the row (not_published). |
| `includeStandings` | `boolean` | `true` | A competition's table (total). |
| `tournamentSections` | `array` | `[]` | Any other section of a competition's season. |
| `includeSquad` | `boolean` | `false` | A team's players and staff. |
| `teamSections` | `array` | `[]` | Any other section of a team's page. |
| `playerSections` | `array` | `[]` | Any section of a player's page. |
| `includeTranslations` | `boolean` | `false` | Keep SofaScore's name translations (Arabic, Bengali, Hindi, Russian) in the objects. |
| `maxItems` | `integer` | `0` | The most charged rows of the whole run; 0 = no cap beyond your charge limit. |
| `feedback` | `string` |  | A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note. |

### Errors

**A run does not fail because of your input.** When an input cannot be used — a date that is not a date, an id in the wrong form, two settings that contradict each other — the run ends **Succeeded**, charges nothing, and says what to change:

- the status message starts with `INPUT REJECTED`;
- the dataset holds one row, `{"error": true, "code": "…", "message": "…"}`, and no results;
- the key-value store record `ERROR` holds the same object.

From code, check `error` on the first row before reading results.

A keyword with no result, an id SofaScore does not know or a section SofaScore does not publish is not an error: it is stated on a free row (or on the record's `sectionsStatus`), nothing is charged for it, and the run goes on with the rest. A run that ends **Failed** is a fault on our side, never your input; it charges nothing, and we are alerted.

### FAQ

**Do I need a SofaScore account or a proxy?**

No. The run reads SofaScore logged out, through its own residential connections, in a real browser that passes SofaScore's visitor check by itself.

**What if SofaScore has no statistics or lineups for a match?**

The row says so: `sectionsStatus` is `not_published` for that section (lower leagues and not-started matches have fewer), and `sectionsCount` says how many items each served section holds.

**Why does a match link give a free row?**

A SofaScore match link without its `#id:` part names the two teams' pairing, not one match. The free row names the pair's last and next match ids: paste the link with `#id:` or put the id in `matchIds`.

**How many matches does a day have?**

As many as SofaScore lists across every competition: 897 football matches on 18 November 2026 (UTC). The input's row compares the rows with SofaScore's own count.

**Is the data the same from every country?**

Yes: SofaScore served byte-identical odds, search results, fixtures and TV channels to US, German and Brazilian visitors, so the Actor has no country setting.

**Do I need Apify Proxy or my own proxy?**

No. The Actor uses its own connections, at no extra cost to you.

### Integration

Every call carries `maxItems`: a run from code charges at most that many rows, whatever its input.

#### JavaScript

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('hyperbach/sofascore-scraper').call({"urls": ["https://www.sofascore.com/football/match/valencia-real-madrid/DgbsEgb#id:16421105"], "includeOdds": true, "maxItems": 10});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

#### Python

```python
from apify_client import ApifyClient
client = ApifyClient('YOUR_TOKEN')
run = client.actor('hyperbach/sofascore-scraper').call(run_input={'urls': ['https://www.sofascore.com/football/match/valencia-real-madrid/DgbsEgb#id:16421105'], 'includeOdds': True, 'maxItems': 10})
items = client.dataset(run['defaultDatasetId']).list_items().items
```

#### CLI

```bash
apify call hyperbach/sofascore-scraper --input '{"urls": ["https://www.sofascore.com/football/match/valencia-real-madrid/DgbsEgb#id:16421105"], "includeOdds": true, "maxItems": 10}'
```

#### REST

```bash
curl -X POST "https://api.apify.com/v2/acts/hyperbach~sofascore-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H 'Content-Type: application/json' -d '{"urls": ["https://www.sofascore.com/football/match/valencia-real-madrid/DgbsEgb#id:16421105"], "includeOdds": true, "maxItems": 10}'
```

#### AI agents and MCP

Apify's MCP server offers this Actor as a tool to Claude, Cursor, VS Code and any other MCP client. Connect `https://mcp.apify.com?tools=hyperbach/sofascore-scraper` and ask, for example: "Get the football fixtures of today on SofaScore with their scores and statistics". The agent fills the input from the table above and reads the rows from the run's dataset. A field under the name another Actor gives it is read as this Actor's own: `queries`, `keywords`, `search`, `searchTerms` as `searchQueries`; `startUrls`, `url`, `links`, `matchUrls` as `urls`; `eventIds`, `matchId`, `eventId` as `matchIds`; `teamId`, `teams` as `teamIds` (and more). An agent or a person can add `feedback` to any run and say what was needed and not delivered: a missing field, a wrong or empty result, the Actor switched from or to, and why. The run returns the same rows at the same price, and a person reads every note.

#### n8n, Make and Zapier

The Apify node in n8n, the Apify app in Make and the Apify integration in Zapier run this Actor on a schedule or from a trigger and read its dataset. A webhook on the run's end (Integrations on the Actor page) sends the rows on to your own endpoint. Nothing to install on our side.

### Support

**Disagree with a charge?** Write to apify@hyperbach.com with the run ID. We will ask Apify to compensate you, and the charge comes back to your Apify account as platform credit.

**Did it do the job?** A short [review on the Store](https://apify.com/hyperbach/sofascore-scraper/reviews), at any rating, helps the next buyer choose.

### See also

- **[Eventbrite Scraper](https://apify.com/hyperbach/eventbrite-scraper)** — the events of a place on Eventbrite, with the dates, the venue, the price range and the organizer.
- **[Facebook Events Scraper](https://apify.com/hyperbach/facebook-events-scraper)** — Facebook events by search words and a city, event link or page: the start and end time in the event's own zone, the place with its address and coordinates, the hosts, the going and interested counts and the ticket link.
- **[Meetup Events Scraper](https://apify.com/hyperbach/meetup-scraper)** — Meetup events by keyword and city, group or event link: the start and end with the time zone, the venue or online, the group with its members and rating, the fee and the attendee count.

*This page is generated from the Actor's schemas and a live sample — it cannot describe a field the Actor does not have.*

# Actor input Schema

## `searchQueries` (type: `array`):

Names to look up on SofaScore: a team, player, competition, match, manager, referee or venue. Each result is read in full (its own record: a team's manager and venue, a player's profile), in SofaScore's own order.

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

What a keyword looks for. 'all' is SofaScore's own mix of teams, players, competitions and matches.

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

The most results read for each keyword. SofaScore pages them by 20 and this Actor reads past the first page (44 teams for 'Real Madrid').

## `urls` (type: `array`):

Links of any SofaScore page: a match (with its #id: part, or /event/<id>), a team, player, competition (a season with #id:<season>), manager, referee, venue, a day's fixtures (/football/2026-11-18) or a ranking (/tennis/rankings/atp). Any host and language prefix works. A match link without #id: names a pairing, not a match: it gives a free row with the pair's last and next match ids.

## `matchIds` (type: `array`):

SofaScore match (event) ids, such as 16421105.

## `teamIds` (type: `array`):

SofaScore team ids, such as 2829 (Real Madrid). A tennis player is a team too.

## `playerIds` (type: `array`):

SofaScore player ids, such as 826643.

## `rankings` (type: `array`):

Rankings to read, one row per ranked team or player (SofaScore lists at most 500): uefaCountries, fifa, rugbyUnion, rugbyLeague, atp, wta, atpLive, wtaLive, uefaClubs, utrMen, utrWomen, padelMen, padelWomen, or a SofaScore ranking id (UFC weight classes are 11 to 22).

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

Read every match in play now in each of the sports below, in SofaScore's order.

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

Read every match of this day (YYYY-MM-DD, today, tomorrow or yesterday) in each of the sports below, across every competition SofaScore lists. Leave empty for no day job.

## `daysAhead` (type: `integer`):

Also read this many days after the date (0 = the one day).

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

The day's time zone: an IANA name (Europe/Madrid), UTC or an offset (+02:00). Empty = UTC. SofaScore counts a day per time zone.

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

The sports of the live board and the day's fixtures. None chosen = football. Motorsport gives its featured races.

## `dayOverviewOnly` (type: `boolean`):

Instead of the matches, one row per country or competition group of the day with its match count.

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

Live board and day jobs: keep only matches in these states.

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

Live board and day jobs: keep only these competitions (SofaScore ids such as 8, or names such as LaLiga). Ids alone also skip the other groups' calls.

## `countries` (type: `array`):

Live board and day jobs: keep only competitions of these countries (two-letter codes such as ES, or names such as Spain).

## `tennisCategories` (type: `array`):

Tennis only: keep these tours (ATP, WTA, Challenger, ITF Men, ITF Women, UTR, …).

## `tennisDraw` (type: `string`):

Tennis only: keep singles or doubles matches.

## `entityMatches` (type: `string`):

For a team, player, manager or referee you give: also their past matches, their next ones (teams), or both, one row each.

## `expandTournamentMatches` (type: `boolean`):

For a competition you give: also every match of its season, one row each.

## `tournamentSeasons` (type: `string`):

With every match of a competition: the current season (or the one you name), or all of them.

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

A competition's season by label (24/25, 2025) or id; empty = the current one.

## `maxMatchesPerTarget` (type: `integer`):

The most matches read for each team, player or competition, newest past matches first; with both lists, half past and half next (0 = to the list's end; a team's past matches reach back decades).

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

Possession, shots, xG and the rest, by period.

## `includeLineups` (type: `boolean`):

Formations, players with their ratings and statistics, missing players; a predicted lineup before kick-off says confirmed false.

## `includeIncidents` (type: `boolean`):

Goals, cards, substitutions, period scores.

## `includeOdds` (type: `boolean`):

Every market, the featured market and the winning odds (fractional, as SofaScore shows them).

## `includeVotes` (type: `boolean`):

SofaScore's fan prediction poll.

## `includeH2H` (type: `boolean`):

The two teams' and the two managers' record against each other.

## `includeShotmap` (type: `boolean`):

Every shot with its xG, xGoT and pitch coordinates.

## `includePlayerHeatmaps` (type: `boolean`):

Each player's touches, for every player who played (one call a player).

## `matchSections` (type: `array`):

Any other section of SofaScore's match page. A section SofaScore does not publish for a match is stated on the row (not_published).

## `includeStandings` (type: `boolean`):

A competition's table (total).

## `tournamentSections` (type: `array`):

Any other section of a competition's season.

## `includeSquad` (type: `boolean`):

A team's players and staff.

## `teamSections` (type: `array`):

Any other section of a team's page.

## `playerSections` (type: `array`):

Any section of a player's page.

## `includeTranslations` (type: `boolean`):

Keep SofaScore's name translations (Arabic, Bengali, Hindi, Russian) in the objects.

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

The most charged rows of the whole run; 0 = no cap beyond your charge limit.

## `feedback` (type: `string`):

A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note.

## Actor input object example

```json
{
  "searchQueries": [
    "Real Madrid"
  ],
  "searchType": "all",
  "maxResultsPerQuery": 20,
  "urls": [
    "https://www.sofascore.com/football/match/valencia-real-madrid/DgbsEgb#id:16421105"
  ],
  "matchIds": [],
  "teamIds": [],
  "playerIds": [],
  "rankings": [],
  "live": false,
  "date": "",
  "daysAhead": 0,
  "timezone": "",
  "sports": [],
  "dayOverviewOnly": false,
  "statuses": [],
  "tournaments": [],
  "countries": [],
  "tennisCategories": [],
  "tennisDraw": "any",
  "entityMatches": "none",
  "expandTournamentMatches": false,
  "tournamentSeasons": "current",
  "season": "",
  "maxMatchesPerTarget": 0,
  "includeStatistics": true,
  "includeLineups": true,
  "includeIncidents": true,
  "includeOdds": false,
  "includeVotes": false,
  "includeH2H": false,
  "includeShotmap": false,
  "includePlayerHeatmaps": false,
  "matchSections": [],
  "includeStandings": true,
  "tournamentSections": [],
  "includeSquad": false,
  "teamSections": [],
  "playerSections": [],
  "includeTranslations": false,
  "maxItems": 50
}
```

# Actor output Schema

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

All scraped records in the default dataset. One row per SofaScore record (`record_type`: match, team, player, tournament, manager, referee, venue, ranking, category or stage), and one free row per input (`record_type` target) with its verdict:

# 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 = {
    "searchQueries": [
        "Real Madrid"
    ],
    "urls": [
        "https://www.sofascore.com/football/match/valencia-real-madrid/DgbsEgb#id:16421105"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("hyperbach/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 = {
    "searchQueries": ["Real Madrid"],
    "urls": ["https://www.sofascore.com/football/match/valencia-real-madrid/DgbsEgb#id:16421105"],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("hyperbach/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 '{
  "searchQueries": [
    "Real Madrid"
  ],
  "urls": [
    "https://www.sofascore.com/football/match/valencia-real-madrid/DgbsEgb#id:16421105"
  ],
  "maxItems": 50
}' |
apify call hyperbach/sofascore-scraper --silent --output-dataset

```

## MCP server setup

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