# Betano Odds Scraper — Live & Pre-Match (DE + Intl) (`genkenobi/betano-odds-scraper`) Actor

Scrapes current Betano odds from betano.de: the full pre-match football program (1X2, over/under, BTTS, double chance) in one run, plus live in-play odds with score and clock. One dataset item per event — teams, league, kickoff, decimal odds.

- **URL**: https://apify.com/genkenobi/betano-odds-scraper.md
- **Developed by:** [Burhan Hayber](https://apify.com/genkenobi) (community)
- **Categories:** Sports, Automation, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 scraped event (match)s

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

Apify Actor that scrapes **current Betano odds** from the German book (betano.de).

- **Pre-match:** the full upcoming football program with odds — all leagues in
  one call (1X2 / over-under / BTTS / double chance).
- **Live:** in-play snapshot with score, clock and live odds.
- Runs through Apify residential proxies (country DE), plain HTTP — no browser.

### Input

| Field | Type | Description |
| --- | --- | --- |
| `mode` | string | `prematch` (default), `live` or `both` |
| `sportId` | string | Betano sport code, default `FOOT` |
| `hoursAhead` | integer | Pre-match window in hours (default 24) |
| `marketTypes` | array | `MRES`, `HCTG`, `BTSC`, `DBLC`, `OUH1` ... |
| `maxEvents` | integer | Optional cap (0 = no limit) |
| `onlyWithOdds` | boolean | Skip events without the selected markets |
| `proxyConfiguration` | object | Default: residential, country DE |
| `timeoutSecs` | integer | Request timeout (default 60) |

### Output

One dataset item per event:

`eventId`, `name`, `homeTeam`, `awayTeam`, `startTime` (ISO + millis),
`leagueName`, `leagueDescription`, `regionName`, `url`, `betRadarId`,
`isLive`, `score` (live), `clockSeconds` (live), `markets[]` — each with
`type`, `name`, `line` and `selections[]` (`name`, `fullName`, decimal `price`),
`marketsCount`, `scrapedAt`.

### Pricing

Pay-per-event: **$0.002 per scraped match** (`event-scraped`) — you only pay for
events delivered to the dataset. The Actor start event is billed by Apify separately.

### Example output

```json
{
  "source": "betano.de",
  "sport": "FOOT",
  "eventId": "90624618",
  "name": "Tschechien - Kroatien",
  "homeTeam": "Tschechien",
  "awayTeam": "Kroatien",
  "startTime": "2026-09-26T18:45:00+00:00",
  "leagueName": "Nations League",
  "regionName": "UEFA",
  "url": "https://www.betano.de/quoten/tschechien-kroatien/90624618/",
  "isLive": false,
  "markets": [
    {
      "type": "MRES",
      "name": "Endergebnis",
      "line": null,
      "selections": [
        {"name": "1", "fullName": "Tschechien", "price": 3.4},
        {"name": "X", "fullName": "Unentschieden", "price": 3.4},
        {"name": "2", "fullName": "Kroatien", "price": 2.18}
      ]
    }
  ],
  "marketsCount": 1,
  "scrapedAt": "2026-09-26T08:46:03+00:00"
}
```

### Disclaimer

For research and data-analysis purposes. Odds change constantly — always verify
current odds on the site before betting. Betano is a trademark of its respective
owner; this Actor is not affiliated with or endorsed by Betano.

# Actor input Schema

## `mode` (type: `string`):

What to scrape: 'prematch' (upcoming program with odds — default), 'live' (in-play odds) or 'both'.

## `sportId` (type: `string`):

Betano sport code to scrape: 'FOOT' (football, default), 'TENN' (tennis), 'BASK' (basketball) and more.

## `hoursAhead` (type: `integer`):

Prematch: include only events starting within this many hours from now.

## `marketTypes` (type: `array`):

Which market types to keep. Common values: MRES = match result (1X2), HCTG = total goals over/under, BTSC = both teams to score, DBLC = double chance, OUH1 = 1st half over/under.

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

Stop after this many events (0 = no limit).

## `onlyWithOdds` (type: `boolean`):

Skip events that have none of the selected market types.

## `proxyConfiguration` (type: `object`):

Apify proxy configuration. Default: German residential proxies (required — betano.de denies datacenter IPs).

## `timeoutSecs` (type: `integer`):

Per-request HTTP timeout in seconds.

## Actor input object example

```json
{
  "mode": "prematch",
  "sportId": "FOOT",
  "hoursAhead": 24,
  "marketTypes": [
    "MRES",
    "HCTG",
    "BTSC",
    "DBLC"
  ],
  "maxEvents": 0,
  "onlyWithOdds": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "DE"
  },
  "timeoutSecs": 60
}
```

# Actor output Schema

## `results` (type: `string`):

One item per event: eventId, name, homeTeam, awayTeam, startTime, leagueName, leagueDescription, regionName, url, betRadarId, isLive, score/clockSeconds (live), markets\[] with type, name, line and decimal selections, marketsCount, scrapedAt.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("genkenobi/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 = {}

# Run the Actor and wait for it to finish
run = client.actor("genkenobi/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 '{}' |
apify call genkenobi/betano-odds-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,genkenobi/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/OZ4gJk2vvCHtZnYyN/builds/GxFRoenJfkhccDb8c/openapi.json
