# bet365 Odds API & Scraper: Unofficial Odds, Lines, History (`pp-api/bet365-odds-api`) Actor

bet365 odds as a dataset: unofficial bet365 prices for NFL, NBA, NHL, MLB, college and European soccer (match result, goal line, goalscorer), each with its capture time and line history. A bet365 scraper alternative with no proxies. Free preview.

- **URL**: https://apify.com/pp-api/bet365-odds-api.md
- **Developed by:** [PP API Inc.](https://apify.com/pp-api) (community)
- **Categories:** Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.10 / 1,000 results

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

### bet365 odds API and bet365 scraper alternative: unofficial bet365 odds as a dataset

This Actor gives you bet365 odds as clean rows: bet365 (US) moneyline, spread and total for the NFL, NBA, NHL, MLB and college sports, and bet365 soccer match result, double chance, goal line and goalscorer prices for the Premier League, LaLiga, Serie A, Bundesliga, Ligue 1, the Champions League and MLS. Every price carries the UTC time it was captured (`observed_at`), when it last changed (`price_since`) and its age in seconds, and you can attach the full line history.

It reads from [thebet365api.com](https://thebet365api.com), an independent bet365 odds API, so you get structured rows instead of maintaining a bet365 scraper. The prices are **unofficial**: they are bet365 prices as republished by public odds aggregators, captured and timestamped by thebet365api.com. This is not bet365's own feed.

**Try it with no key.** Leave the API key empty and run: you get real bet365 prices for up to 3 events (moneyline or match result, about 15 minutes old).

#### What you get

| Mode | What it returns |
|---|---|
| Odds | One row per bet365 price: `league`, `home`, `away`, `starts_at`, `market`, `side`, `team`, `player`, `line`, `price_american`, `price_decimal`, `price_fractional`, `is_live`, `observed_at`, `price_since`, `age_seconds`, `event_id`, `selection_id`. With "Include line history", each row also gets `history` (every recorded line and price) and `line_moves`. |
| Events | Games and matches with the bet365 markets captured for each, start time and status. |
| Line history | Every price change for one event (optionally one market): line, price, from `observed_at` to `last_seen_at`. Backtest closing lines and steam moves. |

Markets: moneyline, spread, total, team total, match result (1X2), double chance, goal line, first, anytime and last goalscorer. Coverage depends on what the public sources show in season; the [coverage page](https://thebet365api.com/coverage) lists it live.

#### Why an API instead of a bet365 scraper

bet365 blocks scripted clients, so a bet365 scraper needs residential proxies and browser automation, breaks when the site changes, and only ever sees the price at the moment it runs. This Actor reads a continuously collected record instead: runs take seconds, need no proxies, and every price says exactly when it was seen. Prices are refreshed as often as every 60 seconds; we never call them real time.

The same data is a REST API ([docs](https://thebet365api.com/docs), [OpenAPI](https://thebet365api.com/openapi.json)) and a remote MCP server for Claude, ChatGPT and Cursor at `https://thebet365api.com/api/mcp`.

#### How to use it

1. Run it with no key to see real bet365 prices.
2. Get a free API key at [thebet365api.com/sign-up](https://thebet365api.com/sign-up). The free plan needs no card and includes 24 hours of line history; paid plans read every change since collection began.
3. Paste the key, pick a league and market, and run. Export as JSON, CSV or Excel, or schedule it every few minutes to build your own bet365 odds history.

Each page of up to 100 events is one request on your thebet365api.com plan; line history adds one request per event.

#### FAQ

**Is there an official bet365 API?** We are not aware of a self-serve public bet365 odds API. This Actor is not one either: it is an independent, unofficial source of bet365 prices.

**How fresh are the bet365 odds?** Every row has `observed_at`, the UTC time the price was read, and `age_seconds`. The keyless preview is delayed about 15 minutes; a key reads current captures.

**Do you have historical bet365 odds?** From the day collection started, with a row each time a price or line changed. There is no backfill before that.

**Does it cover bet365 player props?** Soccer goalscorer markets, yes. US player props, alternate lines, futures and in-play markets beyond what the sources show are not covered.

Independent data service operated by Stunning Couches LLC, not affiliated with, endorsed by or sponsored by bet365. bet365 is a trademark of its owner, used here only to describe the data. Prices are unofficial and republished from public odds aggregators. Information only, not betting advice.

# Actor input Schema

## `apiKey` (type: `string`):

Your thebet365api.com API key. Free plan, no card: https://thebet365api.com/sign-up. Leave empty for a free preview of real bet365 prices (up to 3 events, about 15 minutes old).

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

Odds returns every current captured bet365 price. Events lists games. Line history needs an event ID.

## `league` (type: `string`):

Optional. US leagues carry bet365 (US) main lines; soccer leagues carry bet365 match result, double chance, goal line and goalscorer prices. Leave empty for all.

## `market` (type: `string`):

Optional. Only this market. Leave empty for every market captured.

## `eventId` (type: `string`):

Optional for odds, required for line history. Looks like an-295471 or espn-401879233: copy it from the event_id column of an odds or events run.

## `live` (type: `string`):

Optional. Leave empty for both.

## `includeHistory` (type: `boolean`):

Odds mode: attach every recorded price change to each price (history and line_moves columns). One extra request per event. Free keys read the last 24 hours; paid plans read everything since collection began.

## `maxHistoryEvents` (type: `integer`):

History is fetched for at most this many events.

## `maxItems` (type: `integer`):

Stop after this many rows. Each page of up to 100 events is one API request on your plan.

## Actor input object example

```json
{
  "mode": "odds",
  "league": "nba",
  "includeHistory": false,
  "maxHistoryEvents": 25,
  "maxItems": 1000
}
```

# Actor output Schema

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

All rows from this run as a dataset.

# 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 = {
    "mode": "odds",
    "league": "nba"
};

// Run the Actor and wait for it to finish
const run = await client.actor("pp-api/bet365-odds-api").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 = {
    "mode": "odds",
    "league": "nba",
}

# Run the Actor and wait for it to finish
run = client.actor("pp-api/bet365-odds-api").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 '{
  "mode": "odds",
  "league": "nba"
}' |
apify call pp-api/bet365-odds-api --silent --output-dataset

```

## MCP server setup

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

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/ZdIpIRHrlPLzuZHVO/builds/eSq76malkMGey5YXg/openapi.json
