{
  "openapi": "3.0.1",
  "info": {
    "title": "Spanish Bookmakers Odds API: Football, Tennis & NBA +EV",
    "description": "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.",
    "version": "0.1",
    "x-build-id": "cEQwuY7cZ3QC7XhuR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yakk000~spain-odds-pinnacle-value/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yakk000-spain-odds-pinnacle-value",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/yakk000~spain-odds-pinnacle-value/runs": {
      "post": {
        "operationId": "runs-sync-yakk000-spain-odds-pinnacle-value",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/yakk000~spain-odds-pinnacle-value/run-sync": {
      "post": {
        "operationId": "run-sync-yakk000-spain-odds-pinnacle-value",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "What do you want?",
            "enum": [
              "value_bets",
              "match_odds",
              "best_odds",
              "surebets",
              "upcoming",
              "line_history",
              "closing_lines"
            ],
            "type": "string",
            "description": "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.",
            "default": "value_bets"
          },
          "leagues": {
            "title": "Leagues",
            "type": "array",
            "description": "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.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "bookmakers": {
            "title": "Bookmakers",
            "type": "array",
            "description": "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.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "markets": {
            "title": "Markets",
            "type": "array",
            "description": "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).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minEv": {
            "title": "Minimum EV for value bets",
            "type": "string",
            "description": "Only for value_bets. 0.02 = odds at least 2% above Pinnacle's no-vig fair price.",
            "default": "0.02"
          },
          "teamFilter": {
            "title": "Team contains",
            "type": "string",
            "description": "Optional: only matches where home or away contains this text (e.g. Betis)."
          },
          "dateFrom": {
            "title": "From (kick-off date, YYYY-MM-DD)",
            "type": "string",
            "description": "For line_history and closing_lines. Default: yesterday."
          },
          "dateTo": {
            "title": "To (kick-off date, YYYY-MM-DD)",
            "type": "string",
            "description": "For line_history and closing_lines. Default: today."
          },
          "includePinnacle": {
            "title": "Include Pinnacle rows",
            "type": "boolean",
            "description": "Add Pinnacle's own odds as reference rows (not used in value_bets).",
            "default": true
          },
          "telegramBotToken": {
            "title": "Telegram alerts: bot token (optional)",
            "type": "string",
            "description": "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": {
            "title": "Telegram alerts: chat ID (optional)",
            "type": "string",
            "description": "Your chat or channel ID (send a message to @userinfobot to get yours)."
          },
          "webhookUrl": {
            "title": "Webhook URL (optional)",
            "type": "string",
            "description": "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": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on rows returned (and charged).",
            "default": 1000
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}