# Betano Odds Scraper & API (`parsebird/betano-odds-scraper`) Actor

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.

- **URL**: https://apify.com/parsebird/betano-odds-scraper.md
- **Developed by:** [ParseBird](https://apify.com/parsebird) (community)
- **Features:** Limited permissions
- **Stats:** 4 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.09 / 1,000 events

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### Betano Odds Scraper & API

Betano Odds Scraper extracts pre-match and live betting odds from [Betano](https://www.betano.com) country sites: match result, over/under, both teams to score, handicaps, player props and every other market, with scores and match clocks for games in play.

<table><tr>
<td style="border-left:4px solid #1C1917;padding:12px 16px;font-weight:600">
Read 13 Betano books (Germany, Denmark, Portugal, Romania, Czech Republic, Bulgaria, Colombia, Peru, Ecuador, Argentina, Nigeria, Ghana, Canada) across 31 sports, by league, team search or link, with up to several hundred markets per match, decimal, fractional and American odds, cross-country price comparison and odds-movement monitoring.
</td>
</tr></table>

##### Copy to your AI assistant

Copy this block into ChatGPT, Claude, Cursor, or any LLM to start using this actor.

```text
Apify actor parsebird/betano-odds-scraper scrapes betting odds from Betano country sites. Call it with the apify-client package: client.actor("parsebird/betano-odds-scraper").call(run_input={"country": "DE", "sports": ["football"], "leagues": ["Premier League", "Bundesliga"], "maxEvents": 50}). Inputs: country (string, one of DE, DK, PT, RO, CZ, BG, CO, PE, EC, AR, NG, GH, CA; default DE; Brazil is not available); sports (array of sport keys such as football, basketball, tennis, ice-hockey, esports, table-tennis, handball, volleyball, american-football, baseball, mma; default ["football"]); leagues (array of league names, Betano league ids or league page links; empty = every league); hoursAhead (string "3", "12", "24", "48", "72" or "168"; window for the all-leagues coupon; default "12"); upcomingMatches (boolean, default true); liveMatches (boolean, adds in-play matches with liveScore, liveClock, livePeriod; default false); includeOutrights (boolean, league outrights such as season winner; default false); searchQueries (array of team or player names); startUrls (array of Betano match, live match, league or sport links from any supported site); maxEvents (integer, default 50); markets (array: main, all, players, goals, halftime, handicap, totals, periods, specials, combos, minutes; default ["main"]); oddsFormat ("decimal" or "all" to add fractional and American odds); outputMode ("event" = one row per match with nested markets, "selection" = one flat row per priced selection); language ("en" or "local"); compareCountries (array of country codes, adds oddsByCountry); incrementalMode (boolean, only new or changed odds since the last run); emitUnchanged (boolean); stateKey (string); proxyConfiguration (object, default Apify residential proxy in the chosen country). Output per match: eventId, country, sport, leagueId, leagueName, regionName, name, homeTeam, awayTeam, participants, startTime, isLive, liveScore, liveClock, livePeriod, outright, totalMarketsAvailable, betRadarId, statsUrl, url, marketsCount, markets[] (marketId, name, type, handicap, closeTime, tab, playerId, playerName, teamId, teamName, parentMarketId, selections[] with selectionId, name, price, priceFractional, priceAmerican, impliedProbability, handicap, teamId, playerId; player prop tables are split into one market per player, each with its own marketId), oddsByCountry, priceHash, changeType, scrapedAt. API docs: https://apify.com/parsebird/betano-odds-scraper/api. Get a token: https://console.apify.com/settings/integrations
```

### What does Betano Odds Scraper do?

**Betano Odds Scraper** turns Betano's sportsbook into structured odds data. It works as a **Betano API alternative**: no Betano account is needed, and you can try it in the Apify Console by keeping the prefilled Bundesliga example and clicking **Start**.

- ⚽ **Leagues or the whole coupon**: list leagues by name ("Premier League", "LaLiga", "NBA"), by Betano league id, or by pasting a league page link. Leave Leagues empty to read every league of the chosen sports starting in the next 3 hours to 7 days.
- 🔴 **Live odds**: add every match that is in play right now, with the current score, match clock, period and live prices.
- 📊 **All markets**: headline markets come from the listing with no extra request per match. Pick "All markets" or specific tabs (player props, goals, handicap, totals, quarters, periods and sets, specials, combos, minutes) to open each match and collect hundreds of markets. On an NBA game, quarter and player tabs returned close to 100 markets and 1,500 priced selections.
- 🔎 **Search and links**: find matches by team or player name with Betano's own search, or paste match, live match, league or sport links from any supported Betano site.
- 🏆 **Outrights**: season winner, top scorer and other league outright markets where Betano offers them.
- 🌍 **Cross-country comparison**: Betano uses the same match ids on all of its sites, so each match can carry the prices from other Betano books under `oddsByCountry`.
- 📈 **Odds monitoring**: incremental mode returns only matches that are new or whose odds moved since the previous run with the same input. Unchanged matches are skipped and not billed.
- 🧮 **Odds formats**: decimal odds with implied probability on every selection, plus fractional and American odds on request.

The Apify platform comes with it: run on a [schedule](https://docs.apify.com/platform/schedules), call it through the [Apify API](https://docs.apify.com/api/v2), connect it to [integrations](https://apify.com/integrations) such as Google Sheets, Slack, Zapier or Make, and export results as JSON, CSV, Excel, XML or HTML.

### What data can you extract from Betano?

| Field | Description |
|-------|-------------|
| `eventId` | Betano match id (the same on every Betano country site) |
| `country`, `site` | Betano book that priced the row, e.g. `DE` / `www.betano.de` |
| `sport`, `sportId` | Sport key (`football`) and Betano's sport code (`FOOT`) |
| `leagueId`, `leagueName`, `regionName` | League and its country or region, e.g. Premier League / England |
| `name`, `homeTeam`, `awayTeam`, `participants` | Match name, teams and Betano team ids |
| `startTime`, `startTimeMs` | Kick-off in UTC (ISO 8601 and milliseconds) |
| `isLive`, `liveScore`, `liveClock`, `livePeriod` | In-play status, current score, clock and period (live matches) |
| `outright` | `true` for league outrights such as the season winner |
| `totalMarketsAvailable`, `marketsCount` | Markets Betano offers on the match, and markets returned in the row |
| `markets[]` | Each market: `marketId`, `name`, `type`, `handicap` (line), `closeTime`, `tab`, `playerId`, `playerName`, `teamId`, `teamName`, `parentMarketId` and its `selections[]` |
| `selections[]` | Each outcome: `selectionId`, `name`, `price` (decimal), `priceFractional`, `priceAmerican`, `impliedProbability`, `handicap`, `teamId`, `playerId` |
| `betRadarId`, `statsUrl` | Sportradar match id and Betano's statistics page link, for joining with other data |
| `oddsByCountry` | The same match priced on other Betano books (with Compare with countries) |
| `priceHash`, `changeType` | Fingerprint of all prices, and NEW / UPDATED / UNCHANGED in incremental mode |
| `url`, `scrapedAt` | Match page link and the time the row was read |

### Input parameters

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| country | string | No | `DE` | Betano site: DE, DK, PT, RO, CZ, BG, CO, PE, EC, AR, NG, GH or CA |
| sports | array | No | `["football"]` | Sports to read; 31 are available |
| leagues | array | No | — | League names, Betano league ids or league links. Empty = every league |
| hoursAhead | string | No | `12` | Coupon window when Leagues is empty: 3, 12, 24, 48, 72 or 168 hours |
| upcomingMatches | boolean | No | `true` | Return pre-match odds |
| liveMatches | boolean | No | `false` | Also return matches in play right now |
| includeOutrights | boolean | No | `false` | Add league outrights (needs Leagues or league links) |
| searchQueries | array | No | — | Team or player names to search, up to 20 matches each |
| startUrls | array | No | — | Betano match, live match, league or sport links |
| maxEvents | integer | No | `50` | Maximum matches and outrights to return |
| markets | array | No | `["main"]` | `main`, `all`, `players`, `goals`, `halftime`, `handicap`, `totals`, `periods`, `specials`, `combos`, `minutes` |
| oddsFormat | string | No | `decimal` | `all` adds fractional and American odds |
| outputMode | string | No | `event` | `event` (nested markets) or `selection` (one flat row per selection) |
| language | string | No | `en` | `en` or `local` (the site's own language) |
| compareCountries | array | No | — | Other Betano books to attach under `oddsByCountry` |
| incrementalMode | boolean | No | `false` | Return only new or changed odds since the last run |
| emitUnchanged | boolean | No | `false` | With incremental mode, also return unchanged matches |
| stateKey | string | No | — | Name of the saved odds state for incremental mode |
| proxyConfiguration | object | No | Apify residential | Proxy; must be located in the chosen country |

### Output example

One row per match in the default output mode (markets shortened to two):

```json
{
  "eventId": "94991437",
  "bookmaker": "betano",
  "country": "DE",
  "site": "www.betano.de",
  "sport": "football",
  "sportId": "FOOT",
  "leagueId": "1",
  "leagueName": "Premier League",
  "regionId": "1",
  "regionName": "England",
  "name": "Manchester City - Fulham",
  "homeTeam": "Manchester City",
  "awayTeam": "Fulham",
  "participants": [
    { "id": "106785", "name": "Manchester City" },
    { "id": "106357", "name": "Fulham" }
  ],
  "startTime": "2026-11-21T12:30:00.000Z",
  "startTimeMs": 1795264200000,
  "isLive": false,
  "liveScore": null,
  "liveClock": null,
  "livePeriod": null,
  "willGoLive": true,
  "outright": false,
  "totalMarketsAvailable": 103,
  "betRadarId": 72221406,
  "statsUrl": "https://s5.sir.sportradar.com/betano/en/match/72221406",
  "url": "https://www.betano.de/en/match-odds/manchester-city-fulham/94991437/",
  "marketsCount": 5,
  "marketTabsFetched": [],
  "markets": [
    {
      "marketId": "3042189588",
      "name": "Match Result",
      "type": "MRES",
      "typeId": 1,
      "handicap": 0.0,
      "closeTime": "2026-11-21T12:30:00.000Z",
      "tab": "listing",
      "selections": [
        { "selectionId": "10737645951", "name": "Manchester City", "shortName": "1", "price": 1.47, "impliedProbability": 0.6803, "handicap": 0.0, "teamId": "106785" },
        { "selectionId": "10737645952", "name": "Draw", "shortName": "X", "price": 4.7, "impliedProbability": 0.2128, "handicap": 0.0, "teamId": null },
        { "selectionId": "10737645953", "name": "Fulham", "shortName": "2", "price": 6.5, "impliedProbability": 0.1538, "handicap": 0.0, "teamId": "106357" }
      ]
    },
    {
      "marketId": "3043659468",
      "name": "Over/Under Total Goals",
      "type": "HCTG",
      "typeId": 13,
      "handicap": 3.5,
      "closeTime": "2026-11-21T12:30:00.000Z",
      "tab": "listing",
      "selections": [
        { "selectionId": "10743273019", "name": "Over 3.5", "shortName": null, "price": 2.2, "impliedProbability": 0.4545, "handicap": 3.5, "teamId": null },
        { "selectionId": "10743273020", "name": "Under 3.5", "shortName": null, "price": 1.65, "impliedProbability": 0.6061, "handicap": 3.5, "teamId": null }
      ]
    }
  ],
  "priceHash": "2ec45212205a0a9534df8208e4d37a8983ecb4fea880faf30de29983ff81b59b",
  "sourceType": "league",
  "sourceInput": "Premier League",
  "scrapedAt": "2026-11-12T11:50:42.886Z"
}
```

A live match adds the score, clock and period:

```json
{ "eventId": "94826770", "sport": "basketball", "leagueName": "KBL", "name": "Daegu Pegasus - Goyang Sono Skygunners", "isLive": true, "liveScore": { "home": "84", "away": "86" }, "liveClock": { "secondsSinceStart": 58, "display": "0:58", "stopped": true }, "livePeriod": "Q4" }
```

With **Odds format** set to all formats, each selection also carries fractional and American odds, e.g. `"price": 1.11, "priceFractional": "11/100", "priceAmerican": -909`. With **Output mode** set to one row per selection, every priced outcome becomes its own flat row (`marketName`, `marketHandicap`, `selectionName`, `price`, `impliedProbability` and the match fields), ready for CSV or Google Sheets. Results can be downloaded as JSON, CSV, Excel, XML or HTML from the Dataset tab.

### How to scrape Betano odds

1. Open [Betano Odds Scraper](https://apify.com/parsebird/betano-odds-scraper) in Apify Console and sign in (or create a free Apify account).
2. Pick the **Betano country site**. Each site is its own book with its own prices.
3. Choose **Sports**, then either list **Leagues** (for example `Premier League`, `Bundesliga`, `NBA`) or leave Leagues empty and set **Hours ahead** for the whole coupon.
4. Optional: turn on **Live matches**, **Outright markets**, add **Search teams or players**, or paste **Betano links**.
5. Under **Markets**, keep **Headline markets** for a fast, low-cost run, or add **All markets** and specific tabs for full depth.
6. Set **Max events** and click **Start**.
7. Download the data from the **Output** tab, or connect it to Google Sheets, a webhook or your own code through the API.

To monitor odds movement, save the input as a task, turn on **Only new and changed odds**, and add a [schedule](https://docs.apify.com/platform/schedules) (for example every 15 minutes).

### Use cases

- **Odds comparison and line shopping**: compare Betano's prices with other books, or compare Betano's own country sites with `compareCountries`.
- **Betting models and value detection**: feed decimal odds and implied probabilities into your model, and find markets where your probability beats the bookmaker's.
- **Odds movement tracking**: schedule incremental runs and store only matches whose prices moved.
- **Live trading dashboards**: pull in-play prices with score, clock and period for football, tennis, basketball, esports and more.
- **Sports data products and research**: build historical odds datasets for leagues, teams and markets, joined to statistics through the Sportradar id.

### How it works

1. The Actor connects to the chosen Betano site through a residential proxy in that country, because each Betano site only answers visitors from its own country.
2. For leagues it reads Betano's league list for the chosen sports and matches your names or ids to it. For the coupon it reads Betano's upcoming-matches calendar for the time window.
3. Headline markets come straight from the listings. Over/under, both teams to score and double chance are added from the league's own listing tabs at one request per tab per league, not per match.
4. When you pick more markets, each match page is opened once, plus once per requested tab that exists for that sport. Live matches are read from Betano's live feed in one request each.
5. Matches are taken from each league in turn so one league can't use up Max events, and every row is saved and billed as it is collected.

### Using the Betano Odds Scraper API

Python ([apify-client](https://docs.apify.com/api/client/python)):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("parsebird/betano-odds-scraper").call(run_input={
    "country": "DE",
    "sports": ["football"],
    "leagues": ["Premier League", "Bundesliga"],
    "markets": ["main"],
    "maxEvents": 50,
})
for match in client.dataset(run["defaultDatasetId"]).iterate_items():
    result = next((m for m in match["markets"] if m["type"] == "MRES"), None)
    if result:
        print(match["name"], [(s["name"], s["price"]) for s in result["selections"]])
```

JavaScript ([apify-client](https://docs.apify.com/api/client/js)):

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('parsebird/betano-odds-scraper').call({
    country: 'PT',
    sports: ['football', 'basketball'],
    liveMatches: true,
    upcomingMatches: false,
    maxEvents: 100,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const m of items) console.log(m.name, m.liveScore, m.liveClock?.display, m.marketsCount);
```

More options are on the [API tab](https://apify.com/parsebird/betano-odds-scraper/api). You can also call the Actor from [Make](https://apify.com/integrations/make), [Zapier](https://apify.com/integrations/zapier), [n8n](https://docs.apify.com/platform/integrations/n8n) or an MCP-enabled AI agent through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp).

### How much does it cost to scrape Betano?

Betano Odds Scraper uses pay-per-event pricing. Compute and residential proxy costs are included in the event prices.

| Event | Price per event | Price per 1,000 |
|-------|----------------|-----------------|
| Actor start (per GB of memory) | $0.005 | **$5.00** |
| Event (match or outright with headline markets) | $0.00139 | **$1.39** |
| Full markets (match whose market tabs were opened) | $0.00899 | **$8.99** |
| Odds comparison (per extra Betano book attached) | $0.00179 | **$1.79** |

Prices shown are for the Free plan; Bronze, Silver and Gold plans pay less per event. An event is charged once per match however many rows it produces, including in the one-row-per-selection mode. Full markets is added only for matches where at least one market tab was opened, and odds comparison only for books that actually offer the match. Unchanged matches skipped in incremental mode are free. Example: 1,000 matches with headline markets cost about $1.39; 100 matches with all markets cost about $1.04.

### FAQ

**Which Betano countries are supported?**
Germany (betano.de), Denmark (betano.dk), Portugal (betano.pt), Romania (ro.betano.com), Czech Republic (betano.cz), Bulgaria (betano.bg), Colombia (betano.co), Peru (betano.pe), Ecuador (ec.betano.com), Argentina (betano.bet.ar), Nigeria (betano.ng), Ghana (betano.com.gh) and Canada / Ontario (betano.ca). Brazil is not available: Betano's Brazilian site is closed by government order and redirects to a government page.

**Why does the Actor need residential proxies?**
Every Betano site only answers visitors from its own country, so the Actor connects through an Apify residential proxy located there. This is set up automatically. Apify free plans don't include residential proxies; in that case the run stops with a clear message, and you can upgrade or enter your own proxy URLs located in the chosen country.

**How many markets do I get per match?**
Player props: Betano shows each player prop (points, rebounds, three-pointers, 20+/25+ ladders, and so on) as one table with a row per player. The scraper returns one market per player row, with that row's own `marketId`, the player's Betano `playerId` and `playerName`, the team (`teamId`, `teamName`) and `parentMarketId` for the table it came from, e.g. `"name": "Total Points [Ty Jerome]", "playerId": "19057626", "playerName": "Ty Jerome", "teamName": "Memphis Grizzlies"`. In one-row-per-selection mode these fields are on every row.

Headline markets give between one and six markets per match, depending on the sport. "All markets" returns Betano's combined list, often 30 to 60 markets on a top football match, and adding specific tabs such as players or goals fills in markets the combined list leaves out. `totalMarketsAvailable` shows how many markets Betano lists for the match, which can include markets that only exist inside bet builders.

**Are live odds real time?**
Each run reads the live prices at that moment. For continuous tracking, schedule the Actor or call it from your own code at the interval you need. Live matches are not compared across countries, because a second book's in-play price would already be stale.

**Why are some team or league names not in English?**
English names are used wherever the site has an English version. Romania's site only exists in Romanian, so its names stay Romanian. Pick "Site language" to get local names on every site.

**Does it return statistics or lineups?**
No. Each match carries the Sportradar match id (`betRadarId`) and Betano's statistics link (`statsUrl`), so you can join the odds to a statistics source such as the ParseBird [SofaScore Scraper](https://apify.com/parsebird/sofascore-scraper) or [FlashScore Scraper](https://apify.com/parsebird/flashscore-scraper).

**A league name was not found. What now?**
Names are matched against Betano's league list on the chosen site for the sports you selected, so pick the right sport too. The run log lists the closest league names, and you can always paste the league page link or its numeric id instead.

**Can I schedule recurring runs?**
Yes. Save your input as a task and add a [schedule](https://docs.apify.com/platform/schedules). Turn on **Only new and changed odds** so each run returns only matches whose prices moved.

**Something is not working or a market is missing.**
Open an issue on the [Issues tab](https://apify.com/parsebird/betano-odds-scraper/issues) with your run link and we'll look into it.

### Is it legal to scrape Betano?

Betano Odds Scraper only reads odds and match information that Betano shows publicly to every visitor without logging in. It does not access accounts, balances or any personal data. You should still check that your use of the data complies with Betano's terms, the gambling and data rules that apply to you, and data protection laws such as GDPR. For background, read Apify's article on [whether web scraping is legal](https://blog.apify.com/is-web-scraping-legal/).

### Other ParseBird sports and betting scrapers

| Actor | What it does |
|-------|--------------|
| [Sports Betting Odds Scraper](https://apify.com/parsebird/sports-betting-odds-scraper) | Moneyline, spread and totals for NFL, NBA, MLB, NHL, soccer and UFC from real sportsbooks |
| [Action Network Scraper & API](https://apify.com/parsebird/action-network-scraper) | Every sportsbook's lines, public betting splits, expert picks and line movement |
| [SofaScore Scraper](https://apify.com/parsebird/sofascore-scraper) | Live scores, fixtures, lineups, statistics and standings |
| [FlashScore Scraper & API](https://apify.com/parsebird/flashscore-scraper) | Live and scheduled scores for football, basketball, tennis and 13 more sports |
| [Flashscore Live Football Matches](https://apify.com/parsebird/flashscore-live-football-scraper) | Live football scores and lineups |
| [Flashscore Tennis Scraper](https://apify.com/parsebird/flashscore-tennis-scraper) | Live tennis scores and results |
| [Transfermarkt Scraper](https://apify.com/parsebird/transfermarkt-scraper) | Player values, transfers and squads |
| [Sports Injury Reports API](https://apify.com/parsebird/sports-injury-reports-api) | NFL, NBA, WNBA, MLB and NHL injury reports |
| [Equibase Horse Racing Scraper](https://apify.com/parsebird/equibase-horse-racing-scraper) | US and Canadian race entries, results and payouts |
| [Kalshi Scraper](https://apify.com/parsebird/kalshi-scraper) | Prediction market data from Kalshi |
| [Polymarket Market Scraper](https://apify.com/parsebird/polymarket-market-scraper) | Prediction markets and prices from Polymarket |

# Changelog

This Actor's version history is a separate document: https://apify.com/parsebird/betano-odds-scraper/changelog.md

# Actor input Schema

## `country` (type: `string`):

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.

## `sports` (type: `array`):

Pick one or more sports. Without Leagues, the run reads every league of these sports starting in the next Hours ahead.

## `leagues` (type: `array`):

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.

## `hoursAhead` (type: `string`):

Time window for the all-leagues coupon (used when Leagues is empty): matches that start within this many hours.

## `upcomingMatches` (type: `boolean`):

Return pre-match odds for the leagues or coupon above. Turn off to get live matches only.

## `liveMatches` (type: `boolean`):

Also return every match of the chosen sports that is in play right now, with score, match clock, period and live odds.

## `includeOutrights` (type: `boolean`):

Also return the league's outright markets (season winner, top scorer, relegation and similar), when Betano offers them. Works with Leagues and league links.

## `searchQueries` (type: `array`):

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.

## `startUrls` (type: `array`):

Paste Betano match, live match, league or sport page links from any supported country site. The site in the link picks the book.

## `maxEvents` (type: `integer`):

Maximum number of matches (and outrights) to return. Leagues are taken in turn so one league can't use up the whole limit.

## `markets` (type: `array`):

'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.

## `oddsFormat` (type: `string`):

Decimal odds are always returned with implied probability. 'All formats' adds fractional and American odds to every selection.

## `outputMode` (type: `string`):

'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.

## `language` (type: `string`):

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.

## `compareCountries` (type: `array`):

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.

## `incrementalMode` (type: `boolean`):

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.

## `emitUnchanged` (type: `boolean`):

With Only new and changed odds on, also return matches whose odds did not move (changeType UNCHANGED). These are billed like any other match.

## `stateKey` (type: `string`):

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` (type: `object`):

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.

## Actor input object example

```json
{
  "country": "DE",
  "sports": [
    "football"
  ],
  "leagues": [
    "Bundesliga"
  ],
  "hoursAhead": "12",
  "upcomingMatches": true,
  "liveMatches": false,
  "includeOutrights": false,
  "maxEvents": 20,
  "markets": [
    "main"
  ],
  "oddsFormat": "decimal",
  "outputMode": "event",
  "language": "en",
  "incrementalMode": false,
  "emitUnchanged": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "country": "DE",
    "sports": [
        "football"
    ],
    "leagues": [
        "Bundesliga"
    ],
    "maxEvents": 20,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("parsebird/betano-odds-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "country": "DE",
    "sports": ["football"],
    "leagues": ["Bundesliga"],
    "maxEvents": 20,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("parsebird/betano-odds-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "country": "DE",
  "sports": [
    "football"
  ],
  "leagues": [
    "Bundesliga"
  ],
  "maxEvents": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call parsebird/betano-odds-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parsebird/betano-odds-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/vlfFPugiykeedc7gR/builds/ziJJnQQvw7XdYhpfi/openapi.json
