{
  "openapi": "3.0.1",
  "info": {
    "title": "SofaScore Scraper - $0.80 / 1000 Results",
    "description": "SofaScore for 26 sports: a day's fixtures and results or live scores, search, and full match, team, player and competition records with stats, lineups, incidents, odds, shot maps, squads and standings. $0.80 per 1000 results, $1.00 per 1000 detail records.",
    "version": "0.1",
    "x-build-id": "runxBMV881jy6XEPF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapeunblocker~sofascore-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapeunblocker-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/scrapeunblocker~sofascore-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapeunblocker-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/scrapeunblocker~sofascore-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapeunblocker-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 scrape",
            "enum": [
              "events",
              "search",
              "match",
              "team",
              "player",
              "tournament"
            ],
            "type": "string",
            "description": "Matches: one sport's matches on a day (or live now), biggest competitions first - one item per match. Search: one item per search hit. Match / Team / Player / Competition: one item per entry in the matching list below, with the sections you pick.",
            "default": "events"
          },
          "sport": {
            "title": "Sport",
            "enum": [
              "any",
              "football",
              "basketball",
              "tennis",
              "ice-hockey",
              "american-football",
              "baseball",
              "handball",
              "volleyball",
              "cricket",
              "rugby",
              "futsal",
              "table-tennis",
              "esports",
              "darts",
              "snooker",
              "mma",
              "aussie-rules",
              "waterpolo",
              "floorball",
              "bandy",
              "badminton",
              "beach-volley",
              "minifootball",
              "padel",
              "motorsport",
              "cycling"
            ],
            "type": "string",
            "description": "Matches mode: the sport to list (Any sport lists football). Search and team / player / competition names: look only within this sport, e.g. Tennis for 'Jannik Sinner'. Ids and links do not need it.",
            "default": "any"
          },
          "date": {
            "title": "Day",
            "type": "string",
            "description": "Matches mode: YYYY-MM-DD, or today / yesterday / tomorrow (in the time zone below).",
            "default": "today"
          },
          "timezone": {
            "title": "Time zone",
            "type": "string",
            "description": "Matches mode: the time zone the day is read in - an IANA name (Europe/London, America/New_York) or a UTC offset (+02:00).",
            "default": "UTC"
          },
          "live": {
            "title": "Live now",
            "type": "boolean",
            "description": "Matches mode: the matches in progress right now instead of a day's list (Day is then ignored).",
            "default": false
          },
          "status": {
            "title": "Status",
            "enum": [
              "all",
              "live",
              "upcoming",
              "finished"
            ],
            "type": "string",
            "description": "Matches mode: keep only matches in this state.",
            "default": "all"
          },
          "country": {
            "title": "Country or category",
            "type": "string",
            "description": "Matches mode, optional: only one country or category - a name, slug or ISO code (England, Spain, US; ATP or WTA for tennis). Not together with Competition."
          },
          "tournament": {
            "title": "Competition",
            "type": "string",
            "description": "Matches mode, optional: only one competition - its id, a sofascore.com competition link or a name (Premier League, NBA, Champions League)."
          },
          "maxResults": {
            "title": "Max matches",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Matches mode: how many matches to return (1-500), biggest competitions first.",
            "default": 100
          },
          "queries": {
            "title": "Search terms",
            "type": "array",
            "description": "Search mode: names to look for - a team, player, competition, match ('arsenal chelsea'), manager, referee or venue. One per line.",
            "default": [
              "real madrid"
            ],
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "Kind of result",
            "enum": [
              "all",
              "teams",
              "players",
              "tournaments",
              "matches",
              "managers",
              "referees",
              "venues"
            ],
            "type": "string",
            "description": "Search mode: keep to one kind of result.",
            "default": "all"
          },
          "maxResultsPerQuery": {
            "title": "Max results per search term",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Search mode: results for each search term (1-100, SofaScore serves 20 a page).",
            "default": 20
          },
          "page": {
            "title": "Start page",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Search mode: the results page to start from (1-5).",
            "default": 1
          },
          "matches": {
            "title": "Matches",
            "type": "array",
            "description": "Match mode: match ids (16363904, from the Matches or Search mode) or sofascore.com match links. A link without '#id:' names the pairing - the match in progress, else the next, else the latest is used. One per line.",
            "items": {
              "type": "string"
            }
          },
          "matchInclude": {
            "title": "Match sections",
            "type": "array",
            "description": "Match mode: sections to add to each match. Select all of them for the full match; none for just the match card.",
            "items": {
              "type": "string",
              "enum": [
                "statistics",
                "lineups",
                "incidents",
                "h2h",
                "odds",
                "momentum",
                "pregame_form",
                "votes",
                "managers",
                "best_players",
                "shotmap",
                "commentary",
                "highlights"
              ],
              "enumTitles": [
                "Statistics",
                "Lineups with ratings",
                "Incidents (goals, cards, subs)",
                "Head-to-head",
                "Odds",
                "Momentum graph",
                "Pre-game form",
                "Fan votes",
                "Managers",
                "Best players",
                "Shot map (xG)",
                "Commentary",
                "Highlights"
              ]
            },
            "default": [
              "statistics",
              "lineups",
              "incidents"
            ]
          },
          "teams": {
            "title": "Teams",
            "type": "array",
            "description": "Team mode: team ids (2829), sofascore.com team links or names (best search match; set Sport for non-football names). Tennis players, MMA fighters and other individual competitors are teams on SofaScore. One per line.",
            "items": {
              "type": "string"
            }
          },
          "teamInclude": {
            "title": "Team sections",
            "type": "array",
            "description": "Team mode: sections to add to each team.",
            "items": {
              "type": "string",
              "enum": [
                "last_matches",
                "next_matches",
                "squad",
                "tournaments",
                "transfers"
              ],
              "enumTitles": [
                "Last matches",
                "Next matches",
                "Squad",
                "Competitions",
                "Transfers"
              ]
            },
            "default": [
              "last_matches",
              "next_matches"
            ]
          },
          "players": {
            "title": "Players",
            "type": "array",
            "description": "Player mode: player ids (12994), sofascore.com player links or names (best search match). One per line.",
            "items": {
              "type": "string"
            }
          },
          "playerInclude": {
            "title": "Player sections",
            "type": "array",
            "description": "Player mode: sections to add to each player.",
            "items": {
              "type": "string",
              "enum": [
                "seasons",
                "season_stats",
                "last_matches",
                "transfers",
                "attributes",
                "national_team"
              ],
              "enumTitles": [
                "Competitions and seasons",
                "Season statistics",
                "Last matches",
                "Transfers",
                "Attributes",
                "National team"
              ]
            },
            "default": [
              "season_stats",
              "last_matches"
            ]
          },
          "statsTournament": {
            "title": "Season statistics: competition id",
            "type": "string",
            "description": "Player mode, optional: the competition id for Season statistics (see the Competitions and seasons section). Default the player's first listed competition."
          },
          "tournaments": {
            "title": "Competitions",
            "type": "array",
            "description": "Competition mode: competition ids (17), sofascore.com competition links (a link's '#id:' picks the season) or names (Premier League, NBA). One per line.",
            "items": {
              "type": "string"
            }
          },
          "tournamentInclude": {
            "title": "Competition sections",
            "type": "array",
            "description": "Competition mode: sections to add to each competition.",
            "items": {
              "type": "string",
              "enum": [
                "seasons",
                "standings",
                "rounds",
                "last_matches",
                "next_matches",
                "top_players",
                "top_teams"
              ],
              "enumTitles": [
                "Seasons",
                "Standings",
                "Rounds",
                "Last matches",
                "Next matches",
                "Top players",
                "Top teams"
              ]
            },
            "default": [
              "standings",
              "last_matches",
              "next_matches"
            ]
          },
          "season": {
            "title": "Season",
            "type": "string",
            "description": "Competition and Player modes, optional: a season id or its year as SofaScore writes it (26/27, 2026). Default the current season (for a player: the latest)."
          },
          "concurrency": {
            "title": "Parallel inputs",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "How many search terms or detail inputs to process at the same time (1-5).",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}