{
  "openapi": "3.0.1",
  "info": {
    "title": "Pinnacle Odds Scraper & Line Movement Monitor",
    "description": "Pinnacle sharp odds for NBA, NFL, NHL, college, soccer, tennis and UFC: moneyline, spread, total and team total with no-vig probability. Turn on monitoring and each later run returns only the lines that moved, with the previous price and the opening line.",
    "version": "0.1",
    "x-build-id": "Hw0mftecYa8ERn9sx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neverempty~pinnacle-odds-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neverempty-pinnacle-odds-monitor",
        "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/neverempty~pinnacle-odds-monitor/runs": {
      "post": {
        "operationId": "runs-sync-neverempty-pinnacle-odds-monitor",
        "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/neverempty~pinnacle-odds-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-neverempty-pinnacle-odds-monitor",
        "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": "Which Pinnacle leagues to read. Use a short name (nba, ncaab, nfl, ncaaf, nhl, ufc, epl, championship, laliga, bundesliga, bundesliga2, seriea, ligue1, eredivisie, primeiraliga, ucl, uel, mls, ligamx, brasileirao) or the numeric league ID from a pinnacle.com league page address (889 is the NFL). Use Whole sports below for anything else. A name that is not recognised comes back as a free row that says so.",
            "items": {
              "type": "string"
            }
          },
          "sports": {
            "title": "Whole sports",
            "type": "array",
            "description": "Read every league of a sport at once, by name or numeric ID: Tennis, Soccer, Basketball, Football, Hockey, Baseball, Mixed Martial Arts (or mma), Boxing, E Sports, Golf and the other sports listed on pinnacle.com. Tennis returns both the match (Sets) and total games (Games) prices.",
            "items": {
              "type": "string"
            }
          },
          "marketTypes": {
            "title": "Markets to return",
            "type": "array",
            "description": "Empty = all four.",
            "items": {
              "type": "string",
              "enum": [
                "moneyline",
                "spread",
                "total",
                "team_total"
              ],
              "enumTitles": [
                "Moneyline (incl. draw in soccer)",
                "Spread / handicap",
                "Total (over/under)",
                "Team total"
              ]
            }
          },
          "includePartialPeriods": {
            "title": "Include halves, quarters, periods and sets",
            "type": "boolean",
            "description": "Off = full game only. On = also 1st half, quarters, periods, innings and sets where Pinnacle prices them (periodName says which).",
            "default": false
          },
          "includeAlternateLines": {
            "title": "Include alternate lines",
            "type": "boolean",
            "description": "Off = the main spread and total only. On = every alternate spread and total as well.",
            "default": false
          },
          "includeOtherUnits": {
            "title": "Include corners, bookings and other units",
            "type": "boolean",
            "description": "Off = goals, points, sets and games. On = also side markets such as corners and bookings (the unit column says which).",
            "default": false
          },
          "teams": {
            "title": "Teams or players",
            "type": "array",
            "description": "Keep only games where a team or player name contains one of these words (case does not matter). Empty = every game.",
            "items": {
              "type": "string"
            }
          },
          "matchupIds": {
            "title": "Matchup IDs",
            "type": "array",
            "description": "Keep only these games (the numeric ID in a pinnacle.com game page address, or matchupId from an earlier run). An ID that is not on the board comes back as a free row.",
            "items": {
              "type": "string"
            }
          },
          "startsWithinHours": {
            "title": "Only games starting within (hours)",
            "minimum": 0,
            "maximum": 8760,
            "type": "integer",
            "description": "0 = no limit. 24 = only games that start in the next 24 hours.",
            "default": 0
          },
          "maxRows": {
            "title": "Maximum price rows",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "The run stops after this many price rows. Rows come soonest start first, so a low number keeps the nearest games.",
            "default": 1000
          },
          "monitoringMode": {
            "title": "Monitor line movement",
            "type": "boolean",
            "description": "On = the run remembers every price it read. Run it on a schedule with the same input and each later run compares against the previous run and against the opening (first seen) line.",
            "default": false
          },
          "onlyChangedLines": {
            "title": "Return only lines that changed",
            "type": "boolean",
            "description": "On = the first monitoring run only saves the starting point (no rows, no charge) and each later run returns only new or moved prices. Off = every run returns every price, each marked new, moved or unchanged.",
            "default": true
          },
          "minPriceMove": {
            "title": "Smallest move to return (decimal odds)",
            "type": "string",
            "description": "Only with monitoring and Return only lines that changed. 0.05 = skip price moves smaller than 0.05 in decimal odds. A line (points) move or a new line is always returned. Small moves add up: once the total since the last returned price passes this, it is returned."
          },
          "resetMonitoringState": {
            "title": "Start monitoring again",
            "type": "boolean",
            "description": "On = forget what earlier runs remembered for this input and save a new starting point.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}