{
  "openapi": "3.0.1",
  "info": {
    "title": "PGA TOUR Scraper - Results, Scorecards, Odds & Stats",
    "description": "PGA TOUR, Champions, Korn Ferry and Americas tournament results back to the 1950s, hole-by-hole scorecards, FanDuel odds history including in-play, tee times, Strokes Gained and 500+ player stats, and player bios, from pgatour.com's own data.",
    "version": "0.1",
    "x-build-id": "aSfrmiwbUACp6pWqQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/artsiom_k~pgatour-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-artsiom_k-pgatour-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/artsiom_k~pgatour-scraper/runs": {
      "post": {
        "operationId": "runs-sync-artsiom_k-pgatour-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/artsiom_k~pgatour-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-artsiom_k-pgatour-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": {
          "entityType": {
            "title": "What to scrape",
            "enum": [
              "results",
              "scorecards",
              "odds",
              "teeTimes",
              "stats",
              "players"
            ],
            "type": "string",
            "description": "\"results\": one row per player per tournament. \"scorecards\": one row per player per round with every hole. \"odds\": FanDuel to-win odds per player before each round and at the finish (or hourly), 2024 season on; with no tournament or season, the current event's odds. \"teeTimes\": one row per player per round. \"stats\": one row per player per stat. \"players\": the tour's player directory.",
            "default": "results"
          },
          "tours": {
            "title": "Tours",
            "type": "array",
            "description": "Which tours. Odds exist almost only for the PGA TOUR.",
            "items": {
              "type": "string",
              "enum": [
                "R",
                "S",
                "H",
                "Y"
              ],
              "enumTitles": [
                "PGA TOUR",
                "PGA TOUR Champions",
                "Korn Ferry Tour",
                "PGA TOUR Americas"
              ]
            },
            "default": [
              "R"
            ]
          },
          "seasonFrom": {
            "title": "From season",
            "minimum": 1950,
            "maximum": 2100,
            "type": "integer",
            "description": "First season (year). Leave both seasons empty for the current season. Results reach back to each event's first edition (the Masters to 1953); full schedules start in 2012, scorecards and tee times around 2013-2015, odds in 2024."
          },
          "seasonTo": {
            "title": "To season",
            "minimum": 1950,
            "maximum": 2100,
            "type": "integer",
            "description": "Last season (year). Defaults to the current one when only From season is set."
          },
          "tournaments": {
            "title": "Tournaments",
            "type": "array",
            "description": "Limit to these tournaments: a name or part of one (Masters, U.S. Open, Players), a pgatour.com tournament id (R2025014) or an event number (014). Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "oddsSnapshots": {
            "title": "Odds: snapshots",
            "enum": [
              "rounds",
              "hourly"
            ],
            "type": "string",
            "description": "odds only, finished or running events: \"rounds\" takes the odds just before each round's first tee time and after the final round. \"hourly\" takes them every oddsIntervalHours from 24 hours before round 1 to the end (in-play movement).",
            "default": "rounds"
          },
          "oddsIntervalHours": {
            "title": "Odds: hours between snapshots",
            "minimum": 0.25,
            "maximum": 24,
            "type": "number",
            "description": "odds with hourly snapshots only.",
            "default": 1
          },
          "statCategories": {
            "title": "Stats: categories",
            "type": "array",
            "description": "stats only: categories to pull. Empty (and no stat ids) = Strokes Gained.",
            "items": {
              "type": "string",
              "enum": [
                "STROKES_GAINED",
                "OFF_TEE",
                "APPROACH_GREEN",
                "AROUND_GREEN",
                "PUTTING",
                "SCORING",
                "STREAKS",
                "MONEY_FINISHES",
                "POINTS_RANKINGS"
              ],
              "enumTitles": [
                "Strokes Gained (6)",
                "Off the Tee (~60)",
                "Approach the Green (~100)",
                "Around the Green (~35)",
                "Putting (~100)",
                "Scoring (~200)",
                "Streaks (~25)",
                "Money/Finishes (~15)",
                "Points/Rankings (~30)"
              ]
            }
          },
          "statIds": {
            "title": "Stats: stat ids",
            "type": "array",
            "description": "stats only: exact pgatour.com stat ids instead of categories, e.g. 02675 (SG: Total), 101 (driving distance), 120 (scoring average). The id is the number in a stat page's URL.",
            "items": {
              "type": "string"
            }
          },
          "playerDetails": {
            "title": "Players: full bios",
            "type": "boolean",
            "description": "players only: add birth date, birthplace, residence, height and weight (one extra request per 50 players).",
            "default": true
          },
          "activeOnly": {
            "title": "Players: active only",
            "type": "boolean",
            "description": "players only: skip players the directory marks inactive.",
            "default": true
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many rows. Defaults to 50 for a quick preview; clear it (null) for everything that matches.",
            "default": 50
          },
          "concurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Requests in parallel (scorecards and stats).",
            "default": 8
          },
          "impersonate": {
            "title": "TLS impersonation target",
            "type": "string",
            "description": "curl_cffi browser fingerprint. Defaults to \"chrome\"; change only if requests start failing."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Not needed: pgatour.com's API answered every request from Apify without a proxy in testing.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}