# Spanish Bookmakers Odds API: Football, Tennis & NBA +EV (`yakk000/spain-odds-pinnacle-value`) Actor

Football, tennis & NBA odds from 14 Spanish bookmakers other APIs skip (Sportium, Marca, William Hill, Betway, Bwin, Paf, Betfair…) de-vigged vs Pinnacle: +EV value bets, best odds, surebets, CLV. Telegram alerts. Every 10 min.

- **URL**: https://apify.com/yakk000/spain-odds-pinnacle-value.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 + usage

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

## Spanish Bookmakers Odds API: Football, Tennis & NBA. +EV Value Bets, Arbitrage & Pinnacle CLV ⚽🎾🏀🇪🇸

**Football, tennis and basketball odds from 14 Spanish-licensed bookmakers that no other odds API covers, de-vigged against Pinnacle's sharp line.** Get +EV value bets, the best price per outcome, arbitrage (surebets), closing line value (CLV) and the full line-movement history, updated every 10 minutes.

Keyless, with no login, no browser and no proxies needed. Export to JSON, CSV or Excel, or call it from the API, Make, Zapier, n8n or Google Sheets.

📣 **Free daily picks on Telegram:** [t.me/valuebets_es](https://t.me/valuebets_es), the day's best value bets from Spanish bookmakers, posted automatically from this data.

### Why this Actor

US-focused odds scrapers cover DraftKings, FanDuel and Bovada. **Spanish bookmakers are missing from almost every odds API.** These are the books Spanish bettors use, and they often price LaLiga and the big European leagues differently from the sharp market. This Actor adds them:

**Sportium · Marca Apuestas · Versus · William Hill.es · Betway.es · Bwin.es · Tonybet.es · LeoVegas.es · Paf.es · Admiralbet.es · Paston · Bet777.es · Yaass · Betfair Exchange.es**, with **Pinnacle** as the sharp, no-vig reference.

**Football:** LaLiga, LaLiga 2, Premier League, Championship, Serie A, Bundesliga, Ligue 1, Eredivisie, Primeira Liga, Champions League, Europa League, Conference League, plus Copa del Rey when it's listed.
**Tennis:** ATP and WTA singles. **Basketball:** NBA, EuroLeague and Liga ACB.
**Markets:** football 1X2 and over/under 2.5 goals; tennis and basketball moneyline (`ml`, including overtime).

![Value bets vs Pinnacle right now](https://api.apify.com/v2/key-value-stores/SgCD1M91zpUyEvAkC/records/img-value_bets?signature=1bxQ2U7CPwoi4ksmhwEOI)

![One match across 14 Spanish bookmakers](https://api.apify.com/v2/key-value-stores/SgCD1M91zpUyEvAkC/records/img-match_card?signature=1qdYACBJu9OozekfnQFg6)

![1X2 margin by Spanish bookmaker](https://api.apify.com/v2/key-value-stores/SgCD1M91zpUyEvAkC/records/img-margins_chart?signature=td60z1u9Ulw5Mssq6EJz)

*These images are refreshed daily from the live data. Free daily preview by league: [yasaiiko.github.io/spain-odds-api-examples/](https://yasaiiko.github.io/spain-odds-api-examples/).*

### Modes

- **`value_bets` (+EV):** prices above Pinnacle's no-vig fair odds, with EV % and fair probability. Usually 20–60 rows.
- **`match_odds` (one row per match):** every bookmaker's 1X2 and over/under 2.5 odds side by side, the best price per outcome and which bookmaker offers it, Pinnacle's fair probabilities, and the match's best +EV pick. Ideal for spreadsheets and odds comparison sites. Charged per match.
- **`best_odds` (odds comparison):** the best price per outcome across the 14 Spanish bookmakers, which bookmaker offers it, and the combined book %. About 600 rows.
- **`surebets` (arbitrage):** markets where the best prices add up to less than 100%, with the stake share for each leg.
- **`upcoming`:** every bookmaker's latest price, with opening price, high, low and number of moves. About 5,800 rows.
- **`line_history`:** every odds change, timestamped, from first listing to kick-off. Use it to spot steam moves and to backtest.
- **`closing_lines` (CLV):** opening vs closing price and CLV against Pinnacle for matches already played.

### ⚡ Real-time HTTP API (no runs to start)

The Actor also works as an always-on REST endpoint, which answers in about a second. Same price per row.

```bash
curl "https://yakk000--spain-odds-pinnacle-value.apify.actor/?mode=value_bets&leagues=la_liga,premier_league&minEv=0.03&maxResults=50" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN"
```

Any input field works as a query parameter (`mode`, `leagues`, `bookmakers`, `markets`, `minEv`, `teamFilter`, `maxResults`). The response is `{"count", "data_updated_at", "items": [...]}`. It's ideal for bots, dashboards and AI agents.

### 🔔 Your own alerts on Telegram, no code needed

Want a taste first? Join the free public channel **[@valuebets_es](https://t.me/valuebets_es)**. For *every* bet, with your own filters and instant delivery, set up the alerts below.

1. Create a Telegram bot with **@BotFather** and copy its token. Get your chat ID from **@userinfobot**.
2. Pick mode `value_bets` (or `surebets`), paste the token and chat ID, and set your minimum EV.
3. **Schedule** the Actor every 15–30 minutes (Apify → Schedules).

You'll get **only new bets** on your phone, never repeats. Prefer Discord, Slack or Sheets? Put a **webhook URL** (Make, Zapier, n8n) instead, and every new bet is POSTed as JSON.

### Ready-made tasks (one click)

- **LaLiga value bets vs Pinnacle**
- **Premier League value bets (Spanish bookmakers)**
- **Champions League value bets**
- **Best odds comparison: 14 Spanish bookmakers**
- **Surebet / arbitrage finder**
- **Football closing line value (CLV)**

Open any of them from this Actor's Tasks, or schedule them for automatic alerts.

### Example: a +EV value bet

```json
{
  "league": "la_liga",
  "start": "2026-10-31T20:00:00+00:00",
  "home": "Barcelona",
  "away": "Alaves",
  "bookmaker": "Tonybet.es",
  "market": "1x2",
  "selection": "X",
  "odds": 8.6,
  "pinnacle_fair_prob": 0.144,
  "ev": 0.239,
  "opening": 8.6,
  "moves": 0,
  "data_updated_at": "2026-10-20T10:23:54+00:00"
}
```

`ev = odds × pinnacle_fair_prob − 1`. Here the draw is priced 24% above the sharp market's fair price. For Betfair Exchange, EV is net of the 5% commission. Pinnacle doesn't operate in Spain, so it serves only as the reference and never appears as the best price.

### Use cases

- **+EV / value betting alerts:** schedule `value_bets` every 15 minutes and push new rows to Telegram, Discord, Slack or a webhook.
- **Matched betting and arbitrage:** use `best_odds` and `surebets` to find the best Spanish price for every leg.
- **Proving an edge (CLV tracking):** use `closing_lines` to measure closing line value, the standard proof that a tipster or model beats the market.
- **Models and backtests:** `line_history` gives clean team names matched across bookmakers ("Athletic Club" = "Athletic Bilbao").
- **Odds comparison and affiliate sites:** use `best_odds` as a ready-made Spanish odds feed.

### Code examples

Ready-to-run Python examples (value bets, Telegram alerts, best odds and a CLV report): **[yasaiiko/spain-odds-api-examples](https://github.com/yasaiiko/spain-odds-api-examples)**

### Input

- **Mode:** default `value_bets`.
- **Leagues:** `la_liga`, `segunda`, `premier_league`, `championship`, `serie_a`, `bundesliga`, `ligue_1`, `eredivisie`, `primeira_liga`, `champions_league`, `europa_league`, `conference_league`, `copa_del_rey`.
- **Bookmakers:** by name, e.g. `Tonybet.es` or `William Hill.es`.
- **Markets:** `1x2` or `ou2.5`.
- **Minimum EV, team filter, date range** (for history and closing lines).
- **Max results:** caps the cost of a run.

### Pricing

**Pay per result: $1.50 per 1,000 rows**, less on the Free plan and less on high-volume plans. In `match_odds`, one row covers a whole match with every bookmaker, priced at $0.006. A `value_bets` check usually costs a few cents, and an empty run costs nothing.

### FAQ

**How fresh is the data?** It's collected from Spain every 10 minutes. Every row includes `data_updated_at`.

**How is the fair probability calculated?** Pinnacle's latest prices for the same market, with the margin removed by multiplicative normalisation.

**Live (in-play) odds?** Not yet. Only pre-match.

**Can I request a bookmaker, league or market?** Yes. Open an issue. Codere and Bet365 are next.

**Is this betting advice?** No. It's market data. Odds move fast and bookmakers may limit winning accounts. 18+, gamble responsibly.

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

## `bookmakers` (type: `array`):

Leave empty for all. Names: Sportium, Marca Apuestas, Versus, William Hill.es, Betway.es, Bwin.es, Tonybet.es, LeoVegas.es, Paf.es, Admiralbet.es, Paston, Bet777.es, Yaass, Betfair Exchange.es, Pinnacle.

## `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": "value_bets",
  "leagues": [],
  "bookmakers": [],
  "markets": [],
  "minEv": "0.02",
  "includePinnacle": true,
  "maxResults": 1000
}
```

# 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/spain-odds-pinnacle-value").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/spain-odds-pinnacle-value").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/spain-odds-pinnacle-value --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,yakk000/spain-odds-pinnacle-value"
        }
    }
}
```

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/59aJUiCZXzM3BJeq9/builds/cEQwuY7cZ3QC7XhuR/openapi.json
