{
  "openapi": "3.0.1",
  "info": {
    "title": "Pinnacle Odds Scraper: Kalshi & Polymarket Edge",
    "description": "Pinnacle sharp odds for NFL, NBA, NHL, MLB, soccer, tennis, UFC and esports with no-vig fair probabilities, compared line by line with Kalshi and Polymarket prices. Get the edge and expected value of every contract, cross-venue arbitrage and line movement alerts.",
    "version": "0.1",
    "x-build-id": "LjRF2HSGYMnzEwho3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datamole~pinnacle-sports-odds-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datamole-pinnacle-sports-odds-scraper",
        "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/datamole~pinnacle-sports-odds-scraper/runs": {
      "post": {
        "operationId": "runs-sync-datamole-pinnacle-sports-odds-scraper",
        "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/datamole~pinnacle-sports-odds-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-datamole-pinnacle-sports-odds-scraper",
        "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": {
          "leagues": {
            "title": "Leagues",
            "type": "array",
            "description": "Leagues to scrape. Each one is matched to its Kalshi and Polymarket markets automatically.",
            "items": {
              "type": "string",
              "enum": [
                "nfl",
                "ncaaf",
                "nba",
                "ncaab",
                "wnba",
                "euroleague",
                "nhl",
                "mlb",
                "kbo",
                "npb",
                "epl",
                "championship",
                "laliga",
                "seriea",
                "bundesliga",
                "ligue1",
                "eredivisie",
                "primeira",
                "ucl",
                "uel",
                "uecl",
                "mls",
                "ligamx",
                "brasileirao",
                "argentina",
                "libertadores",
                "sudamericana",
                "ufc",
                "boxing",
                "atp",
                "wta",
                "cs2",
                "lol",
                "dota2",
                "valorant"
              ],
              "enumTitles": [
                "NFL",
                "College Football (NCAAF)",
                "NBA",
                "College Basketball (NCAAB)",
                "WNBA",
                "EuroLeague",
                "NHL",
                "MLB",
                "KBO (Korea baseball)",
                "NPB (Japan baseball)",
                "Premier League",
                "EFL Championship",
                "La Liga",
                "Serie A",
                "Bundesliga",
                "Ligue 1",
                "Eredivisie",
                "Primeira Liga",
                "UEFA Champions League",
                "UEFA Europa League",
                "UEFA Conference League",
                "MLS",
                "Liga MX",
                "Brasileirão Série A",
                "Argentina Liga Profesional",
                "Copa Libertadores",
                "Copa Sudamericana",
                "UFC",
                "Boxing",
                "ATP tennis",
                "WTA tennis",
                "Counter-Strike 2",
                "League of Legends",
                "Dota 2",
                "Valorant"
              ]
            },
            "default": [
              "nfl",
              "nba",
              "nhl",
              "epl"
            ]
          },
          "sports": {
            "title": "Whole sports (optional)",
            "type": "array",
            "description": "Every Pinnacle league of these sports with open games, for example all soccer leagues. Leagues outside the list above are scraped without prediction market prices.",
            "items": {
              "type": "string",
              "enum": [
                "Baseball",
                "Basketball",
                "Boxing",
                "Cricket",
                "E Sports",
                "Football",
                "Golf",
                "Handball",
                "Hockey",
                "Mixed Martial Arts",
                "Rugby Union",
                "Soccer",
                "Tennis",
                "Volleyball",
                "Formula 1"
              ],
              "enumTitles": [
                "Baseball",
                "Basketball",
                "Boxing",
                "Cricket",
                "E Sports",
                "Football",
                "Golf",
                "Handball",
                "Hockey",
                "Mixed Martial Arts",
                "Rugby Union",
                "Soccer",
                "Tennis",
                "Volleyball",
                "Formula 1"
              ]
            }
          },
          "leagueSearch": {
            "title": "League search (optional)",
            "type": "string",
            "description": "Any Pinnacle league whose name contains this text, in every sport, for example \"Australia\" or \"Euroleague\"."
          },
          "teamSearch": {
            "title": "Teams or players (optional)",
            "type": "array",
            "description": "Keep only games with any of these teams or players, for example Chiefs, Real Madrid or Alcaraz.",
            "items": {
              "type": "string"
            }
          },
          "marketTypes": {
            "title": "Markets",
            "type": "array",
            "description": "Market types to save. Kalshi and Polymarket are compared on moneyline, spread and total.",
            "items": {
              "type": "string",
              "enum": [
                "moneyline",
                "spread",
                "total",
                "team_total"
              ],
              "enumTitles": [
                "Moneyline (winner)",
                "Spread / handicap",
                "Total (over/under)",
                "Team total"
              ]
            },
            "default": [
              "moneyline",
              "spread",
              "total"
            ]
          },
          "includePeriods": {
            "title": "Include halves, quarters and periods",
            "type": "boolean",
            "description": "1st half, quarters, periods, sets, maps and 1st 5 innings, besides the full game.",
            "default": false
          },
          "includeAlternateLines": {
            "title": "Include alternate lines",
            "type": "boolean",
            "description": "Every alternate spread and total Pinnacle offers, not only the main line. Gives many more matches with Kalshi, which lists many lines per game.",
            "default": false
          },
          "includeLive": {
            "title": "Include live games",
            "type": "boolean",
            "description": "Games already in play.",
            "default": true
          },
          "hoursAhead": {
            "title": "Hours ahead",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Only games starting within this many hours. 0 means no limit.",
            "default": 168
          },
          "compareKalshi": {
            "title": "Compare with Kalshi",
            "type": "boolean",
            "description": "Kalshi bid, ask, volume and edge after its taker fee for each matched outcome.",
            "default": true
          },
          "comparePolymarket": {
            "title": "Compare with Polymarket",
            "type": "boolean",
            "description": "Polymarket bid, ask, volume, liquidity and edge for each matched outcome.",
            "default": true
          },
          "onlyWithPredictionMarkets": {
            "title": "Only lines found on Kalshi or Polymarket",
            "type": "boolean",
            "description": "Skip lines that no prediction market lists.",
            "default": false
          },
          "minEdge": {
            "title": "Minimum edge (percentage points)",
            "minimum": -100,
            "maximum": 100,
            "type": "integer",
            "description": "Keep only lines where a Kalshi or Polymarket contract is at least this many points cheaper than the Pinnacle fair probability. 2 means a contract at 48¢ when Pinnacle says 50%. Empty keeps all lines."
          },
          "onlyArbitrage": {
            "title": "Only arbitrage",
            "type": "boolean",
            "description": "Keep only lines where buying each outcome at its cheapest venue costs less than the payout.",
            "default": false
          },
          "monitorMode": {
            "title": "Monitor mode",
            "type": "boolean",
            "description": "Schedule the run and get only new lines and lines that moved since the previous run, with the previous and first seen values. The first run returns every line as new.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name (optional)",
            "type": "string",
            "description": "Use different names to keep separate monitors. Runs with the same name share their memory."
          },
          "minMove": {
            "title": "Minimum move (percentage points)",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "In monitor mode, report odds changes when a fair probability moved at least this much. Line changes are always reported. 0 reports every price change.",
            "default": 1
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of lines to save. Empty means no limit."
          },
          "proxyConfiguration": {
            "title": "Proxy (optional)",
            "type": "object",
            "description": "Not needed: the three sources answer Apify servers directly. Set one only if requests start failing."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}