{
  "openapi": "3.0.1",
  "info": {
    "title": "Football Data API: Results, Closing Odds & Fixtures",
    "description": "Football and soccer data API for 22 European leagues: results, match stats, closing odds from 9+ bookmakers, implied probabilities, line movement, Elo and form. Premier League, Ligue 1, LaLiga and Serie A, plus upcoming fixtures.",
    "version": "0.1",
    "x-build-id": "mWE53zrpyOBqBesEm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/smoked_drift~european-football-results-odds/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-smoked_drift-european-football-results-odds",
        "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/smoked_drift~european-football-results-odds/runs": {
      "post": {
        "operationId": "runs-sync-smoked_drift-european-football-results-odds",
        "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/smoked_drift~european-football-results-odds/run-sync": {
      "post": {
        "operationId": "run-sync-smoked_drift-european-football-results-odds",
        "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",
        "required": [
          "leagues"
        ],
        "properties": {
          "leagues": {
            "title": "Leagues",
            "type": "array",
            "description": "Which competitions to include. Use a preset ('big-five', 'france', 'england', 'big-five-plus-second', 'all') or explicit codes. Codes: E0-E3, EC (England), SC0-SC3 (Scotland), D1-D2 (Germany), I1-I2 (Italy), SP1-SP2 (Spain), F1-F2 (France), N1 (Netherlands), B1 (Belgium), P1 (Portugal), T1 (Turkey), G1 (Greece).",
            "default": [
              "france"
            ],
            "items": {
              "type": "string"
            }
          },
          "seasonsBack": {
            "title": "Seasons to look back",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "How many seasons of history to download, starting from the current one. 1 = current season only. Each extra season adds roughly 380 matches per league.",
            "default": 1
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "dataset",
              "changes"
            ],
            "type": "string",
            "description": "dataset = return every matching match. changes = monitoring mode: return only matches that are new or whose result changed since the previous run, using a stored snapshot. Use changes with a schedule to build a results alert.",
            "default": "dataset"
          },
          "includeFixtures": {
            "title": "Include upcoming fixtures",
            "type": "boolean",
            "description": "Also pull the live fixtures feed: upcoming matches with opening and closing odds. This is the only source of not-yet-played matches, since the per-season archives contain results only.",
            "default": true
          },
          "teams": {
            "title": "Teams",
            "type": "array",
            "description": "Optional. Keep only matches involving these teams. Case-insensitive partial match, so 'Marseille' also matches 'Olympique Marseille'.",
            "items": {
              "type": "string"
            }
          },
          "dateFrom": {
            "title": "From date (DD/MM/YYYY)",
            "type": "string",
            "description": "Optional lower bound on the match date."
          },
          "dateTo": {
            "title": "To date (DD/MM/YYYY)",
            "type": "string",
            "description": "Optional upper bound on the match date."
          },
          "onlyFinished": {
            "title": "Only finished matches",
            "type": "boolean",
            "description": "Drop upcoming fixtures. Useful when you are building a historical dataset for backtesting.",
            "default": false
          },
          "onlyWithOdds": {
            "title": "Only matches with market odds",
            "type": "boolean",
            "description": "Drop matches with no usable price data. On by default, because a match without odds has no market read attached.",
            "default": true
          },
          "withAnalytics": {
            "title": "Attach analytics (Elo, form, market read)",
            "type": "boolean",
            "description": "Compute pre-match Elo ratings, recent form, consensus implied probabilities, bookmaker margin and line movement. Adds a second billable event per match.",
            "default": true
          },
          "maxItems": {
            "title": "Maximum matches",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on how many matches are returned. Protects your budget on wide scopes: 22 leagues x 3 seasons is about 25,000 matches.",
            "default": 5000
          },
          "stateKey": {
            "title": "Monitor state key",
            "type": "string",
            "description": "Name of the key-value store record holding the snapshot used by 'changes' mode. Keep the same value across runs; change it to start monitoring from scratch.",
            "default": "monitor-state"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}