{
  "openapi": "3.0.1",
  "info": {
    "title": "Football Fixtures, Results & League Tables — Open Data",
    "description": "Fixtures, results and league tables for 25 football competitions (Premier League, La Liga, Bundesliga, Serie A, Ligue 1, Brasileirão, Champions League, Peru Liga 1 and more) from open-licensed sources. Seasons back to 2010, one clean schema, no proxies.",
    "version": "0.1",
    "x-build-id": "2hRxlt7KefeVYiUav"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/boliveira~football-open-data/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-boliveira-football-open-data",
        "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/boliveira~football-open-data/runs": {
      "post": {
        "operationId": "runs-sync-boliveira-football-open-data",
        "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/boliveira~football-open-data/run-sync": {
      "post": {
        "operationId": "run-sync-boliveira-football-open-data",
        "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": [
          "competitions"
        ],
        "properties": {
          "competitions": {
            "title": "Competitions",
            "type": "array",
            "description": "Competitions to fetch.",
            "items": {
              "type": "string",
              "enum": [
                "de.1",
                "de.2",
                "de.3",
                "de.cup",
                "uefa.cl",
                "en.1",
                "en.2",
                "en.3",
                "en.4",
                "es.1",
                "es.2",
                "fr.1",
                "fr.2",
                "it.1",
                "it.2",
                "nl.1",
                "pt.1",
                "at.1",
                "at.2",
                "be.1",
                "sco.1",
                "tr.1",
                "gr.1",
                "br.1",
                "pe.1"
              ],
              "enumTitles": [
                "Germany — Bundesliga",
                "Germany — 2. Bundesliga",
                "Germany — 3. Liga",
                "Germany — DFB-Pokal",
                "Europe — UEFA Champions League",
                "England — Premier League",
                "England — Championship",
                "England — League One",
                "England — League Two",
                "Spain — La Liga",
                "Spain — Segunda División",
                "France — Ligue 1",
                "France — Ligue 2",
                "Italy — Serie A",
                "Italy — Serie B",
                "Netherlands — Eredivisie",
                "Portugal — Primeira Liga",
                "Austria — Bundesliga",
                "Austria — 2. Liga",
                "Belgium — Pro League",
                "Scotland — Premiership",
                "Turkey — Süper Lig",
                "Greece — Super League",
                "Brazil — Brasileirão Série A",
                "Peru — Liga 1 (standings only)"
              ]
            },
            "default": [
              "en.1"
            ]
          },
          "seasons": {
            "title": "Seasons (start year)",
            "type": "array",
            "description": "Season start years, e.g. 2025 for 2025/26 (or 2025 for calendar-year leagues like Brazil and Peru). Leave empty for the current season. openfootball seasons go back to 2010/11; Peru only has the current season.",
            "items": {
              "type": "string"
            }
          },
          "include": {
            "title": "What to return",
            "enum": [
              "both",
              "matches",
              "standings"
            ],
            "type": "string",
            "description": "Matches (fixtures and results), standings (league tables), or both.",
            "default": "both"
          },
          "onlyFinished": {
            "title": "Finished matches only",
            "type": "boolean",
            "description": "Drop fixtures that have not been played yet.",
            "default": false
          },
          "team": {
            "title": "Team filter",
            "type": "string",
            "description": "Only return rows that mention this team (case-insensitive substring, e.g. 'arsenal')."
          },
          "includeGoals": {
            "title": "Include goal events",
            "type": "boolean",
            "description": "Add goal minute and scorer to each match (OpenLigaDB competitions only: German leagues, DFB-Pokal, Champions League).",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}