{
  "openapi": "3.0.1",
  "info": {
    "title": "SofaScore & Flashscore Sports Scores, No Login",
    "description": "Get match schedules, live scores and results from SofaScore and Flashscore for football, basketball, ice hockey and 16 more sports. No login. Optional statistics, lineups, heatmaps, league tables, top players and player profiles. Tennis is in a separate Actor.",
    "version": "0.1",
    "x-build-id": "uXMgmZi443GfJAgWM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cliqtomedia~sports-scores-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cliqtomedia-sports-scores-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/cliqtomedia~sports-scores-scraper/runs": {
      "post": {
        "operationId": "runs-sync-cliqtomedia-sports-scores-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/cliqtomedia~sports-scores-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-cliqtomedia-sports-scores-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": "Mode",
            "enum": [
              "schedule",
              "live",
              "match",
              "team",
              "tournament",
              "search",
              "player"
            ],
            "type": "string",
            "description": "Schedule: matches of a day or date range. Live: matches in play now. Match: details for match links or IDs. Team: last and next matches of teams. Tournament: matches, table and top players of a league or cup. Search: find teams and leagues by name. Player: player profiles and season statistics.",
            "default": "schedule"
          },
          "sports": {
            "title": "Sports",
            "type": "array",
            "description": "Sports for Schedule, Live and Search. Tennis is in a separate Actor: Tennis Scraper: ATP & WTA Matches, Players & Rankings.",
            "items": {
              "type": "string",
              "enum": [
                "football",
                "basketball",
                "ice-hockey",
                "american-football",
                "baseball",
                "handball",
                "rugby",
                "floorball",
                "bandy",
                "futsal",
                "volleyball",
                "cricket",
                "darts",
                "snooker",
                "aussie-rules",
                "badminton",
                "table-tennis",
                "mma",
                "esports"
              ],
              "enumTitles": [
                "Football (soccer)",
                "Basketball",
                "Ice hockey",
                "American football",
                "Baseball",
                "Handball",
                "Rugby",
                "Floorball",
                "Bandy",
                "Futsal",
                "Volleyball",
                "Cricket",
                "Darts",
                "Snooker",
                "Aussie rules",
                "Badminton",
                "Table tennis",
                "MMA",
                "Esports"
              ]
            }
          },
          "date": {
            "title": "Date",
            "type": "string",
            "description": "Day to get: today, tomorrow, yesterday or a date like 2026-11-14. Empty means today. For Team, Tournament and Search, \"today\" or empty gives last and next matches; a real date filters to that day. The day starts at midnight in the time zone below. Flashscore covers 7 days back and 7 days ahead."
          },
          "dateTo": {
            "title": "Date to (optional)",
            "type": "string",
            "description": "Last day of a date range, up to 31 days from Date. Leave empty for one day."
          },
          "timezone": {
            "title": "Time zone",
            "type": "string",
            "description": "IANA time zone for day boundaries and localStartTime, for example Europe/London or America/New_York. startTime is always UTC.",
            "default": "UTC"
          },
          "matchUrls": {
            "title": "Match links or IDs",
            "type": "array",
            "description": "For Match mode: SofaScore or Flashscore match links, or SofaScore numeric match IDs.",
            "items": {
              "type": "string"
            }
          },
          "teams": {
            "title": "Teams",
            "type": "array",
            "description": "For Team mode: team names, SofaScore team links or IDs, for example Arsenal.",
            "items": {
              "type": "string"
            }
          },
          "tournaments": {
            "title": "Tournaments",
            "type": "array",
            "description": "For Tournament mode: league or cup names, SofaScore links or IDs, for example Premier League. In Schedule mode this keeps only matches of these tournaments.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search text",
            "type": "array",
            "description": "For Search mode: names of teams or tournaments, for example Real Madrid. For players use Player mode.",
            "items": {
              "type": "string"
            }
          },
          "players": {
            "title": "Players",
            "type": "array",
            "description": "For Player mode: player names, SofaScore player links or IDs, for example Bukayo Saka.",
            "items": {
              "type": "string"
            }
          },
          "season": {
            "title": "Season",
            "type": "string",
            "description": "For Tournament, Team and Player modes: a past or current season, for example 2024/2025, 24/25, 2024 or a SofaScore season ID. Empty means the latest season. In Tournament mode a set season returns all its matches."
          },
          "teamMatches": {
            "title": "Team matches",
            "enum": [
              "both",
              "last",
              "next"
            ],
            "type": "string",
            "description": "For Team mode: last results, next fixtures or both.",
            "default": "both"
          },
          "source": {
            "title": "Source",
            "enum": [
              "sofascore",
              "flashscore"
            ],
            "type": "string",
            "description": "SofaScore has teams, tournaments, search, lineups and odds. Flashscore is a backup for Schedule, Live and Match. Flashscore links always use Flashscore.",
            "default": "sofascore"
          },
          "matchStatuses": {
            "title": "Match statuses",
            "type": "array",
            "description": "Keep only matches with these statuses. Empty keeps all.",
            "items": {
              "type": "string",
              "enum": [
                "scheduled",
                "live",
                "finished",
                "postponed",
                "canceled",
                "interrupted"
              ],
              "enumTitles": [
                "Scheduled",
                "Live",
                "Finished",
                "Postponed",
                "Canceled",
                "Interrupted"
              ]
            }
          },
          "includeStatistics": {
            "title": "Match statistics",
            "type": "boolean",
            "description": "Possession, shots, corners, cards and more for each played match. Each match with details is a paid match-details event.",
            "default": false
          },
          "includeIncidents": {
            "title": "Goals, cards and substitutions",
            "type": "boolean",
            "description": "Timeline of match events for each played match.",
            "default": false
          },
          "includeLineups": {
            "title": "Lineups",
            "type": "boolean",
            "description": "Formations and players of both teams (SofaScore).",
            "default": false
          },
          "includeH2H": {
            "title": "Head to head",
            "type": "boolean",
            "description": "Past meetings of the two teams.",
            "default": false
          },
          "includeForm": {
            "title": "Recent form",
            "type": "boolean",
            "description": "Last results of both teams as W, D and L.",
            "default": false
          },
          "formMatches": {
            "title": "Form length",
            "minimum": 5,
            "maximum": 10,
            "type": "integer",
            "description": "How many recent matches to show in form.",
            "default": 5
          },
          "includeOdds": {
            "title": "Odds",
            "type": "boolean",
            "description": "Main 1X2 odds when the source shows them (SofaScore).",
            "default": false
          },
          "includeVotes": {
            "title": "Fan votes",
            "type": "boolean",
            "description": "Who fans expect to win (SofaScore).",
            "default": false
          },
          "includeShotmap": {
            "title": "Shot map",
            "type": "boolean",
            "description": "Shots with position and xG for football (SofaScore).",
            "default": false
          },
          "includeHeatmaps": {
            "title": "Player heatmaps",
            "type": "boolean",
            "description": "Football, SofaScore: touch positions of every player who played, for each played match. Charged per match with heatmaps; slower, about 30 seconds per match, so about 8–10 matches in the default 300-second timeout.",
            "default": false
          },
          "includeStandings": {
            "title": "League tables",
            "type": "boolean",
            "description": "Tournament tables: one standings row in Tournament mode, and tables in the SUMMARY record in other modes.",
            "default": false
          },
          "includeSquad": {
            "title": "Team squad",
            "type": "boolean",
            "description": "For Team mode: one row with the players of each team (name, position, shirt number, country).",
            "default": false
          },
          "includeTeamStats": {
            "title": "Team season statistics",
            "type": "boolean",
            "description": "For Team mode: one row with the team's season totals in its main league (goals, shots, possession and about 100 more numbers).",
            "default": false
          },
          "includeTopPlayers": {
            "title": "Top players",
            "type": "boolean",
            "description": "For Tournament mode: one row with the top 10 players of the season in each category (rating, goals, assists, expected goals and more).",
            "default": false
          },
          "includePlayerStats": {
            "title": "Player season statistics",
            "type": "boolean",
            "description": "For Player mode: season numbers of each player in their main league (rating, goals, assists, minutes and more).",
            "default": false
          },
          "onlyChanges": {
            "title": "Only new or changed matches",
            "type": "boolean",
            "description": "Remember matches between runs and save only new matches or ones whose score or status changed. Unchanged matches are skipped and not charged. Good for scheduled score updates.",
            "default": false
          },
          "stateName": {
            "title": "Update list name",
            "pattern": "^[a-zA-Z0-9-]{1,40}$",
            "type": "string",
            "description": "Name for the remembered match list, so different schedules do not mix. Letters a-z, digits and dashes.",
            "default": "default"
          },
          "resumeFromRunId": {
            "title": "Continue after run",
            "type": "string",
            "description": "ID of an earlier run of this Actor. Rows already in that run's dataset are skipped and not charged again, for example after a spending limit stop."
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "nested",
              "flat"
            ],
            "type": "string",
            "description": "Nested keeps teams, score and details as objects. Flat gives one column per value, good for Excel and Google Sheets.",
            "default": "nested"
          },
          "includeRaw": {
            "title": "Include raw source data",
            "type": "boolean",
            "description": "Add the source's original JSON in the raw field. Makes rows much bigger.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum rows",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum rows to save across all inputs. With Only new or changed matches, skipped unchanged rows count toward this limit too.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "SofaScore needs residential proxy. Flashscore does not use the proxy.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "deliveryConnector": {
            "title": "Send results to (optional)",
            "type": "string",
            "description": "Your Slack, Notion or other MCP connector. After the run the Actor posts a short summary there. Connect services once in Apify Console → MCP connectors."
          },
          "deliveryTarget": {
            "title": "Notion page or channel (optional)",
            "type": "string",
            "description": "Where to post the summary: a Notion page link (each run is added on top of that page) or a Slack channel ID. Notion needs a page here; without it the summary is not sent and the run summary says why."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}