{
  "openapi": "3.0.1",
  "info": {
    "title": "Pinnacle Odds API: Sports Betting Odds Scraper + Closing Lines",
    "description": "Pinnacle odds API & betting odds scraper: Pinnacle, Kambi (paf), Polymarket and Kalshi odds with no-vig fair odds and edge vs Pinnacle; soccer, NBA, NFL, NHL, tennis. Modes: current, closing, movement. First 100 rows/run free, then $1.50 per 1,000. Unofficial, not affiliated with Pinnacle or Kambi.",
    "version": "0.1",
    "x-build-id": "RVwg6VuEb8E8IY4DB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/axeforce00~odds-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-axeforce00-odds-feed",
        "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/axeforce00~odds-feed/runs": {
      "post": {
        "operationId": "runs-sync-axeforce00-odds-feed",
        "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/axeforce00~odds-feed/run-sync": {
      "post": {
        "operationId": "run-sync-axeforce00-odds-feed",
        "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": "Mode",
            "enum": [
              "current",
              "closing",
              "movement"
            ],
            "type": "string",
            "description": "Which odds to return. current (default): latest pre-match and live prices; the first 100 rows of each run are free, then $0.0015 per row. closing: finalized closing lines (isClosing=true, with opening price and movement) for dateFrom..dateTo, archive since 20 Oct 2026, $0.003 per row, no free rows. movement: opening to current price history of the eventIds you pass, $0.0015 per row after 100 free. Polling every minute? Use the Standby URL ($0.001 per request plus platform usage).",
            "default": "current"
          },
          "sports": {
            "title": "Sports",
            "type": "array",
            "description": "Sports to cover when leagues is empty. Valid values: soccer, tennis, basketball, baseball, ice_hockey, american_football. Default: soccer. Ignored when leagues is set, because each league code already names its sport.",
            "items": {
              "type": "string",
              "enum": [
                "soccer",
                "tennis",
                "basketball",
                "baseball",
                "ice_hockey",
                "american_football"
              ]
            },
            "default": [
              "soccer"
            ]
          },
          "leagues": {
            "title": "Leagues",
            "type": "array",
            "description": "Leagues by code (sport.league), e.g. soccer.epl, basketball.nba, american_football.nfl, ice_hockey.nhl, tennis.atp. Default (empty): every league of the chosen sports. Setting leagues overrides sports. A league out of season returns no rows and costs nothing.",
            "items": {
              "type": "string",
              "enum": [
                "soccer.epl",
                "soccer.laliga",
                "soccer.seriea",
                "soccer.bundesliga",
                "soccer.ligue1",
                "soccer.ucl",
                "soccer.brasileirao",
                "soccer.brasileirao_b",
                "basketball.nba",
                "basketball.euroleague",
                "baseball.mlb",
                "baseball.kbo",
                "baseball.npb",
                "ice_hockey.nhl",
                "ice_hockey.shl",
                "ice_hockey.liiga",
                "american_football.nfl",
                "american_football.ncaaf",
                "tennis.atp",
                "tennis.wta",
                "tennis.challenger",
                "tennis.itf_men",
                "tennis.itf_women"
              ],
              "enumTitles": [
                "Soccer: England Premier League",
                "Soccer: Spain La Liga",
                "Soccer: Italy Serie A",
                "Soccer: Germany Bundesliga",
                "Soccer: France Ligue 1",
                "Soccer: UEFA Champions League",
                "Soccer: Brazil Serie A",
                "Soccer: Brazil Serie B",
                "Basketball: NBA",
                "Basketball: EuroLeague",
                "Baseball: MLB",
                "Baseball: KBO (Korea)",
                "Baseball: NPB (Japan)",
                "Ice hockey: NHL",
                "Ice hockey: SHL (Sweden)",
                "Ice hockey: Liiga (Finland)",
                "American football: NFL",
                "American football: NCAA football",
                "Tennis: ATP",
                "Tennis: WTA",
                "Tennis: Challenger",
                "Tennis: ITF Men",
                "Tennis: ITF Women"
              ]
            }
          },
          "books": {
            "title": "Books",
            "type": "array",
            "description": "Bookmakers. pinnacle: the sharp book (fair odds, limits, cutoffAt). paf: the Kambi soft book; edgeVsSharpPct compares it with Pinnacle's same line. polymarket, kalshi: prediction markets (current odds). betexplorer_avg: market-average closing prices (closing mode). coolbet: only used by the fallback when paf fails. Default: pinnacle, paf. More books means more rows and a higher cost.",
            "items": {
              "type": "string",
              "enum": [
                "pinnacle",
                "paf",
                "coolbet",
                "polymarket",
                "kalshi",
                "betexplorer_avg"
              ]
            },
            "default": [
              "pinnacle",
              "paf"
            ]
          },
          "markets": {
            "title": "Markets",
            "type": "array",
            "description": "Markets to include. Valid values: h2h (moneyline / match winner), h2h3 (1X2 three-way), spread (handicap), total (over/under), team_total_home, team_total_away. Default (empty): all markets. Fewer markets means fewer rows and a lower cost.",
            "items": {
              "type": "string",
              "enum": [
                "h2h",
                "h2h3",
                "spread",
                "total",
                "team_total_home",
                "team_total_away"
              ]
            }
          },
          "mainOnly": {
            "title": "Main lines only",
            "type": "boolean",
            "description": "true (default): only each book's main line per market. false: alternate lines too, about 3x more rows and cost (Premier League, Pinnacle only, 10 Nov 2026: 440 main-line rows, 1,482 with alternates).",
            "default": true
          },
          "includeProps": {
            "title": "Include props (Pinnacle specials)",
            "type": "boolean",
            "description": "true: also return Pinnacle player, game and team props (e.g. a player's receiving yards over/under) as separate prop rows, $0.001 per prop row with no free allowance. Odds rows keep their price and their 100 free rows. Default: false.",
            "default": false
          },
          "propTypes": {
            "title": "Prop markets",
            "type": "array",
            "description": "Only used with includeProps. Valid values: player_prop, game_prop, team_prop. Default: all three.",
            "items": {
              "type": "string",
              "enum": [
                "player_prop",
                "game_prop",
                "team_prop"
              ]
            },
            "default": [
              "player_prop",
              "game_prop",
              "team_prop"
            ]
          },
          "propPlayers": {
            "title": "Player filter (props)",
            "type": "array",
            "description": "Only used with includeProps: keep props whose player name contains one of these case-insensitive texts, e.g. ferguson or tatum. Game props have no player and are dropped when this is set. At most 20. Default: all players.",
            "items": {
              "type": "string"
            }
          },
          "live": {
            "title": "Live filter",
            "type": "boolean",
            "description": "true: only in-play prices. false: only pre-match prices. Default (unset): both."
          },
          "date": {
            "title": "Date (UTC, YYYY-MM-DD)",
            "type": "string",
            "description": "mode=current only: only events starting on this UTC day, YYYY-MM-DD (e.g. 2026-11-15). Default: every listed event."
          },
          "dateFrom": {
            "title": "From date (UTC, YYYY-MM-DD)",
            "type": "string",
            "description": "mode=closing: first day of the closing-line range, UTC, YYYY-MM-DD. The archive starts on 2026-10-20. Default: the start of the archive. Set dateFrom and dateTo to bound the range and the cost ($0.003 per closing row)."
          },
          "dateTo": {
            "title": "To date (UTC, YYYY-MM-DD)",
            "type": "string",
            "description": "mode=closing: last day of the closing-line range, inclusive, UTC, YYYY-MM-DD. Default: no end (up to the latest finalized match)."
          },
          "since": {
            "title": "Changed since (revision)",
            "type": "integer",
            "description": "mode=current change-only polling: return only rows changed after this revision number. Pass nextSince from the previous run's OUTPUT record. Default (unset): all rows. Needs API mode, the normal mode on Apify."
          },
          "eventIds": {
            "title": "Event ids (movement mode)",
            "type": "array",
            "description": "Required for mode=movement, ignored otherwise: eventKey values (integers) from earlier odds rows, e.g. \"88213\". Each event returns its opening to current price history.",
            "items": {
              "type": "string"
            }
          },
          "maxRows": {
            "title": "Maximum rows",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Maximum rows per run (odds and prop rows together), so it caps the cost. Default 50, which stays inside the 100 free odds rows. One league's main-line board is usually a few hundred rows (Premier League, 10 Nov 2026: 490 rows, (490 - 100) x $0.0015 = $0.585). Charging also stops at the run's maximum charge. Standby requests are not limited by this sample default.",
            "default": 50
          },
          "maxLeagues": {
            "title": "Maximum leagues (direct mode)",
            "minimum": 1,
            "maximum": 40,
            "type": "integer",
            "description": "Fallback (direct) mode only, which is rarely used on Apify: the most leagues fetched per run (1-40, default 6). Leagues beyond the cap are named in the run output.",
            "default": 6
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}