{
  "openapi": "3.0.1",
  "info": {
    "title": "Betano Odds Scraper & API",
    "description": "Scrape Betano betting odds: pre-match and live prices, all markets, scores, outrights and cross-country odds comparison for football, tennis, basketball and 30 sports on 13 Betano sites. Export JSON, CSV, Excel.",
    "version": "1.0",
    "x-build-id": "ziJJnQQvw7XdYhpfi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parsebird~betano-odds-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parsebird-betano-odds-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/parsebird~betano-odds-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parsebird-betano-odds-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/parsebird~betano-odds-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parsebird-betano-odds-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": {
          "country": {
            "title": "Betano country site",
            "enum": [
              "DE",
              "DK",
              "PT",
              "RO",
              "CZ",
              "BG",
              "CO",
              "PE",
              "EC",
              "AR",
              "NG",
              "GH",
              "CA"
            ],
            "type": "string",
            "description": "Choose the Betano site to read. Each country site is a separate book with its own odds and fixture list. Brazil is not offered: Betano's Brazilian site is closed by government order.",
            "default": "DE"
          },
          "sports": {
            "title": "Sports",
            "type": "array",
            "description": "Pick one or more sports. Without Leagues, the run reads every league of these sports starting in the next Hours ahead.",
            "items": {
              "type": "string",
              "enum": [
                "football",
                "basketball",
                "tennis",
                "ice-hockey",
                "handball",
                "volleyball",
                "american-football",
                "baseball",
                "esports",
                "table-tennis",
                "darts",
                "mma",
                "boxing",
                "formula-1",
                "snooker",
                "rugby-union",
                "rugby-league",
                "cricket",
                "golf",
                "cycling",
                "futsal",
                "badminton",
                "motorsport",
                "winter-sports",
                "water-polo",
                "floorball",
                "lacrosse",
                "chess",
                "speedway",
                "politics",
                "entertainment"
              ],
              "enumTitles": [
                "Football (soccer)",
                "Basketball",
                "Tennis",
                "Ice hockey",
                "Handball",
                "Volleyball",
                "American football",
                "Baseball",
                "Esports",
                "Table tennis",
                "Darts",
                "MMA",
                "Boxing",
                "Formula 1",
                "Snooker",
                "Rugby union",
                "Rugby league",
                "Cricket",
                "Golf",
                "Cycling",
                "Futsal",
                "Badminton",
                "Motorsport",
                "Winter sports",
                "Water polo",
                "Floorball",
                "Lacrosse",
                "Chess",
                "Speedway",
                "Politics",
                "Entertainment"
              ]
            },
            "default": [
              "football"
            ]
          },
          "leagues": {
            "title": "Leagues",
            "type": "array",
            "description": "Leave empty for every league. Otherwise enter league names (e.g. 'Bundesliga', 'Premier League', 'England Premier League'), Betano league ids ('216') or league page links. Names are matched against the leagues of the sports picked above on the chosen country site.",
            "items": {
              "type": "string"
            }
          },
          "hoursAhead": {
            "title": "Hours ahead",
            "enum": [
              "3",
              "12",
              "24",
              "48",
              "72",
              "168"
            ],
            "type": "string",
            "description": "Time window for the all-leagues coupon (used when Leagues is empty): matches that start within this many hours.",
            "default": "12"
          },
          "upcomingMatches": {
            "title": "Upcoming matches",
            "type": "boolean",
            "description": "Return pre-match odds for the leagues or coupon above. Turn off to get live matches only.",
            "default": true
          },
          "liveMatches": {
            "title": "Live matches",
            "type": "boolean",
            "description": "Also return every match of the chosen sports that is in play right now, with score, match clock, period and live odds.",
            "default": false
          },
          "includeOutrights": {
            "title": "Outright markets",
            "type": "boolean",
            "description": "Also return the league's outright markets (season winner, top scorer, relegation and similar), when Betano offers them. Works with Leagues and league links.",
            "default": false
          },
          "searchQueries": {
            "title": "Search teams or players",
            "type": "array",
            "description": "Find matches by team or player name with Betano's own search, e.g. 'Bayern' or 'Djokovic'. Returns up to 20 upcoming or live matches per name.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Betano links",
            "type": "array",
            "description": "Paste Betano match, live match, league or sport page links from any supported country site. The site in the link picks the book.",
            "items": {
              "type": "string"
            }
          },
          "maxEvents": {
            "title": "Max events",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of matches (and outrights) to return. Leagues are taken in turn so one league can't use up the whole limit.",
            "default": 50
          },
          "markets": {
            "title": "Markets",
            "type": "array",
            "description": "'Headline markets' uses the odds on the listing (match result, over/under, both teams to score, double chance where offered) with no extra request per match. Every other choice opens each match and adds that market tab. 'All markets' is Betano's own combined list; specific tabs (players, goals, handicap) can add markets the combined list leaves out. Tabs that don't exist for a sport are skipped.",
            "items": {
              "type": "string",
              "enum": [
                "main",
                "all",
                "players",
                "goals",
                "halftime",
                "handicap",
                "totals",
                "periods",
                "specials",
                "combos",
                "minutes"
              ],
              "enumTitles": [
                "Headline markets",
                "All markets",
                "Player markets",
                "Goals",
                "Half time",
                "Handicap",
                "Totals",
                "Periods / quarters / sets",
                "Specials",
                "Combos",
                "Minutes"
              ]
            },
            "default": [
              "main"
            ]
          },
          "oddsFormat": {
            "title": "Odds format",
            "enum": [
              "decimal",
              "all"
            ],
            "type": "string",
            "description": "Decimal odds are always returned with implied probability. 'All formats' adds fractional and American odds to every selection.",
            "default": "decimal"
          },
          "outputMode": {
            "title": "Output mode",
            "enum": [
              "event",
              "selection"
            ],
            "type": "string",
            "description": "'One row per event' nests markets and selections inside each match. 'One row per selection' writes a flat row for every priced selection, ready for CSV or Google Sheets. Billing is per event in both modes.",
            "default": "event"
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "local"
            ],
            "type": "string",
            "description": "Team, league and market names in English, or in the site's own language. Sites without an English version (Romania) always use their own language; Nigeria, Ghana and Canada are already in English.",
            "default": "en"
          },
          "compareCountries": {
            "title": "Compare with countries",
            "type": "array",
            "description": "Attach the same match priced on other Betano country sites under oddsByCountry (Betano uses the same match ids across its sites). Adds one request per match per country. Live matches are not compared, because a second book's in-play price is already stale when it arrives.",
            "items": {
              "type": "string",
              "enum": [
                "DE",
                "DK",
                "PT",
                "RO",
                "CZ",
                "BG",
                "CO",
                "PE",
                "EC",
                "AR",
                "NG",
                "GH",
                "CA"
              ],
              "enumTitles": [
                "Germany",
                "Denmark",
                "Portugal",
                "Romania",
                "Czech Republic",
                "Bulgaria",
                "Colombia",
                "Peru",
                "Ecuador",
                "Argentina",
                "Nigeria",
                "Ghana",
                "Canada / Ontario"
              ]
            }
          },
          "incrementalMode": {
            "title": "Only new and changed odds",
            "type": "boolean",
            "description": "For scheduled runs: remember each match's prices and return only matches that are new or whose odds moved since the last run with the same input. Unchanged matches are skipped and not billed. Each row gets changeType NEW or UPDATED.",
            "default": false
          },
          "emitUnchanged": {
            "title": "Also return unchanged matches",
            "type": "boolean",
            "description": "With Only new and changed odds on, also return matches whose odds did not move (changeType UNCHANGED). These are billed like any other match.",
            "default": false
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Optional name for the saved odds state. Runs with the same key compare against each other. Leave empty to derive it from the input."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Betano only answers visitors from the chosen country, so the Actor connects through Apify residential proxies located there automatically. Leave as is, or enter your own proxy URLs located in that country.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}