{
  "openapi": "3.0.1",
  "info": {
    "title": "OddsPortal Scraper | Odds History, Results and Bookmakers",
    "description": "OddsPortal scraper for betting odds history and results: each match as one row with every bookmaker's opening and closing odds, odds movement, Betfair Exchange back and lay prices with volume, scores and extra markets. Scrape by league, season, match or day. 30 matches in 9 seconds, 39 fields each.",
    "version": "1.0",
    "x-build-id": "7GCzHTBNWirbqHgY7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/silentflow~oddsportal-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-silentflow-oddsportal-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/silentflow~oddsportal-scraper/runs": {
      "post": {
        "operationId": "runs-sync-silentflow-oddsportal-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/silentflow~oddsportal-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-silentflow-oddsportal-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": {
          "startUrls": {
            "title": "🔗 OddsPortal URLs",
            "type": "array",
            "description": "Leagues, results, seasons or single matches, as many as you like in one run. A league URL such as <code>https://www.oddsportal.com/football/england/premier-league/</code> gives its upcoming matches with live odds. Add <code>results/</code> for finished matches, or use a season URL like <code>.../premier-league-2024-2025/results/</code> for history (every page of the season is read). A match URL (the address of one match, ending with <code>#id</code>) always returns its row. A day URL such as <code>https://www.oddsportal.com/football/2026-11-21/</code> gives every match of that day.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "dates": {
            "title": "📅 Match days",
            "type": "array",
            "description": "Every match of the chosen sport on these days, across all leagues and countries (a busy Saturday has 700+ football matches). Use <code>2026-11-21</code>, <code>today</code> or <code>tomorrow</code>. Days follow UTC. Leave empty to use only the URLs above.",
            "items": {
              "type": "string"
            }
          },
          "sport": {
            "title": "🏅 Sport for match days",
            "enum": [
              "football",
              "basketball",
              "tennis",
              "hockey",
              "baseball",
              "american-football",
              "handball",
              "volleyball",
              "rugby-union",
              "rugby-league",
              "cricket",
              "darts",
              "snooker",
              "mma",
              "boxing",
              "esports",
              "futsal",
              "aussie-rules",
              "badminton",
              "table-tennis",
              "water-polo",
              "beach-volleyball",
              "floorball",
              "bandy",
              "beach-soccer"
            ],
            "type": "string",
            "description": "The sport whose matches are collected for the match days above. URLs carry their own sport.",
            "default": "football"
          },
          "maxItems": {
            "title": "🔢 Max matches per URL or day",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "The most matches kept from each league, season or day. A full Premier League season is 380 matches. Match URLs always return their row.",
            "default": 50
          },
          "seasons": {
            "title": "🗂️ Seasons per league",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "For results and season URLs: also collect the previous seasons, newest first. <code>5</code> on the Premier League results page returns five seasons of results and odds. Major leagues go back 20+ seasons.",
            "default": 1
          },
          "bookmakersCountry": {
            "title": "🌍 Bookmakers from",
            "type": "string",
            "description": "OddsPortal shows the bookmakers licensed in a country. Ireland lists the most (20, with bet365, William Hill, Paddy Power and the Betfair Exchange). Pick your own country to see the prices you can actually bet. A country code (<code>gb</code>, <code>gbr</code>) or name also works.",
            "default": "ie"
          },
          "includeOddsHistory": {
            "title": "📈 Odds movement for upcoming matches",
            "type": "boolean",
            "description": "Adds every price change of each bookmaker on upcoming matches (the last 20 moves per outcome, with their time), to spot dropping odds and steam moves. Finished matches keep their opening and closing odds.",
            "default": true
          },
          "markets": {
            "title": "🎯 Extra betting markets",
            "type": "array",
            "description": "Markets added to each match, with every bookmaker's current and opening odds. The main market (1X2 or home/away) is always included. Each market adds a few seconds per match.",
            "items": {
              "type": "string",
              "enum": [
                "over-under",
                "asian-handicap",
                "both-teams-to-score",
                "double-chance",
                "draw-no-bet",
                "european-handicap",
                "correct-score",
                "half-time-full-time",
                "odd-even",
                "match-winner"
              ],
              "enumTitles": [
                "Over/Under (totals)",
                "Asian handicap",
                "Both teams to score",
                "Double chance",
                "Draw no bet",
                "European handicap",
                "Correct score",
                "Half time / full time",
                "Odd or even",
                "Match winner (for halves)"
              ]
            },
            "default": []
          },
          "periods": {
            "title": "⏱️ Periods for extra markets",
            "type": "array",
            "description": "Which part of the match the extra markets cover. Pick <code>Match winner</code> above with the halves to get 1X2 odds per half.",
            "items": {
              "type": "string",
              "enum": [
                "full-time",
                "1st-half",
                "2nd-half"
              ],
              "enumTitles": [
                "Full time",
                "1st half",
                "2nd half"
              ]
            },
            "default": [
              "full-time"
            ]
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}