{
  "openapi": "3.0.1",
  "info": {
    "title": "Soccer Odds API & Results: Live Scores, Closing Odds Export",
    "description": "Every football (soccer) match of the last 7 and next 7 days in 190+ countries: score, half-time, penalties, live score, opening and closing 1X2 odds of several bookmakers, no-vig probability, favourite won, goal totals, BTTS, handicaps, match stats with xG, goals and cards. No login.",
    "version": "0.1",
    "x-build-id": "drIMnZCIYarLQ8YiB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/s_actors~soccer-results-odds/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-s_actors-soccer-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/s_actors~soccer-results-odds/runs": {
      "post": {
        "operationId": "runs-sync-s_actors-soccer-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/s_actors~soccer-results-odds/run-sync": {
      "post": {
        "operationId": "run-sync-s_actors-soccer-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",
        "properties": {
          "daysBack": {
            "title": "Days back",
            "minimum": 0,
            "maximum": 7,
            "type": "integer",
            "description": "Past days to include: 0 = today only, 1 = yesterday and today, up to 7. Finished matches come with their closing odds.",
            "default": 1
          },
          "daysAhead": {
            "title": "Days ahead",
            "minimum": 0,
            "maximum": 7,
            "type": "integer",
            "description": "Coming days to include (fixtures with current odds): 0 = none, up to 7. Days are UTC days.",
            "default": 0
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Only matches of these countries, as Flashscore names them: \"England\", \"Spain\", \"Brazil\", \"Czech Republic\"; continental tournaments are under \"Europe\", \"South America\", \"World\", \"Africa\", \"Asia\". Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "competitions": {
            "title": "Competitions",
            "type": "array",
            "description": "\"England: Premier League\" = exactly this league of this country, with all its stages (group, play-offs). A bare \"Champions League\" or \"Cup\" = every competition whose name contains it. Accents ignored. Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "teams": {
            "title": "Teams",
            "type": "array",
            "description": "Only matches of these teams, as Flashscore writes them (\"Arsenal\", \"Real Madrid\", \"Inter\"). Whole words, accents ignored.",
            "items": {
              "type": "string"
            }
          },
          "gender": {
            "title": "Men or women",
            "enum": [
              "all",
              "men",
              "women"
            ],
            "type": "string",
            "description": "Men's matches, women's matches or both.",
            "default": "all"
          },
          "youth": {
            "title": "Youth teams (U17-U23)",
            "enum": [
              "include",
              "exclude",
              "only"
            ],
            "type": "string",
            "description": "Youth and reserve-age teams (\"Arsenal U21\", \"Brazil U20\"): keep them, leave them out or show only them.",
            "default": "include"
          },
          "statuses": {
            "title": "Match status",
            "type": "array",
            "description": "Only matches with these statuses. Empty = all. Finished includes walkovers and awarded matches; cancelled includes postponed, interrupted and abandoned.",
            "items": {
              "type": "string",
              "enum": [
                "finished",
                "live",
                "scheduled",
                "cancelled"
              ],
              "enumTitles": [
                "Finished",
                "Live now",
                "Scheduled",
                "Cancelled / postponed"
              ]
            }
          },
          "maxMatches": {
            "title": "Max matches",
            "minimum": 1,
            "type": "integer",
            "description": "The run stops at this many matches (a weekend day has ~1,900 matches in all countries and divisions, a quiet weekday ~250).",
            "default": 1000
          },
          "includeOdds": {
            "title": "Odds (1X2)",
            "type": "boolean",
            "description": "Opening and current 1X2 odds of each bookmaker below (closing odds once the match started), best and average odds, no-vig probability, favourite and whether the favourite won. Included in the match price.",
            "default": true
          },
          "bookmakers": {
            "title": "Bookmakers",
            "type": "array",
            "description": "Odds of these bookmakers, in this order (the first one with odds fills oddsHome / oddsDraw / oddsAway). 1xBet, Interwetten and Ladbrokes price 3 of 4 matches of all divisions and nearly all top-league matches; bet365 hides its odds of finished matches. Up to 8.",
            "items": {
              "type": "string",
              "enum": [
                "1xBet",
                "Interwetten",
                "bwin",
                "Unibet",
                "William Hill",
                "Betfred",
                "bet365",
                "Betway",
                "Ladbrokes",
                "Betsson",
                "Betclic",
                "Winamax",
                "Betano",
                "Superbet",
                "Stake.com",
                "Melbet",
                "Sportingbet",
                "bet-at-home",
                "NetBet",
                "Tipsport",
                "Fortuna",
                "STS",
                "Sisal",
                "SNAI",
                "BetMGM",
                "Expekt",
                "Novibet"
              ]
            },
            "default": [
              "1xBet",
              "Interwetten",
              "Ladbrokes"
            ]
          },
          "includeMarkets": {
            "title": "Goals, BTTS, double chance & handicap",
            "type": "boolean",
            "description": "Main over/under goals line and over / under 2.5, both teams to score, double chance and the main Asian handicap with their odds (first bookmaker that has them). Included in the match price; the run takes longer.",
            "default": false
          },
          "includeDetails": {
            "title": "Match statistics & timeline",
            "type": "boolean",
            "description": "Possession, shots, corners, fouls, cards and more (xG, big chances, passes and tackles for top leagues) plus every goal with scorer, assist and minute, cards, penalties, VAR decisions and substitutions of finished and live matches. Charged per match that has any.",
            "default": false
          },
          "onlyChanged": {
            "title": "Only new or changed matches",
            "type": "boolean",
            "description": "Output only matches that are new, changed status (started, finished, postponed), score (a goal) or red cards since the previous run (same monitor name). Schedule it every 5-30 minutes for goal alerts and a live results feed.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keeps the memory of output matches apart for different schedules."
          },
          "debugLog": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Log every request retry.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}