{
  "openapi": "3.0.1",
  "info": {
    "title": "Sofascore Scraper | Live Scores, Fixtures & Standings",
    "description": "Get Sofascore matches for 20 sports as flat rows: home and away team, score, period scores, status, start time, league and season. Fixtures and results of any date, live scores, season matches, league tables, optional venue, referee and match statistics (xG, possession). IDs or URLs, no login.",
    "version": "0.0",
    "x-build-id": "2wLtUqniU3MOjk92W"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/genial_candlestand~sofascore-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-genial_candlestand-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/genial_candlestand~sofascore-scraper/runs": {
      "post": {
        "operationId": "runs-sync-genial_candlestand-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/genial_candlestand~sofascore-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-genial_candlestand-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": [
              "scheduled",
              "live",
              "tournament",
              "standings",
              "matches"
            ],
            "type": "string",
            "description": "scheduled: every match of the chosen sports on a date (fixtures and results). live: matches in play now. tournament: matches of a league season (needs Tournaments). standings: league tables (needs Tournaments). matches: specific matches by ID or URL (needs Matches).",
            "default": "scheduled"
          },
          "sports": {
            "title": "Sports",
            "type": "array",
            "description": "Sports for the 'scheduled' and 'live' modes. All countries and leagues of each sport are covered unless you narrow them with Tournaments. Ignored in other modes.",
            "items": {
              "type": "string",
              "enum": [
                "football",
                "tennis",
                "basketball",
                "ice-hockey",
                "american-football",
                "baseball",
                "volleyball",
                "handball",
                "cricket",
                "rugby",
                "esports",
                "futsal",
                "table-tennis",
                "darts",
                "badminton",
                "padel",
                "aussie-rules",
                "floorball",
                "waterpolo",
                "minifootball"
              ],
              "enumTitles": [
                "Football (soccer)",
                "Tennis",
                "Basketball",
                "Ice hockey",
                "American football",
                "Baseball",
                "Volleyball",
                "Handball",
                "Cricket",
                "Rugby",
                "Esports",
                "Futsal",
                "Table tennis",
                "Darts",
                "Badminton",
                "Padel",
                "Aussie rules",
                "Floorball",
                "Water polo",
                "Minifootball"
              ]
            },
            "default": [
              "football"
            ]
          },
          "date": {
            "title": "Date",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "First day for 'scheduled' mode, YYYY-MM-DD, read in Timezone. Empty = today. Past dates give results, future dates give fixtures."
          },
          "days": {
            "title": "Days",
            "minimum": 1,
            "maximum": 14,
            "type": "integer",
            "description": "Number of consecutive days from Date for the 'scheduled' mode (1 = only that day, at most 14).",
            "default": 1
          },
          "timezone": {
            "title": "Timezone",
            "type": "string",
            "description": "IANA timezone name, e.g. Europe/London or America/New_York. It defines which matches belong to the day in 'scheduled' mode and fills the matchDate column. Default UTC.",
            "default": "UTC"
          },
          "tournaments": {
            "title": "Tournaments",
            "type": "array",
            "description": "Sofascore competition IDs or tournament URLs, e.g. 17 (Premier League), 132 (NBA) or https://www.sofascore.com/tournament/football/england/premier-league/17. Required for 'tournament' and 'standings'; in 'scheduled' and 'live' only matches of these competitions are kept.",
            "items": {
              "type": "string"
            }
          },
          "season": {
            "title": "Season",
            "type": "string",
            "description": "For 'tournament' and 'standings': season label as on Sofascore (e.g. 25/26 or 2025) or a season ID. Empty = the current season of each tournament."
          },
          "seasonMatches": {
            "title": "Season matches",
            "enum": [
              "finished",
              "upcoming",
              "all"
            ],
            "type": "string",
            "description": "For 'tournament' mode: finished (latest results first), upcoming (next fixtures first) or all (results, then fixtures).",
            "default": "finished"
          },
          "matches": {
            "title": "Matches",
            "type": "array",
            "description": "Required for 'matches' mode, not allowed in other modes: Sofascore match IDs (16363912) or match URLs. Venue and referee are always included.",
            "items": {
              "type": "string"
            }
          },
          "statuses": {
            "title": "Match status filter",
            "type": "array",
            "description": "For 'scheduled' and 'tournament': keep only matches with these statuses. Empty = all statuses.",
            "items": {
              "type": "string",
              "enum": [
                "notstarted",
                "inprogress",
                "finished",
                "postponed",
                "canceled"
              ],
              "enumTitles": [
                "Not started",
                "In progress",
                "Finished",
                "Postponed",
                "Canceled"
              ]
            },
            "default": []
          },
          "includeDetails": {
            "title": "Include match details (venue, referee)",
            "type": "boolean",
            "description": "Adds venue, city, country, capacity and referee to every match row (one extra request per match, no extra charge). Always on in 'matches' mode. Not used for standings.",
            "default": false
          },
          "includeStatistics": {
            "title": "Include match statistics",
            "type": "boolean",
            "description": "Adds full-match statistics as stat<Key>Home / stat<Key>Away columns (possession, xG, shots, corners, cards …; other keys in basketball, tennis …). Charged per match that has statistics; lower leagues often have none. Not used for standings.",
            "default": false
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many rows (matches or table rows). A full football day has about 9,000 matches.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy works and is the cheapest; residential is not 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}