{
  "openapi": "3.0.1",
  "info": {
    "title": "Sofascore Scraper: Matches, Lineups, Stats, Odds",
    "description": "Scrape Sofascore by date, live or tournament: scores for football, tennis, basketball and 20 more sports, with statistics, lineups and ratings, incidents, odds, fan votes, head-to-head, team and player profiles and standings. No login.",
    "version": "0.1",
    "x-build-id": "LdKxTeMgw6ddUQCO5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/themineworks~sofascore-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-themineworks-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/themineworks~sofascore-scraper/runs": {
      "post": {
        "operationId": "runs-sync-themineworks-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/themineworks~sofascore-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-themineworks-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": {
          "mode": {
            "title": "What to get",
            "enum": [
              "fixtures",
              "live",
              "tournament",
              "standings",
              "teams",
              "players",
              "matches"
            ],
            "type": "string",
            "description": "fixtures: every match of the dates below for one sport, most followed competitions first. live: matches in play now. tournament: matches of a tournament season. standings: league tables. teams: team profiles. players: player profiles. matches: exact matches by id or link.",
            "default": "fixtures"
          },
          "sport": {
            "title": "Sport",
            "enum": [
              "football",
              "basketball",
              "tennis",
              "ice-hockey",
              "baseball",
              "american-football",
              "volleyball",
              "handball",
              "cricket",
              "rugby",
              "mma",
              "esports",
              "table-tennis",
              "futsal",
              "darts",
              "snooker",
              "badminton",
              "water-polo",
              "aussie-rules",
              "floorball",
              "minifootball",
              "beach-volleyball",
              "bandy",
              "padel"
            ],
            "type": "string",
            "description": "Used by Matches by date and Live matches now. Tennis players, darts players and fighters are teams on Sofascore, so tennis rows put the two players in home_team and away_team.",
            "default": "football"
          },
          "dates": {
            "title": "Dates (Matches by date)",
            "type": "array",
            "description": "One date per line: YYYY-MM-DD, today, tomorrow, yesterday, or an offset such as +2 or -1. Days are UTC days. Up to 31 dates.",
            "items": {
              "type": "string"
            }
          },
          "onlyTournamentIds": {
            "title": "Only these tournaments (optional)",
            "type": "array",
            "description": "Sofascore unique tournament ids, one per line, to keep only those competitions in Matches by date, Live and the paged lists. Example: 17 is the Premier League, 7 the Champions League. The id is in tournament_id of every row.",
            "items": {
              "type": "string"
            }
          },
          "matchStatus": {
            "title": "Match status filter",
            "enum": [
              "any",
              "notstarted",
              "inprogress",
              "finished"
            ],
            "type": "string",
            "description": "Keep only matches that have not started, are in play, or have finished.",
            "default": "any"
          },
          "targets": {
            "title": "Targets (tournament, standings, team, player, match modes)",
            "type": "array",
            "description": "One per line: a Sofascore link, a numeric id, or a name. Example: https://www.sofascore.com/football/team/arsenal/42, 839956, Premier League, Novak Djokovic. A name is resolved with Sofascore search (see searchResults). Match mode takes match ids or links that end with #id:<number> or /event/<number>.",
            "items": {
              "type": "string"
            }
          },
          "searchResults": {
            "title": "Search hits per name",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many search hits to follow for each name in targets, 1 to 10.",
            "default": 1
          },
          "season": {
            "title": "Season (tournament and standings modes)",
            "type": "string",
            "description": "Leave empty for the latest season. Or give a label such as 25/26 or 2025, or a season id."
          },
          "tournamentMatches": {
            "title": "Tournament matches",
            "enum": [
              "last",
              "next",
              "both"
            ],
            "type": "string",
            "description": "Which matches of the season to return in Tournament matches mode: results, upcoming fixtures, or both.",
            "default": "both"
          },
          "teamMatches": {
            "title": "Team profiles: also return matches",
            "enum": [
              "none",
              "last",
              "next",
              "both"
            ],
            "type": "string",
            "description": "Add the team's latest results, its next fixtures or both after the profile row. Works for tennis players and other individual athletes too.",
            "default": "none"
          },
          "playerMatches": {
            "title": "Player profiles: also return matches",
            "enum": [
              "none",
              "last"
            ],
            "type": "string",
            "description": "Add the player's latest matches after the profile row.",
            "default": "none"
          },
          "includeSquad": {
            "title": "Team profiles: include squad",
            "type": "boolean",
            "description": "Add the full squad with positions, shirt numbers, birth dates, market values and contract ends to each team row.",
            "default": false
          },
          "includeEventDetails": {
            "title": "Match details: venue, referee, attendance",
            "type": "boolean",
            "description": "One extra call per match for stadium, referee and attendance. Match mode with ids already includes it.",
            "default": false
          },
          "includeStatistics": {
            "title": "Match details: statistics",
            "type": "boolean",
            "description": "Possession, shots, xG, passes, cards, aces and more per period, plus flat columns for the headline numbers.",
            "default": false
          },
          "includeLineups": {
            "title": "Match details: lineups and player ratings",
            "type": "boolean",
            "description": "Starting XI, substitutes, formation, missing players, and for each player the rating, minutes, goals, assists and full match statistics. Makes rows large.",
            "default": false
          },
          "includeIncidents": {
            "title": "Match details: incidents",
            "type": "boolean",
            "description": "Goals, cards, substitutions, VAR decisions and period markers in order.",
            "default": false
          },
          "includeOdds": {
            "title": "Match details: odds",
            "type": "boolean",
            "description": "The odds Sofascore shows for the match, by market, in fractional and decimal, with the opening price and the winning choice, plus odds_home, odds_draw and odds_away columns.",
            "default": false
          },
          "includeVotes": {
            "title": "Match details: fan votes",
            "type": "boolean",
            "description": "Sofascore fan prediction poll: home, draw, away and both teams to score.",
            "default": false
          },
          "includeHeadToHead": {
            "title": "Match details: head-to-head",
            "type": "boolean",
            "description": "Wins and draws between the two teams, the managers' record and up to 20 previous meetings.",
            "default": false
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The most rows to return in the whole run (matches, profiles and standings rows together), 1 to 10,000. Matches by date come most followed competitions first, so a small number gives the biggest leagues. Example: 200.",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy by default. Sofascore refuses some datacenter IPs; the actor keeps the IPs that work and tries another when one is refused. No change needed.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}