# Bwin.es Odds API: Football, Tennis & NBA Odds Spain (`yakk000/bwin-spain-odds-api`) Actor

Bwin.es odds API: football (LaLiga, Premier, Champions…), tennis and NBA pre-match odds, every 10 min, with Pinnacle no-vig fair odds and EV, line movement and closing lines. JSON, CSV, Excel or HTTP API.

- **URL**: https://apify.com/yakk000/bwin-spain-odds-api.md
- **Developed by:** [Víctor Carrión](https://apify.com/yakk000) (community)
- **Categories:** Sports, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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

## Bwin.es Odds API: Football, Tennis & NBA Odds Spain

**Bwin.es odds API: football (LaLiga, Premier, Champions…), tennis and NBA pre-match odds, every 10 min, with Pinnacle no-vig fair odds and EV, line movement and closing lines. JSON, CSV, Excel or HTTP API.**

This Actor gives you pre-match odds for **Bwin Spain (bwin.es)**, collected every 10 minutes from Spain. Each odds row
comes with **Pinnacle's no-vig fair probability and EV**, so you can tell a good price from a bad one at a glance.
No login, browser or proxies needed on your side.

👉 Need more bookmakers or leagues? The full version is
**[Spanish Bookmakers Odds API](https://apify.com/Yakk000/spain-odds-pinnacle-value)**, with 14 Spanish bookmakers, 12 football competitions, tennis and
basketball, surebets, Telegram alerts and a real-time HTTP API.

📣 Free daily picks on Telegram: [t.me/valuebets_es](https://t.me/valuebets_es)

🆓 **Try it for free:** Apify's free plan gives you $5 of credit every month, with no card needed, which covers
thousands of rows.

### What you get

one row per selection with the price at Bwin.es. Each row has:

- **Match details:** `league`, `start` (UTC), `home` and `away`.
- **The price:** `bookmaker`, `market` (`1x2`, `ou2.5` or `ml`), `selection` and `odds`.
- **Value vs Pinnacle:** `pinnacle_fair_prob` and `ev` (+0.03 means the odds are 3% above the fair price).
- **Line movement:** `opening`, `min_odds`, `max_odds`, `moves` and `last_change`.

### Modes

- **`upcoming`:** All upcoming odds.
- **`value_bets`:** Value bets vs Pinnacle (EV).
- **`line_history`:** Line movement history.
- **`closing_lines`:** Closing lines & CLV.

### Example output

```json
{"league": "la_liga", "start": "2026-10-25T19:00:00+00:00", "home": "Real Betis", "away": "Valencia",
 "bookmaker": "Bwin.es", "market": "1x2", "selection": "1", "odds": 2.1,
 "pinnacle_fair_prob": 0.4902, "ev": 0.0294, "opening": 2.05, "moves": 3}
```

### Pricing

**$1.50 per 1,000 rows** (less on the Free plan and on high-volume plans), and an empty run costs nothing.
By default a run returns at most 200 rows (about $0.30); change `maxResults` to get more or fewer.

### Use cases

- Odds comparison and value betting on Spanish bookmakers.
- Backtesting models with real line movement and closing line value (CLV).
- Feeding Google Sheets, Make, Zapier, n8n or your own bot through the Apify API.

### FAQ

**How fresh is the data?** It's collected every 10 minutes. Each row has `data_updated_at`.

**Is this affiliated with the bookmakers?** No. It's an independent tool that reads publicly shown odds. Bet
responsibly (+18).

# Actor input Schema

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

match_odds = one row per match with every bookmaker's 1X2 and over/under odds, the best price per outcome, Pinnacle fair probabilities and the match's best EV pick (charged per match). best_odds = best price per outcome across all bookmakers with combined book % (odds comparison). surebets = only markets where the best prices guarantee profit (combined book < 100%), with stake shares. upcoming = latest odds for matches not started yet, with Pinnacle fair probability and EV. value_bets = only selections priced above Pinnacle's no-vig fair odds. line_history = every odds change (opening to kick-off). closing_lines = opening vs closing odds and CLV for matches already played.

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

Leave empty for all. Ids: la_liga, segunda, premier_league, championship, serie_a, bundesliga, ligue_1, eredivisie, primeira_liga, champions_league, europa_league, conference_league, copa_del_rey. Tennis: atp, wta. Basketball: nba, euroleague, acb.

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

Leave empty for all. 1x2 (football match result), ou2.5 (over/under 2.5 goals), ml (tennis/basketball moneyline: 1 = home/first player, 2 = away/second player) and 1x2_2up (Bwin only).

## `minEv` (type: `string`):

Only for value_bets. 0.02 = odds at least 2% above Pinnacle's no-vig fair price.

## `teamFilter` (type: `string`):

Optional: only matches where home or away contains this text (e.g. Betis).

## `dateFrom` (type: `string`):

For line_history and closing_lines. Default: yesterday.

## `dateTo` (type: `string`):

For line_history and closing_lines. Default: today.

## `includePinnacle` (type: `boolean`):

Add Pinnacle's own odds as reference rows (not used in value_bets).

## `telegramBotToken` (type: `string`):

For value_bets and surebets. Create a bot with @BotFather and paste its token. Schedule this Actor (e.g. every 15 min) and you'll get only NEW bets in Telegram, no code needed.

## `telegramChatId` (type: `string`):

Your chat or channel ID (send a message to @userinfobot to get yours).

## `webhookUrl` (type: `string`):

Each NEW value bet or surebet is POSTed as JSON to this URL (Discord/Slack via Make, Zapier or n8n, or your own server).

## `maxResults` (type: `integer`):

Hard cap on rows returned (and charged).

## Actor input object example

```json
{
  "mode": "upcoming",
  "leagues": [],
  "markets": [],
  "minEv": "0.02",
  "includePinnacle": false,
  "maxResults": 200
}
```

# Actor output Schema

## `odds` (type: `string`):

No description

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

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

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

```

## MCP server setup

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