{
  "openapi": "3.0.1",
  "info": {
    "title": "SofaScore Scraper: Live Scores, Football & Tennis Stats, Odds",
    "description": "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.",
    "version": "0.1",
    "x-build-id": "QoNQEuKyNDW89mUPf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hyperbach~sofascore-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hyperbach-sofascore-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/hyperbach~sofascore-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hyperbach-sofascore-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/hyperbach~sofascore-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hyperbach-sofascore-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "searchQueries": {
            "title": "Search keywords",
            "maxItems": 1000,
            "type": "array",
            "description": "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.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "Search kind",
            "enum": [
              "all",
              "team",
              "player",
              "tournament",
              "match",
              "manager",
              "referee",
              "venue"
            ],
            "type": "string",
            "description": "What a keyword looks for. 'all' is SofaScore's own mix of teams, players, competitions and matches.",
            "default": "all"
          },
          "maxResultsPerQuery": {
            "title": "Results per keyword",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "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').",
            "default": 20
          },
          "urls": {
            "title": "SofaScore links",
            "maxItems": 5000,
            "type": "array",
            "description": "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.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "matchIds": {
            "title": "Match ids",
            "maxItems": 5000,
            "type": "array",
            "description": "SofaScore match (event) ids, such as 16421105.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "teamIds": {
            "title": "Team ids",
            "maxItems": 5000,
            "type": "array",
            "description": "SofaScore team ids, such as 2829 (Real Madrid). A tennis player is a team too.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "playerIds": {
            "title": "Player ids",
            "maxItems": 5000,
            "type": "array",
            "description": "SofaScore player ids, such as 826643.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "rankings": {
            "title": "Rankings",
            "maxItems": 50,
            "type": "array",
            "description": "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).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "live": {
            "title": "Live matches",
            "type": "boolean",
            "description": "Read every match in play now in each of the sports below, in SofaScore's order.",
            "default": false
          },
          "date": {
            "title": "Fixtures date",
            "pattern": "^(|today|tomorrow|yesterday|\\d{4}-\\d{2}-\\d{2})$",
            "type": "string",
            "description": "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.",
            "default": ""
          },
          "daysAhead": {
            "title": "Days after the date",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Also read this many days after the date (0 = the one day).",
            "default": 0
          },
          "timezone": {
            "title": "Time zone of the day",
            "type": "string",
            "description": "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.",
            "default": ""
          },
          "sports": {
            "title": "Sports",
            "type": "array",
            "description": "The sports of the live board and the day's fixtures. None chosen = football. Motorsport gives its featured races.",
            "items": {
              "type": "string",
              "enum": [
                "football",
                "basketball",
                "tennis",
                "ice-hockey",
                "american-football",
                "baseball",
                "handball",
                "volleyball",
                "cricket",
                "rugby",
                "table-tennis",
                "esports",
                "mma",
                "darts",
                "snooker",
                "futsal",
                "badminton",
                "waterpolo",
                "cycling",
                "motorsport",
                "minifootball",
                "floorball",
                "bandy",
                "padel",
                "aussie-rules",
                "beach-volley"
              ],
              "enumTitles": [
                "Football",
                "Basketball",
                "Tennis",
                "Ice Hockey",
                "American Football",
                "Baseball",
                "Handball",
                "Volleyball",
                "Cricket",
                "Rugby",
                "Table Tennis",
                "Esports",
                "MMA",
                "Darts",
                "Snooker",
                "Futsal",
                "Badminton",
                "Water polo",
                "Cycling",
                "Motorsport",
                "Mini football",
                "Floorball",
                "Bandy",
                "Padel",
                "Aussie rules",
                "Beach volley"
              ]
            },
            "default": []
          },
          "dayOverviewOnly": {
            "title": "Day overview only",
            "type": "boolean",
            "description": "Instead of the matches, one row per country or competition group of the day with its match count.",
            "default": false
          },
          "statuses": {
            "title": "Match status filter",
            "type": "array",
            "description": "Live board and day jobs: keep only matches in these states.",
            "items": {
              "type": "string",
              "enum": [
                "notstarted",
                "inprogress",
                "finished",
                "postponed",
                "canceled",
                "interrupted"
              ],
              "enumTitles": [
                "notstarted",
                "inprogress",
                "finished",
                "postponed",
                "canceled",
                "interrupted"
              ]
            },
            "default": []
          },
          "tournaments": {
            "title": "Competition filter",
            "maxItems": 500,
            "type": "array",
            "description": "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.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Country filter",
            "maxItems": 500,
            "type": "array",
            "description": "Live board and day jobs: keep only competitions of these countries (two-letter codes such as ES, or names such as Spain).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "tennisCategories": {
            "title": "Tennis tour filter",
            "maxItems": 50,
            "type": "array",
            "description": "Tennis only: keep these tours (ATP, WTA, Challenger, ITF Men, ITF Women, UTR, …).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "tennisDraw": {
            "title": "Tennis singles or doubles",
            "enum": [
              "any",
              "singles",
              "doubles"
            ],
            "type": "string",
            "description": "Tennis only: keep singles or doubles matches.",
            "default": "any"
          },
          "entityMatches": {
            "title": "Matches of each team or player",
            "enum": [
              "none",
              "last",
              "next",
              "both"
            ],
            "type": "string",
            "description": "For a team, player, manager or referee you give: also their past matches, their next ones (teams), or both, one row each.",
            "default": "none"
          },
          "expandTournamentMatches": {
            "title": "Every match of a competition",
            "type": "boolean",
            "description": "For a competition you give: also every match of its season, one row each.",
            "default": false
          },
          "tournamentSeasons": {
            "title": "Which seasons",
            "enum": [
              "current",
              "all"
            ],
            "type": "string",
            "description": "With every match of a competition: the current season (or the one you name), or all of them.",
            "default": "current"
          },
          "season": {
            "title": "Season",
            "type": "string",
            "description": "A competition's season by label (24/25, 2025) or id; empty = the current one.",
            "default": ""
          },
          "maxMatchesPerTarget": {
            "title": "Matches per team, player or competition",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "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).",
            "default": 0
          },
          "includeStatistics": {
            "title": "Match statistics",
            "type": "boolean",
            "description": "Possession, shots, xG and the rest, by period.",
            "default": true
          },
          "includeLineups": {
            "title": "Lineups",
            "type": "boolean",
            "description": "Formations, players with their ratings and statistics, missing players; a predicted lineup before kick-off says confirmed false.",
            "default": true
          },
          "includeIncidents": {
            "title": "Incidents",
            "type": "boolean",
            "description": "Goals, cards, substitutions, period scores.",
            "default": true
          },
          "includeOdds": {
            "title": "Betting odds",
            "type": "boolean",
            "description": "Every market, the featured market and the winning odds (fractional, as SofaScore shows them).",
            "default": false
          },
          "includeVotes": {
            "title": "Fan votes",
            "type": "boolean",
            "description": "SofaScore's fan prediction poll.",
            "default": false
          },
          "includeH2H": {
            "title": "Head to head",
            "type": "boolean",
            "description": "The two teams' and the two managers' record against each other.",
            "default": false
          },
          "includeShotmap": {
            "title": "Shot map",
            "type": "boolean",
            "description": "Every shot with its xG, xGoT and pitch coordinates.",
            "default": false
          },
          "includePlayerHeatmaps": {
            "title": "Player heatmaps",
            "type": "boolean",
            "description": "Each player's touches, for every player who played (one call a player).",
            "default": false
          },
          "matchSections": {
            "title": "More match sections",
            "type": "array",
            "description": "Any other section of SofaScore's match page. A section SofaScore does not publish for a match is stated on the row (not_published).",
            "items": {
              "type": "string",
              "enum": [
                "momentum",
                "bestPlayers",
                "pregameForm",
                "managers",
                "teamStreaks",
                "highlights",
                "averagePositions",
                "commentary",
                "postMatchInsights",
                "weather",
                "pointByPoint",
                "tennisPower",
                "innings",
                "atBats",
                "esportsGames",
                "series",
                "news",
                "socialPosts",
                "teamHeatmaps",
                "tvChannels",
                "winProbability",
                "h2hMatches"
              ],
              "enumTitles": [
                "momentum",
                "bestPlayers",
                "pregameForm",
                "managers",
                "teamStreaks",
                "highlights",
                "averagePositions",
                "commentary",
                "postMatchInsights",
                "weather",
                "pointByPoint",
                "tennisPower",
                "innings",
                "atBats",
                "esportsGames",
                "series",
                "news",
                "socialPosts",
                "teamHeatmaps",
                "tvChannels",
                "winProbability",
                "h2hMatches"
              ]
            },
            "default": []
          },
          "includeStandings": {
            "title": "Standings",
            "type": "boolean",
            "description": "A competition's table (total).",
            "default": true
          },
          "tournamentSections": {
            "title": "More competition sections",
            "type": "array",
            "description": "Any other section of a competition's season.",
            "items": {
              "type": "string",
              "enum": [
                "standingsHomeAway",
                "seasonInfo",
                "rounds",
                "cupTrees",
                "groups",
                "topPlayers",
                "topPlayersPerGame",
                "topTeams",
                "topRatings",
                "teamOfTheWeek",
                "awards",
                "topFollowedPlayers",
                "winners",
                "venues",
                "teams",
                "featuredMatches",
                "media",
                "playerStatistics"
              ],
              "enumTitles": [
                "standingsHomeAway",
                "seasonInfo",
                "rounds",
                "cupTrees",
                "groups",
                "topPlayers",
                "topPlayersPerGame",
                "topTeams",
                "topRatings",
                "teamOfTheWeek",
                "awards",
                "topFollowedPlayers",
                "winners",
                "venues",
                "teams",
                "featuredMatches",
                "media",
                "playerStatistics"
              ]
            },
            "default": []
          },
          "includeSquad": {
            "title": "Squad",
            "type": "boolean",
            "description": "A team's players and staff.",
            "default": false
          },
          "teamSections": {
            "title": "More team sections",
            "type": "array",
            "description": "Any other section of a team's page.",
            "items": {
              "type": "string",
              "enum": [
                "transfers",
                "achievements",
                "rankings",
                "performance",
                "nearEvents",
                "competitions",
                "featuredPlayers",
                "grandSlamResults",
                "media",
                "socialPosts",
                "seasonStatistics",
                "seasonTopPlayers",
                "seasonPlayerStatistics"
              ],
              "enumTitles": [
                "transfers",
                "achievements",
                "rankings",
                "performance",
                "nearEvents",
                "competitions",
                "featuredPlayers",
                "grandSlamResults",
                "media",
                "socialPosts",
                "seasonStatistics",
                "seasonTopPlayers",
                "seasonPlayerStatistics"
              ]
            },
            "default": []
          },
          "playerSections": {
            "title": "Player sections",
            "type": "array",
            "description": "Any section of a player's page.",
            "items": {
              "type": "string",
              "enum": [
                "attributes",
                "characteristics",
                "transfers",
                "nationalTeam",
                "careerStatistics",
                "competitions",
                "lastYearSummary",
                "media",
                "seasonStatistics",
                "seasonRatings",
                "seasonHeatmap",
                "penaltyHistory"
              ],
              "enumTitles": [
                "attributes",
                "characteristics",
                "transfers",
                "nationalTeam",
                "careerStatistics",
                "competitions",
                "lastYearSummary",
                "media",
                "seasonStatistics",
                "seasonRatings",
                "seasonHeatmap",
                "penaltyHistory"
              ]
            },
            "default": []
          },
          "includeTranslations": {
            "title": "Name translations",
            "type": "boolean",
            "description": "Keep SofaScore's name translations (Arabic, Bengali, Hindi, Russian) in the objects.",
            "default": false
          },
          "maxItems": {
            "title": "Max results (whole run)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most charged rows of the whole run; 0 = no cap beyond your charge limit.",
            "default": 0
          },
          "feedback": {
            "title": "Feedback to the maintainers",
            "maxLength": 2000,
            "type": "string",
            "description": "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."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}