{
  "openapi": "3.0.1",
  "info": {
    "title": "PGA Tour Scraper: Leaderboards & Schedules",
    "description": "Scrape PGA Tour golf data: season schedules with courses and cities, plus full tournament leaderboards with position, country, total to par, thru and per-round scores. Filter by season or tournament. Export CSV, Excel, JSON or XML. No login or API key. 50 events in 2025.",
    "version": "0.2",
    "x-build-id": "UzpAsDFRDR94xAWxV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/recordsdata~pgatour-golf-stats-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-recordsdata-pgatour-golf-stats-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/recordsdata~pgatour-golf-stats-scraper/runs": {
      "post": {
        "operationId": "runs-sync-recordsdata-pgatour-golf-stats-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/recordsdata~pgatour-golf-stats-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-recordsdata-pgatour-golf-stats-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",
        "required": [
          "years"
        ],
        "properties": {
          "mode": {
            "title": "What do you want to collect?",
            "enum": [
              "tournaments",
              "playerStats"
            ],
            "type": "string",
            "description": "Tournaments gives season schedules and leaderboards. Player stats gives ranked statistics (driving distance, scoring average, strokes gained).",
            "default": "tournaments"
          },
          "tour": {
            "title": "Tour",
            "enum": [
              "R",
              "S",
              "H",
              "L"
            ],
            "type": "string",
            "description": "PGA Tour, Champions or Korn Ferry. LPGA works in tournaments mode only.",
            "default": "R"
          },
          "years": {
            "title": "Seasons (4-digit years)",
            "type": "array",
            "description": "One year per entry, for example 2025 and 2024. Tournaments mode returns each season schedule and leaderboards; player stats mode returns its rankings.",
            "default": [
              "2025"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum rows (schedule, leaderboard and player stat rows together). Free plan: 10 rows; paid: up to 1,000,000.",
            "default": 10
          },
          "tournamentFilter": {
            "title": "Tournament name contains",
            "type": "string",
            "description": "Case-insensitive text, for example Masters or Open.",
            "default": ""
          },
          "tournamentIds": {
            "title": "Tournament IDs",
            "type": "array",
            "description": "Exact IDs such as R2025016 (The Sentry 2025) from the schedule rows. LPGA uses the ESPN event id, for example 401734766.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "status": {
            "title": "Tournament status",
            "enum": [
              "any",
              "completed",
              "inProgress",
              "upcoming"
            ],
            "type": "string",
            "description": "Completed skips live and future events; or pick In progress / Upcoming.",
            "default": "any"
          },
          "includeSchedule": {
            "title": "Schedule rows",
            "type": "boolean",
            "description": "One row per tournament: dates, status, course, city, purse, champion. Billed as the Tournament event.",
            "default": true
          },
          "includeLeaderboards": {
            "title": "Leaderboards",
            "type": "boolean",
            "description": "One row per player per tournament: position, total to par, strokes and per-round scores. Billed as the Leaderboard row event.",
            "default": true
          },
          "includeEarnings": {
            "title": "Add FedExCup points and official money",
            "type": "boolean",
            "description": "Adds points and money to finished tournament leaderboard rows. Costs one extra request per finished tournament, no extra charge.",
            "default": true
          },
          "maxTournaments": {
            "title": "Leaderboards for how many tournaments?",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Maximum tournaments per run whose leaderboard is fetched, from 1 to 60. Example: 5.",
            "default": 5
          },
          "statCategory": {
            "title": "Stat category",
            "enum": [
              "none",
              "STROKES_GAINED",
              "OFF_TEE",
              "APPROACH_GREEN",
              "AROUND_GREEN",
              "PUTTING",
              "SCORING",
              "STREAKS",
              "MONEY_FINISHES",
              "POINTS_RANKINGS"
            ],
            "type": "string",
            "description": "Reads every statistic of a category, for example Putting (at most 60 per run). Combine with Stat IDs to add single stats.",
            "default": "none"
          },
          "statIds": {
            "title": "Stat IDs",
            "type": "array",
            "description": "For example 101 (Driving Distance), 120 (Scoring Average), 02675 (SG: Total). Empty with no category reads SG: Total.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "onlyNew": {
            "title": "Only new or changed rows",
            "type": "boolean",
            "description": "Skips finished tournaments delivered before; rows whose values moved come back marked changed with a changeType column.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name (optional)",
            "type": "string",
            "description": "Label for this monitor, for example season-watch. Empty uses the search itself as the memory key.",
            "default": ""
          },
          "resetSeen": {
            "title": "Forget what was seen",
            "type": "boolean",
            "description": "Clears the memory before the run, so every row counts as new again.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}