Sofascore Live Scores & Match Stats Scraper
Pricing
from $6.15 / 1,000 results
Sofascore Live Scores & Match Stats Scraper
Scrape live football scores, fixtures, results, lineups, player ratings and match statistics from Sofascore. Track the World Cup and any league by tournament or match. Export to JSON, CSV or Excel.
Pricing
from $6.15 / 1,000 results
Rating
0.0
(0)
Developer
Scrapers Lat
Maintained by CommunityActor stats
0
Bookmarked
6
Total users
1
Monthly active users
12 hours ago
Last modified
Categories
Share
Sofascore Live Scores & Match Stats Scraper
Here is one real result, with every field the actor returns (the statistics and incidents arrays are trimmed here with ... to keep the example readable; live records return them in full):
{"eventId": 16588759,"slug": "ostrovets-fc-minsk-2","status": "inprogress","statusDescription": "1st half","minute": 8,"startTime": "2026-08-10T14:30:00.000Z","tournament": "Pershaya Liga","category": "Belarus","season": "Pershaya Liga 2026","round": "Round 19","homeTeam": "FC Minsk 2","homeTeamId": 100887,"homeTeamCountry": "Belarus","awayTeam": "Ostrovets","awayTeamId": 345530,"awayTeamCountry": "Belarus","homeScore": 0,"awayScore": 0,"homeScoreHalftime": 0,"awayScoreHalftime": 0,"homePenalties": null,"awayPenalties": null,"winner": null,"hasStatistics": null,"venue": null,"venueCity": null,"venueCountry": null,"venueCapacity": null,"referee": null,"attendance": null,"url": "https://www.sofascore.com/ostrovets-fc-minsk-2/MrPsFkNc","statistics": [{ "group": "Match overview", "name": "Corner kicks", "home": "0", "away": "0" },{ "group": "Attack", "name": "Offsides", "home": "0", "away": "0" }],"lineups": null,"incidents": [{ "type": "period", "detail": "First half", "minute": 45, "addedTime": 999, "team": null, "player": null, "assist": null, "playerIn": null, "playerOut": null, "homeScore": 0, "awayScore": 0, "reason": null }],"observedAt": "2026-08-10T14:39:38.896Z","error": null}
The most complete Sofascore match scraper available. It returns every field a Sofascore event exposes per match, plus half-time and penalty scores, team country, and full detail (statistics, lineups, incidents, venue, referee and attendance) when you enable it, across 11 sports, live matches, tournament fixtures or individual match ids.
📥 Input · 📤 Output · 💰 Pricing · ▶️ Examples
Table of contents
- What it does
- Quickstart
- Input reference
- Output reference
- Example output record
- Run via API and CLI
- Fetch results
- Billing and limits
- FAQ and troubleshooting
What it does
The actor reads Sofascore and writes one normalized record per match to the run's dataset. It runs in three modes: live matches (every game in play right now for a chosen sport), tournament fixtures (results and upcoming matches for one competition, with optional standings), and single matches by id. Each record carries scores, half-time and penalty scores, status, tournament, round, both teams with ids and countries, and the match URL.
With withDetails on (the default) each match also gets full statistics, starting lineups with player ratings and formations, timeline incidents (goals, cards, substitutions), venue, referee and attendance. Detail fields are null when the source has not published them yet, for example before kickoff.
Quickstart
Open the actor, paste this into the input, and press Run. It returns up to 10 football matches in play right now, with full statistics.
{"mode": "live-matches","sport": "football","maxMatches": 10,"withDetails": true}
Every input field is optional. With an empty input the actor defaults to live football matches, so a run always returns data.
Input reference
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
mode | enum | no | live-matches | What to scrape. live-matches (every game in play now), tournament-events (fixtures and results for one competition), or event-detail (specific matches by id). |
sport | enum | no | football | Sport for live matches mode. One of football, basketball, tennis, ice-hockey, baseball, american-football, rugby, cricket, handball, volleyball, mma. |
maxMatches | integer | no | 10 | Maximum number of matches to collect. Free Apify plans are capped at 10 per run. |
withDetails | boolean | no | true | When on, adds lineups, player ratings, formations, statistics, incidents, venue, referee and attendance to each match. Adds two requests per match. |
tournamentId | integer | no | 16 | Numeric tournament id for tournament fixtures mode. Defaults to 16 (FIFA World Cup). Examples: 17 Premier League, 8 LaLiga, 35 Bundesliga, 34 Ligue 1, 23 Serie A, 7 UEFA Champions League, 384 Copa Libertadores. |
seasonId | integer | no | (latest) | Optional numeric season id. Leave empty to use the most recent season of the chosen tournament automatically. |
includeStandings | boolean | no | false | Also collect the league or group standings table for the tournament and season. |
eventIds | string[] | no | (empty) | Numeric match ids for single matches mode, one per line. |
Output reference
One dataset item per match. Types: string, integer, object[], object, or null when the source value is absent. Detail fields (statistics, lineups, incidents, venue, referee, attendance) are populated only when withDetails is on and the source has published them.
| Field | Type | Description |
|---|---|---|
eventId | integer | Sofascore match identifier. |
slug | string | URL slug for the match. |
status | string | Match status code, for example inprogress, finished, notstarted. |
statusDescription | string | Human-readable status, for example 1st half. |
minute | integer | Current match minute for live games, or null. |
startTime | string | ISO 8601 kickoff time. |
tournament | string | Tournament or competition name. |
category | string | Category or country of the tournament. |
season | string | Season name. |
round | string | Round or matchday label. |
homeTeam | string | Home team name. |
homeTeamId | integer | Sofascore id of the home team. |
homeTeamCountry | string | Country of the home team. |
awayTeam | string | Away team name. |
awayTeamId | integer | Sofascore id of the away team. |
awayTeamCountry | string | Country of the away team. |
homeScore | integer | Home team current score. |
awayScore | integer | Away team current score. |
homeScoreHalftime | integer | Home team half-time score, or null. |
awayScoreHalftime | integer | Away team half-time score, or null. |
homePenalties | integer | Home team penalty shootout score, or null. |
awayPenalties | integer | Away team penalty shootout score, or null. |
winner | string | Winner (home, away, draw), or null while undecided. |
hasStatistics | boolean | Whether the match has published statistics, or null. |
venue | string | Venue name, or null. |
venueCity | string | Venue city, or null. |
venueCountry | string | Venue country, or null. |
venueCapacity | integer | Venue capacity, or null. |
referee | string | Match referee, or null. |
attendance | integer | Reported attendance, or null. |
url | string | Public Sofascore match URL. |
statistics | object[] | Match statistics as {group, name, home, away} entries. null until published. |
lineups | object | Starting lineups, formations and player ratings. null until published. |
incidents | object[] | Timeline events (goals, cards, substitutions, periods). null until published. |
observedAt | string | ISO 8601 timestamp of when the record was collected. |
error | string | null on success. On a failed run, a single item with a populated error field is written instead. |
Example output record
Real record from a live run (input {"mode":"live-matches","sport":"football","maxMatches":10,"withDetails":true}). The statistics and incidents arrays are trimmed here with ...; live records return them in full:
{"eventId": 16588759,"slug": "ostrovets-fc-minsk-2","status": "inprogress","statusDescription": "1st half","minute": 8,"startTime": "2026-08-10T14:30:00.000Z","tournament": "Pershaya Liga","category": "Belarus","season": "Pershaya Liga 2026","round": "Round 19","homeTeam": "FC Minsk 2","homeTeamId": 100887,"homeTeamCountry": "Belarus","awayTeam": "Ostrovets","awayTeamId": 345530,"awayTeamCountry": "Belarus","homeScore": 0,"awayScore": 0,"homeScoreHalftime": 0,"awayScoreHalftime": 0,"winner": null,"url": "https://www.sofascore.com/ostrovets-fc-minsk-2/MrPsFkNc","statistics": [{ "group": "Match overview", "name": "Corner kicks", "home": "0", "away": "0" }],"incidents": [{ "type": "period", "detail": "First half", "minute": 45, "team": null, "player": null }],"observedAt": "2026-08-10T14:39:38.896Z","error": null}
Run via API and CLI
Start a run and wait for it to finish, then read the dataset. Replace <TOKEN> with your Apify API token.
Run synchronously and get dataset items in one call:
curl -X POST "https://api.apify.com/v2/acts/scrapers_lat~sofascore-scraper/run-sync-get-dataset-items?token=<TOKEN>" \-H "Content-Type: application/json" \-d '{"mode":"live-matches","sport":"football","maxMatches":25,"withDetails":true}'
Start a run asynchronously:
curl -X POST "https://api.apify.com/v2/acts/scrapers_lat~sofascore-scraper/runs?token=<TOKEN>" \-H "Content-Type: application/json" \-d '{"mode":"tournament-events","tournamentId":17,"includeStandings":true}'
Apify CLI:
apify call scrapers_lat/sofascore-scraper \--input '{"mode":"event-detail","eventIds":["16588759"]}'
Fetch results
Every run writes to a dataset. Fetch items as JSON, CSV, or Excel by changing format:
# JSONcurl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?token=<TOKEN>&clean=true&format=json"# CSVcurl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?token=<TOKEN>&clean=true&format=csv"# Paginate large datasetscurl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?token=<TOKEN>&offset=1000&limit=1000"
<DATASET_ID> is returned as defaultDatasetId in the run object. Use offset and limit to page through large result sets. clean=true drops empty and internal fields.
Billing and limits
- Pay per result. You are charged per match returned (
resultevent). See the pricing tab for the current per-result price. - No charge on failure. If a run errors, the actor writes a single item with a populated
errorfield and does not charge for it. Empty runs cost nothing. - Spend cap respected. Set
maxTotalChargeUsdon the run; once reached, the actor stops emitting and charging further billable results. - Free Apify plans are capped at 10 matches per run. Upgrade for higher
maxMatches.
FAQ and troubleshooting
Why are statistics, lineups or incidents null?
The source has not published them yet, for example before kickoff, or withDetails is off. Missing source values are returned as null, never invented.
How do I scrape a specific league?
Set mode to tournament-events and pass its tournamentId (for example 17 for the Premier League). Add includeStandings for the table.
Which sports are supported?
Eleven: football, basketball, tennis, ice hockey, baseball, American football, rugby, cricket, handball, volleyball and MMA. Set sport in live matches mode.
Can I pull one specific match?
Yes. Set mode to event-detail and pass the match ids in eventIds.
Is this an official Sofascore tool? No. This actor is independent and has no affiliation with Sofascore. It reads only publicly available match data. Use the results in accordance with the source's terms.
Related scrapers
- ESPN Soccer Scraper: Soccer scores, standings and teams from ESPN.
- FIFA World Cup Scraper: World Cup matches, standings and teams.
More scrapers at scrapers.lat
Built and maintained by scrapers.lat, where we publish scrapers for public platforms: company registries, government data, finance, e-commerce and more. Browse the catalog or request a custom scraper at scrapers.lat.
Independent tool, not affiliated with Sofascore. Accesses only publicly available match data. Use the results in accordance with the source's terms.
