{
  "openapi": "3.0.1",
  "info": {
    "title": "Flashscore Live Matches",
    "description": "Scrape Flashscore live match scores — in-progress matches with running score and minute, filtered by sport, country and league. HTTP-only, MCP-ready.",
    "version": "1.0",
    "x-build-id": "eaKygT9GJX4T5ZMwx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~flashscore-live-matches/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-flashscore-live-matches",
        "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/khadinakbar~flashscore-live-matches/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-flashscore-live-matches",
        "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/khadinakbar~flashscore-live-matches/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-flashscore-live-matches",
        "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": {
          "sport": {
            "title": "Sport",
            "enum": [
              "football",
              "tennis",
              "basketball",
              "hockey",
              "american-football",
              "baseball",
              "handball",
              "rugby-union",
              "volleyball",
              "cricket",
              "snooker",
              "futsal",
              "table-tennis",
              "mma"
            ],
            "type": "string",
            "description": "The sport to scrape live matches for, e.g. 'football', 'tennis', or 'basketball'. Defaults to 'football'. This is the sport whose daily feed is read and filtered for in-progress matches. NOT a free-text search box — pick a supported Flashscore sport name or use sportId for an advanced numeric ID.",
            "default": "football"
          },
          "dayOffsets": {
            "title": "Day offsets",
            "type": "array",
            "description": "Relative days to scan for matches. 0 = today, -1 = yesterday, 1 = tomorrow. Defaults to [0] (today's matches). Matches currently in progress can appear on neighbouring days near midnight in some timezones, so include -1 and 1 to be safe. Each offset triggers one feed request; results are merged and de-duplicated by matchId is NOT performed, so overlapping days may repeat a match.",
            "items": {
              "type": "integer",
              "minimum": -7,
              "maximum": 7
            },
            "default": [
              0
            ]
          },
          "date": {
            "title": "Exact date",
            "type": "string",
            "description": "A single calendar day in YYYY-MM-DD format (e.g. '2026-08-17') to scan instead of dayOffsets. Must be within 7 days of today because Flashscore only serves that feed window. Overrides dayOffsets when both are set. NOT a range — for multiple days use dayOffsets."
          },
          "statuses": {
            "title": "Match statuses to include",
            "uniqueItems": true,
            "type": "array",
            "description": "Which match statuses to return. Defaults to ['live'] so only in-progress matches with a running score and minute are returned. Add 'scheduled' for upcoming fixtures or 'finished' for final results on the same days. Each selected status is matched against the match's derived status; unsupported status strings are ignored.",
            "items": {
              "type": "string",
              "enum": [
                "live",
                "scheduled",
                "finished",
                "postponed",
                "cancelled",
                "delayed",
                "interrupted",
                "abandoned"
              ],
              "enumTitles": [
                "Live",
                "Scheduled",
                "Finished",
                "Postponed",
                "Cancelled",
                "Delayed",
                "Interrupted",
                "Abandoned"
              ]
            },
            "default": [
              "live"
            ]
          },
          "country": {
            "title": "Country filter",
            "type": "string",
            "description": "Case-insensitive substring filter on the match's country or region, e.g. 'England' or 'Spain'. Limits the returned live matches to leagues under that country. Empty means no country filter. NOT a list of codes — use the display name shown on Flashscore (e.g. 'England', not 'GB')."
          },
          "league": {
            "title": "League filter",
            "type": "string",
            "description": "Case-insensitive substring filter on the league or tournament name, e.g. 'Premier League' or 'La Liga'. Limits the returned live matches to that competition. Empty means no league filter. NOT a league ID — use the display name shown on Flashscore."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Hard cap on billable match records produced this run. Protects your budget and bounds the run cost. Defaults to 100. Set higher to capture all live matches for a busy sport, or lower for a quick live check.",
            "default": 100
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Flashscore feed language code for team/competition labels, e.g. 'en', 'es', 'de'. Defaults to 'en'. Changes label language only; it does not change which matches are returned. NOT a country or locale object — a single two-letter code.",
            "default": "en"
          },
          "sportId": {
            "title": "Advanced sport ID",
            "minimum": 1,
            "type": "integer",
            "description": "Numeric Flashscore sport ID to scrape when the sport is not in the dropdown (e.g. a niche sport). Overrides the sport dropdown when both are set. football=1, tennis=2, basketball=3. NOT required for the listed sports — leave empty to use the sport dropdown."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings, defaulting to Apify Proxy (datacenter). The Flashscore feed tolerates the standard Apify datacenter proxy. Override only if you hit rate limits and need residential IPs.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}