Skip to main content
Version: 0.2.0

Golf — PGA TOUR GraphQL API (orchestrator.pgatour.com; runtime only, public frontend key or $PGA_API_KEY) — Other

pgatour_schedule​

A tour's season schedule: one row per tournament (id, dates, course, purse, champion, points on offer), completed events first.

Endpoint URL: POST https://orchestrator.pgatour.com/graphql

Example request: curl -X POST 'https://orchestrator.pgatour.com/graphql' -H 'Content-Type: application/json' -d '{"operationName": "Schedule", "query": "query Schedule($tourCode: String!, $year: String) {\n schedule(tourCode: $tourCode, year: $year) {\n tour\n seasonYear\n completed { ...ScheduleMonthFields }\n upcoming { ...ScheduleMonthFields }\n }\n}\n\nfragment ScheduleMonthFields on ScheduleMonth {\n month\n year\n tournaments {\n id\n tournamentName\n date\n startDate\n sequenceNumber\n tournamentStatus\n courseName\n city\n state\n stateCode\n country\n countryCode\n purse\n champion\n championId\n championEarnings\n tourStandingHeading\n tourStandingValue\n }\n}\n", "variables": {"tourCode": "R", "year": "2026"}}'

API ParameterPythonInPatternRequiredNullableDescription
tourCodetour_codebodyYTour code (R PGA TOUR, S PGA TOUR Champions, H Korn Ferry Tour).
yearyearbodyYSeason year, e.g. 2026; omitted, the current season.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
seasonInt64Season year the schedule belongs to (e.g. 2026).
schedule_statusString"completed" for an event already played, "upcoming" for one still to come.
tournament_idStringPGA TOUR tournament id (tour code + season + event number, e.g. "R2026014"); the id the leaderboard, scorecard, tee-times and shot-details wrappers take.
tournament_nameStringTournament's full name, sponsor included (e.g. "Travelers Championship").
dateStringTournament dates as the site displays them (e.g. "Apr 9 - 12").
start_dateDatetimeTournament start (UTC).
sequence_numberInt64Event's order in the season.
tournament_statusStringTournament status (e.g. "COMPLETED", "IN_PROGRESS", "NOT_STARTED").
course_nameStringCourse hosting the event (e.g. "TPC River Highlands").
cityStringCity the host course is in (e.g. "Cromwell").
stateStringHost state or province.
state_codeStringHost state or province abbreviation.
countryStringCountry the host course is in, spelled out (e.g. "United States of America").
country_codeStringHost country code (e.g. "USA").
purseStringTotal purse as displayed (e.g. "$9,100,000").
championStringWinner's name; null before the event finishes.
champion_idStringWinner's PGA TOUR player id.
champion_earningsStringWinner's share of the purse as displayed.
standing_headingStringSeason points race the event counts toward (e.g. "FEDEXCUP").
standing_valueStringPoints on offer to the winner as displayed (e.g. "500 pts").

return_parsed=False — the operation's answer (dict), its compressed payload decoded; pgatour_past_champions adds the tournamentId it was asked for, which the answer does not repeat.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The API answered null for the request (an unknown tournament, player or stat id), or pgatour_past_results was asked for a season the tournament has no edition in.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. The API rejected the query variables, or a variable is not of its type (a year that is not a season).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. Any other GraphQL error, or a compressed payload that does not decode.

Example​

pgatour_schedule(tour_code='R', year=2026)

pgatour_leaderboard​

One tournament's leaderboard: position, total to par, strokes, holes completed, today's score, round scores and projected FedExCup rank per player.

Endpoint URL: POST https://orchestrator.pgatour.com/graphql

Example request: curl -X POST 'https://orchestrator.pgatour.com/graphql' -H 'Content-Type: application/json' -d '{"operationName": "LeaderboardCompressedV3", "query": "query LeaderboardCompressedV3($id: ID!) {\n leaderboardCompressedV3(id: $id) {\n id\n payload\n }\n}\n", "variables": {"id": "R2026014"}}'

API ParameterPythonInPatternRequiredNullableDescription
idtournament_idbodyYTournament id (tournament_id in pgatour_schedule), e.g. R2026014.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
tournament_idStringPGA TOUR tournament id.
tournament_statusStringTournament status (e.g. "COMPLETED", "IN_PROGRESS").
sort_orderInt64Leaderboard order (0 = leader).
player_idStringPGA TOUR player id.
first_nameStringPlayer's first name.
last_nameStringPlayer's last name.
display_nameStringPlayer's full name.
short_nameStringPlayer's short name (e.g. "R. McIlroy").
countryStringPlayer's country code (e.g. "NIR").
amateurBooleanTrue for an amateur.
positionStringPosition as displayed ("1", "T3", "CUT", "WD").
totalStringTotal score to par as displayed ("-12", "E", "+6").
to_parInt64Total score to par as an integer (E is 0); null before a score is posted.
total_strokesInt64Total strokes over the rounds played.
thruStringHoles completed in the current round as displayed ("F" when finished, "-" when not started).
todayStringScore to par in the current round as displayed.
current_roundInt64Round in play (or last played).
player_stateStringPlayer's state in the event (e.g. "COMPLETE", "ACTIVE", "CUT").
round_1Int64Strokes in round 1; null when not played.
round_2Int64Strokes in round 2; null when not played.
round_3Int64Strokes in round 3; null when not played (a missed cut, or not started).
round_4Int64Strokes in round 4; null when not played.
fedexcup_officialStringPlayer's official FedExCup rank going into the event, as displayed.
fedexcup_projectedStringPlayer's FedExCup rank projected from this leaderboard, as displayed.

return_parsed=False — the operation's answer (dict), its compressed payload decoded; pgatour_past_champions adds the tournamentId it was asked for, which the answer does not repeat.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The API answered null for the request (an unknown tournament, player or stat id), or pgatour_past_results was asked for a season the tournament has no edition in.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. The API rejected the query variables, or a variable is not of its type (a year that is not a season).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. Any other GraphQL error, or a compressed payload that does not decode.

Example​

pgatour_leaderboard(tournament_id='R2026014')

pgatour_scorecard​

One player's scorecard for a tournament: one row per hole per round (par, yardage, strokes, birdie / bogey status, running score to par).

Endpoint URL: POST https://orchestrator.pgatour.com/graphql

Example request: curl -X POST 'https://orchestrator.pgatour.com/graphql' -H 'Content-Type: application/json' -d '{"operationName": "ScorecardCompressedV3", "query": "query ScorecardCompressedV3($tournamentId: ID!, $playerId: ID!) {\n scorecardCompressedV3(tournamentId: $tournamentId, playerId: $playerId) {\n id\n payload\n }\n}\n", "variables": {"tournamentId": "R2026014", "playerId": "28237"}}'

API ParameterPythonInPatternRequiredNullableDescription
tournamentIdtournament_idbodyYTournament id, e.g. R2026014.
playerIdplayer_idbodyYPGA TOUR player id (player_id in pgatour_leaderboard), e.g. 28237.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
tournament_idStringPGA TOUR tournament id (the answer's own id carries the player id too; it is stripped).
player_idStringPGA TOUR player id.
round_numberInt64Tournament round the hole was played in (1-4).
course_idStringCourse id (an event played on more than one course carries one per round).
course_nameStringCourse the round was played on (e.g. "Augusta National Golf Club").
hole_numberInt64Hole number (1-18).
parInt64Par of the hole (3, 4 or 5).
yardageInt64Hole length in yards that round.
scoreInt64Strokes on the hole; null when the hole is not yet played.
score_statusStringResult on the hole (e.g. "BIRDIE", "PAR", "BOGEY", "EAGLE", "DOUBLE_BOGEY").
round_to_parStringRunning score to par for the round after this hole, as displayed.

return_parsed=False — the operation's answer (dict), its compressed payload decoded; pgatour_past_champions adds the tournamentId it was asked for, which the answer does not repeat.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The API answered null for the request (an unknown tournament, player or stat id), or pgatour_past_results was asked for a season the tournament has no edition in.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. The API rejected the query variables, or a variable is not of its type (a year that is not a season).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. Any other GraphQL error, or a compressed payload that does not decode.

Example​

pgatour_scorecard(player_id='28237', tournament_id='R2026014')

pgatour_tee_times​

A tournament's tee times: one row per player per group per round (tee time in UTC, starting tee, course).

Endpoint URL: POST https://orchestrator.pgatour.com/graphql

Example request: curl -X POST 'https://orchestrator.pgatour.com/graphql' -H 'Content-Type: application/json' -d '{"operationName": "TeeTimesCompressedV2", "query": "query TeeTimesCompressedV2($id: ID!) {\n teeTimesCompressedV2(id: $id) {\n id\n payload\n }\n}\n", "variables": {"id": "R2026014"}}'

API ParameterPythonInPatternRequiredNullableDescription
idtournament_idbodyYTournament id, e.g. R2026014.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
tournament_idStringPGA TOUR tournament id.
round_numberInt64Tournament round the tee times are for (1-4).
round_statusStringRound status (e.g. "COMPLETE", "IN_PROGRESS", "UPCOMING").
group_numberInt64Tee-time group number within the round.
tee_timeDatetimeGroup's tee time (UTC).
start_teeInt64Starting hole (1, or 10 for a two-tee start).
back_nineBooleanTrue when the group starts on the back nine.
course_idStringPGA TOUR course id of the course the group tees off on (e.g. "014").
course_nameStringCourse the group tees off on (e.g. "Augusta National Golf Club").
player_idStringPGA TOUR player id.
display_nameStringPlayer's full name.
countryStringPlayer's country code.
amateurBooleanTrue for an amateur.

return_parsed=False — the operation's answer (dict), its compressed payload decoded; pgatour_past_champions adds the tournamentId it was asked for, which the answer does not repeat.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The API answered null for the request (an unknown tournament, player or stat id), or pgatour_past_results was asked for a season the tournament has no edition in.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. The API rejected the query variables, or a variable is not of its type (a year that is not a season).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. Any other GraphQL error, or a compressed payload that does not decode.

Example​

pgatour_tee_times(tournament_id='R2026014')

pgatour_stat_catalog​

Every stat a tour publishes: category, sub-category, stat id and title. The stat ids are what pgatour_stat_details takes.

Endpoint URL: POST https://orchestrator.pgatour.com/graphql

Example request: curl -X POST 'https://orchestrator.pgatour.com/graphql' -H 'Content-Type: application/json' -d '{"operationName": "StatOverview", "query": "query StatOverview($tourCode: TourCode!, $year: Int) {\n statOverview(tourCode: $tourCode, year: $year) {\n tourCode\n year\n categories {\n category\n displayName\n subCategories {\n displayName\n stats { statId statTitle }\n }\n }\n }\n}\n", "variables": {"tourCode": "R", "year": 2026}}'

API ParameterPythonInPatternRequiredNullableDescription
tourCodetour_codebodyYTour code (R PGA TOUR, S PGA TOUR Champions, H Korn Ferry Tour).
yearyearbodyYSeason year; omitted, the current season.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
tour_codeStringTour the catalog lists stats for (R PGA TOUR, S PGA TOUR Champions, H Korn Ferry Tour).
yearInt64Season the catalog lists stats for (e.g. 2026).
categoryStringStat category key (e.g. "STROKES_GAINED", "SCORING").
category_nameStringStat category name (e.g. "Strokes Gained").
sub_categoryStringSub-category the stat is listed under.
stat_idStringPGA TOUR stat id (e.g. "02675" for SG Total); the id pgatour_stat_details takes.
stat_titleStringStat's display name (e.g. "Approaches from 50-125 yards").

return_parsed=False — the operation's answer (dict), its compressed payload decoded; pgatour_past_champions adds the tournamentId it was asked for, which the answer does not repeat.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The API answered null for the request (an unknown tournament, player or stat id), or pgatour_past_results was asked for a season the tournament has no edition in.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. The API rejected the query variables, or a variable is not of its type (a year that is not a season).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. Any other GraphQL error, or a compressed payload that does not decode.

Example​

pgatour_stat_catalog(tour_code='R', year=2026)

pgatour_stat_details​

One stat's season table, long form: one row per player per stat column (rank, column name, value as displayed).

Endpoint URL: POST https://orchestrator.pgatour.com/graphql

Example request: curl -X POST 'https://orchestrator.pgatour.com/graphql' -H 'Content-Type: application/json' -d '{"operationName": "StatDetails", "query": "query StatDetails($tourCode: TourCode!, $statId: String!, $year: Int) {\n statDetails(tourCode: $tourCode, statId: $statId, year: $year) {\n tourCode\n year\n statId\n statType\n statTitle\n statDescription\n tourAvg\n lastProcessed\n statHeaders\n rows {\n __typename\n ... on StatDetailsPlayer {\n playerId\n playerName\n country\n countryFlag\n rank\n rankDiff\n rankChangeTendency\n stats { statName statValue }\n }\n }\n }\n}\n", "variables": {"statId": "120", "tourCode": "R", "year": 2026}}'

API ParameterPythonInPatternRequiredNullableDescription
statIdstat_idbodyYStat id (stat_id in pgatour_stat_catalog), as a string (leading zeros matter), e.g. '120' (scoring average) or '02675' (SG Total).
tourCodetour_codebodyYTour code (R PGA TOUR, S PGA TOUR Champions, H Korn Ferry Tour).
yearyearbodyYSeason year; omitted, the current season.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
tour_codeStringTour the stat table is for (R PGA TOUR, S PGA TOUR Champions, H Korn Ferry Tour).
yearInt64Season the stat table covers (e.g. 2026).
stat_idStringPGA TOUR stat id.
stat_titleStringStat name (e.g. "Scoring Average").
stat_typeStringStat window (e.g. "YTD").
tour_averageStringTour average for the stat, as displayed.
player_idStringPGA TOUR player id.
player_nameStringPlayer's full name.
countryStringPlayer's country.
country_codeStringPlayer's country code.
rankInt64Player's rank in the stat.
rank_changeStringChange in rank since the last update, as displayed.
stat_nameStringThe stat table's column (e.g. "Avg", "Total Strokes", "Total Rounds").
stat_valueStringThat column's value as displayed (e.g. "68.619", "5,293").

return_parsed=False — the operation's answer (dict), its compressed payload decoded; pgatour_past_champions adds the tournamentId it was asked for, which the answer does not repeat.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The API answered null for the request (an unknown tournament, player or stat id), or pgatour_past_results was asked for a season the tournament has no edition in.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. The API rejected the query variables, or a variable is not of its type (a year that is not a season).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. Any other GraphQL error, or a compressed payload that does not decode.

Example​

pgatour_stat_details(stat_id='120', tour_code='R', year=2026)

pgatour_tour_cup​

A season-long points race (the FedExCup by default): one row per player with official and projected rank and points.

Endpoint URL: POST https://orchestrator.pgatour.com/graphql

Example request: curl -X POST 'https://orchestrator.pgatour.com/graphql' -H 'Content-Type: application/json' -d '{"operationName": "TourCupCombined", "query": "query TourCupCombined($tourCode: TourCode!, $id: String, $year: Int) {\n tourCupCombined(tourCode: $tourCode, id: $id, year: $year) {\n id\n title\n season\n description\n players {\n __typename\n ... on TourCupCombinedPlayer {\n id\n firstName\n lastName\n displayName\n shortName\n country\n countryFlag\n rankingData { projected official event movement movementAmount }\n pointData { projected official event movement movementAmount }\n }\n }\n }\n}\n", "variables": {"tourCode": "R", "id": "02671", "year": 2025}}'

API ParameterPythonInPatternRequiredNullableDescription
tourCodetour_codebodyYTour code (R PGA TOUR, S PGA TOUR Champions, H Korn Ferry Tour).
idcup_idbodyYPoints race id, as a string (leading zeros matter); 02671 (the default) is the FedExCup, 02698 the FedExCup Fall.
yearyearbodyYSeason year; omitted, the current season.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
cup_idStringPoints race id with season (e.g. "R-02671-2025" for the 2025 FedExCup).
titleStringPoints race name (e.g. "FedExCup Standings").
seasonInt64Season year (read from the race's title, e.g. "2025 Standings").
player_idStringPGA TOUR player id.
first_nameStringPlayer's first (given) name.
last_nameStringPlayer's last (family) name.
display_nameStringPlayer's full name as the site displays it (e.g. "Wyndham Clark").
countryStringCountry the player represents.
country_codeStringThree-letter code of the country the player represents (e.g. "IRL").
rank_officialStringOfficial rank as displayed ("-" for none).
rank_projectedStringRank projected from live results, as displayed.
rank_movementStringDirection of the projected rank change (e.g. "UP", "DOWN", "CONSTANT").
points_officialStringOfficial points as displayed.
points_projectedStringPoints projected from live results, as displayed.
points_eventStringPoints earned at the current event, as displayed.

return_parsed=False — the operation's answer (dict), its compressed payload decoded; pgatour_past_champions adds the tournamentId it was asked for, which the answer does not repeat.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The API answered null for the request (an unknown tournament, player or stat id), or pgatour_past_results was asked for a season the tournament has no edition in.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. The API rejected the query variables, or a variable is not of its type (a year that is not a season).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. Any other GraphQL error, or a compressed payload that does not decode.

Example​

pgatour_tour_cup(tour_code='R', year=2025)

pgatour_shot_details​

ShotLink shot tracking for one player's round: one row per stroke with description, distance, lie and start / end coordinates.

Endpoint URL: POST https://orchestrator.pgatour.com/graphql

Example request: curl -X POST 'https://orchestrator.pgatour.com/graphql' -H 'Content-Type: application/json' -d '{"operationName": "ShotDetailsV4Compressed", "query": "query ShotDetailsV4Compressed($tournamentId: ID!, $playerId: ID!, $round: Int!, $includeRadar: Boolean) {\n shotDetailsV4Compressed(tournamentId: $tournamentId, playerId: $playerId, round: $round, includeRadar: $includeRadar) {\n id\n payload\n }\n}\n", "variables": {"tournamentId": "R2026006", "playerId": "59095", "round": 4}}'

API ParameterPythonInPatternRequiredNullableDescription
tournamentIdtournament_idbodyYTournament id, e.g. R2026006.
playerIdplayer_idbodyYPGA TOUR player id, e.g. 59095.
roundroundbodyYRound number (1-4).

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
tournament_idStringPGA TOUR tournament id.
player_idStringPGA TOUR player id.
round_numberInt64Tournament round the shots were played in (1-4).
hole_numberInt64Hole the shots were played on (1-18).
parInt64Par of the hole (3, 4 or 5).
yardageInt64Hole length in yards.
hole_scoreInt64Strokes on the hole.
hole_statusStringResult on the hole (e.g. "BIRDIE", "PAR").
stroke_numberInt64Stroke number on the hole.
stroke_typeStringStroke kind (e.g. "STROKE", "PENALTY", "DROP").
play_by_playStringShotLink description of the shot (e.g. "356 yds to left fairway, 134 yds to hole").
distanceStringShot distance as displayed (e.g. "356 yds").
distance_remainingStringDistance to the hole after the shot, as displayed.
from_location_codeStringShotLink lie code the shot was played from (e.g. "OTB" tee box).
from_locationStringLie the shot was played from (e.g. "Tee Box").
to_location_codeStringShotLink lie code the shot finished in (e.g. "ELF" left fairway).
to_locationStringLie the shot finished in (e.g. "Left Fairway").
final_strokeBooleanTrue for the stroke that holed out.
from_xFloat64ShotLink tourcast x coordinate of the shot's start.
from_yFloat64ShotLink tourcast y coordinate of the shot's start.
from_zFloat64ShotLink tourcast z (elevation) coordinate of the shot's start.
to_xFloat64ShotLink tourcast x coordinate where the shot finished.
to_yFloat64ShotLink tourcast y coordinate where the shot finished.
to_zFloat64ShotLink tourcast z (elevation) coordinate where the shot finished.

return_parsed=False — the operation's answer (dict), its compressed payload decoded; pgatour_past_champions adds the tournamentId it was asked for, which the answer does not repeat.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The API answered null for the request (an unknown tournament, player or stat id), or pgatour_past_results was asked for a season the tournament has no edition in.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. The API rejected the query variables, or a variable is not of its type (a year that is not a season).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. Any other GraphQL error, or a compressed payload that does not decode.

Example​

pgatour_shot_details(player_id='59095', round=4, tournament_id='R2026006')

pgatour_schedule_years​

The seasons a tour has a published schedule for: one row per season, the current one flagged. The seasons are what pgatour_schedule(year=) takes.

Endpoint URL: POST https://orchestrator.pgatour.com/graphql

Example request: curl -X POST 'https://orchestrator.pgatour.com/graphql' -H 'Content-Type: application/json' -d '{"operationName": "ScheduleYears", "query": "query ScheduleYears($tourCode: TourCode!) {\n scheduleYears(tourCode: $tourCode) {\n years {\n default\n displayValue\n queryValue\n }\n }\n}\n", "variables": {"tourCode": "R"}}'

API ParameterPythonInPatternRequiredNullableDescription
tourCodetour_codebodyYTour code (R PGA TOUR, S PGA TOUR Champions, H Korn Ferry Tour).

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
seasonInt64Season year with a published schedule, as pgatour_schedule(year=) takes it (e.g. 2023 for the 2022-2023 season).
display_seasonStringSeason as the site labels it (e.g. "2026", "2022-2023").
is_defaultBooleanTrue for the season the site shows by default (the current one).

return_parsed=False — the operation's answer (dict), its compressed payload decoded; pgatour_past_champions adds the tournamentId it was asked for, which the answer does not repeat.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The API answered null for the request (an unknown tournament, player or stat id), or pgatour_past_results was asked for a season the tournament has no edition in.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. The API rejected the query variables, or a variable is not of its type (a year that is not a season).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. Any other GraphQL error, or a compressed payload that does not decode.

Example​

pgatour_schedule_years(tour_code='R')

pgatour_tournaments​

Tournament headers: one row per tournament id (name, dates, status, current round, format, city, time zone).

Endpoint URL: POST https://orchestrator.pgatour.com/graphql

Example request: curl -X POST 'https://orchestrator.pgatour.com/graphql' -H 'Content-Type: application/json' -d '{"operationName": "Tournaments", "query": "query Tournaments($ids: [ID!]) {\n tournaments(ids: $ids) {\n id\n tournamentName\n seasonYear\n displayDate\n tournamentStatus\n roundStatus\n roundDisplay\n currentRound\n formatType\n scoredLevel\n city\n state\n country\n timezone\n tournamentLocation\n }\n}\n", "variables": {"ids": ["R2026014"]}}'

API ParameterPythonInPatternRequiredNullableDescription
idstournament_idsbodyYTournament id, or a list of them (tournament_id in pgatour_schedule), e.g. R2026014.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
tournament_idStringPGA TOUR tournament id (tour code + season + event number, e.g. "R2026014").
tournament_nameStringTournament name (sponsor title as listed).
seasonInt64Season year the tournament belongs to.
display_dateStringTournament dates as the site displays them (e.g. "Apr 9 - 12, 2026").
tournament_statusStringTournament status (e.g. "COMPLETED", "IN_PROGRESS", "NOT_STARTED").
round_statusStringStatus of the current round (e.g. "OFFICIAL", "IN_PROGRESS").
round_displayStringCurrent round as displayed (e.g. "R4").
current_roundInt64Current (or last) round number.
format_typeStringScoring format (e.g. "STROKE_PLAY").
scored_levelStringDepth of scoring the site publishes (e.g. "BASIC", "TOURCAST" for ShotLink events).
cityStringCity of the host course.
stateStringHost state or province.
countryStringCountry of the host course.
timezoneStringHost time zone (IANA name, e.g. "America/New_York").
locationStringLocation as displayed.

return_parsed=False — the operation's answer (dict), its compressed payload decoded; pgatour_past_champions adds the tournamentId it was asked for, which the answer does not repeat.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The API answered null for the request (an unknown tournament, player or stat id), or pgatour_past_results was asked for a season the tournament has no edition in.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. The API rejected the query variables, or a variable is not of its type (a year that is not a season).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. Any other GraphQL error, or a compressed payload that does not decode.

Example​

pgatour_tournaments(tournament_ids='R2026014')

pgatour_past_champions​

Every past champion of a tournament: one row per edition (season, winner, total and score to par).

Endpoint URL: POST https://orchestrator.pgatour.com/graphql

Example request: curl -X POST 'https://orchestrator.pgatour.com/graphql' -H 'Content-Type: application/json' -d '{"operationName": "TournamentOverview", "query": "query TournamentOverview($tournamentId: ID!) {\n tournamentOverview(tournamentId: $tournamentId) {\n formatType\n pastChampions {\n year\n displaySeason\n playerId\n displayName\n countryCode\n total\n score\n }\n }\n}\n", "variables": {"tournamentId": "R2026014"}}'

API ParameterPythonInPatternRequiredNullableDescription
tournamentIdtournament_idbodyYTournament id, e.g. R2026014.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
tournament_idStringPGA TOUR tournament id the champions were asked for (the answer does not repeat it).
format_typeStringTournament scoring format (e.g. "STROKE_PLAY").
seasonInt64Season of the edition the champion won.
display_seasonStringSeason as displayed.
player_idStringChampion's PGA TOUR player id.
display_nameStringChampion's full name.
country_codeStringChampion's country code (e.g. "NIR").
totalInt64Champion's total strokes.
to_parStringChampion's score to par as displayed (e.g. "-12").

return_parsed=False — the operation's answer (dict), its compressed payload decoded; pgatour_past_champions adds the tournamentId it was asked for, which the answer does not repeat.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The API answered null for the request (an unknown tournament, player or stat id), or pgatour_past_results was asked for a season the tournament has no edition in.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. The API rejected the query variables, or a variable is not of its type (a year that is not a season).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. Any other GraphQL error, or a compressed payload that does not decode.

Example​

pgatour_past_champions(tournament_id='R2026014')

pgatour_hole_by_hole​

Hole-by-hole scores of one round for the whole field: one row per player per hole (par, yardage, strokes, birdie / bogey status).

Endpoint URL: POST https://orchestrator.pgatour.com/graphql

Example request: curl -X POST 'https://orchestrator.pgatour.com/graphql' -H 'Content-Type: application/json' -d '{"operationName": "LeaderboardHoleByHole", "query": "query LeaderboardHoleByHole($tournamentId: ID!, $round: Int) {\n leaderboardHoleByHole(tournamentId: $tournamentId, round: $round) {\n tournamentId\n currentRound\n playerData {\n playerId\n courseId\n courseCode\n out\n in\n total\n totalToPar\n scores {\n holeNumber\n sequenceNumber\n par\n yardage\n score\n roundScore\n status\n }\n }\n }\n}\n", "variables": {"tournamentId": "R2026014", "round": 4}}'

API ParameterPythonInPatternRequiredNullableDescription
tournamentIdtournament_idbodyYTournament id, e.g. R2026014.
roundroundbodyYRound number (1-4); omitted, the current round.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
tournament_idStringPGA TOUR tournament id.
player_idStringPGA TOUR player id.
course_idStringCourse id the player played the round on.
course_codeStringCourse code (e.g. "AN").
hole_numberInt64Hole number (1-18).
sequence_numberInt64Order the player played the hole in (0-based; differs from hole_number on a two-tee start).
parInt64Par of the hole.
yardageInt64Hole yardage for the round.
scoreInt64Strokes on the hole; null on a hole not yet played.
score_statusStringScore relative to par ("EAGLE", "BIRDIE", "PAR", "BOGEY", "DOUBLE_BOGEY", ...).
round_to_parStringPlayer's running score to par for the round after the hole, as displayed (e.g. "-1", "E").
front_nineInt64Player's strokes on holes 1-9 for the round.
back_nineInt64Player's strokes on holes 10-18 for the round.
round_totalInt64Player's strokes for the round.
round_total_to_parStringPlayer's round score to par as displayed.

return_parsed=False — the operation's answer (dict), its compressed payload decoded; pgatour_past_champions adds the tournamentId it was asked for, which the answer does not repeat.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The API answered null for the request (an unknown tournament, player or stat id), or pgatour_past_results was asked for a season the tournament has no edition in.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. The API rejected the query variables, or a variable is not of its type (a year that is not a season).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. Any other GraphQL error, or a compressed payload that does not decode.

Example​

pgatour_hole_by_hole(round=4, tournament_id='R2026014')

pgatour_leaderboard_stats​

A tournament's leaderboard stat table, long form: one row per player per stat (win / top 10 / make-cut chances by default).

Endpoint URL: POST https://orchestrator.pgatour.com/graphql

Example request: curl -X POST 'https://orchestrator.pgatour.com/graphql' -H 'Content-Type: application/json' -d '{"operationName": "LeaderboardStats", "query": "query LeaderboardStats($id: ID!, $statsType: LeaderboardStatsType) {\n leaderboardStats(id: $id, statsType: $statsType) {\n id\n type\n statIds\n titles\n players {\n playerId\n stats {\n statId\n value\n rank\n sortValue\n color\n }\n }\n }\n}\n", "variables": {"id": "R2026014", "statsType": "PROBABILITY"}}'

API ParameterPythonInPatternRequiredNullableDescription
idtournament_idbodyYTournament id, e.g. R2026014.
statsTypestats_typebodyYPROBABILITY (win, top 10 and make-cut chances), STROKES_GAINED or ODDS. An event without that table answers no rows.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
tournament_idStringPGA TOUR tournament id.
stats_typeStringStat table (PROBABILITY, STROKES_GAINED or ODDS).
player_idStringPGA TOUR player id.
stat_idStringStat column id (e.g. "win", "top10", "makeCut").
stat_titleStringStat column heading the site shows (e.g. "Win %").
stat_valueStringStat value as displayed (e.g. "12.3%").
rankStringPlayer's rank on the stat as displayed ("1", "T5").
sort_valueFloat64Stat value as a number (a probability is a fraction, 0-1).

return_parsed=False — the operation's answer (dict), its compressed payload decoded; pgatour_past_champions adds the tournamentId it was asked for, which the answer does not repeat.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The API answered null for the request (an unknown tournament, player or stat id), or pgatour_past_results was asked for a season the tournament has no edition in.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. The API rejected the query variables, or a variable is not of its type (a year that is not a season).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. Any other GraphQL error, or a compressed payload that does not decode.

Example​

pgatour_leaderboard_stats(stats_type='PROBABILITY', tournament_id='R2026014')

pgatour_field​

A tournament's field: one row per entered player, then the alternates (status, world ranking, how they qualified).

Endpoint URL: POST https://orchestrator.pgatour.com/graphql

Example request: curl -X POST 'https://orchestrator.pgatour.com/graphql' -H 'Content-Type: application/json' -d '{"operationName": "Field", "query": "query Field($id: ID!, $includeWithdrawn: Boolean) {\n field(id: $id, includeWithdrawn: $includeWithdrawn) {\n id\n players { ...FieldPlayer }\n alternates { ...FieldPlayer }\n }\n}\n\nfragment FieldPlayer on PlayerField {\n id\n firstName\n lastName\n displayName\n shortName\n country\n countryFlag\n amateur\n alternate\n withdrawn\n status\n owgr\n qualifier\n rankingPoints\n}\n", "variables": {"id": "R2026014", "includeWithdrawn": true}}'

API ParameterPythonInPatternRequiredNullableDescription
idtournament_idbodyYTournament id, e.g. R2026014.
includeWithdrawninclude_withdrawnbodyYTrue to keep players who withdrew.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
tournament_idStringPGA TOUR tournament id.
player_idStringPGA TOUR player id.
first_nameStringPlayer's first name.
last_nameStringPlayer's last name.
display_nameStringName as the field list shows it (e.g. "McIlroy, Rory").
short_nameStringShort name (e.g. "R. McIlroy").
countryStringCountry the player represents.
country_codeStringCountry code (e.g. "NIR").
amateurBooleanTrue for an amateur.
alternateBooleanTrue for an alternate (not yet in the field).
withdrawnBooleanTrue for a player who withdrew.
statusStringField status (e.g. "IN").
owgrStringOfficial World Golf Ranking position as displayed.
qualifierStringExemption category the player got in under.
ranking_pointsStringRanking points as displayed.

return_parsed=False — the operation's answer (dict), its compressed payload decoded; pgatour_past_champions adds the tournamentId it was asked for, which the answer does not repeat.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The API answered null for the request (an unknown tournament, player or stat id), or pgatour_past_results was asked for a season the tournament has no edition in.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. The API rejected the query variables, or a variable is not of its type (a year that is not a season).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. Any other GraphQL error, or a compressed payload that does not decode.

Example​

pgatour_field(tournament_id='R2026014')

pgatour_past_results​

One edition's final leaderboard: one row per player (position, total, score to par, round scores).

Endpoint URL: POST https://orchestrator.pgatour.com/graphql

Example request: curl -X POST 'https://orchestrator.pgatour.com/graphql' -H 'Content-Type: application/json' -d '{"operationName": "TournamentPastResults", "query": "query TournamentPastResults($id: ID!, $year: Int) {\n tournamentPastResults(id: $id, year: $year) {\n id\n players {\n position\n total\n parRelativeScore\n player {\n id\n firstName\n lastName\n displayName\n shortName\n country\n countryFlag\n amateur\n }\n rounds {\n score\n parRelativeScore\n }\n }\n }\n}\n", "variables": {"id": "R2026014", "year": 20250}}'

API ParameterPythonInPatternRequiredNullableDescription
idtournament_idbodyYTournament id of any edition, e.g. R2026014.
yearyearbodyYEdition season, e.g. 2025 (sent as the API's five-digit 20250; a five-digit value is sent as given). Omitted, the edition in tournament_id.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
tournament_idStringTournament id of the edition the API answered with (e.g. "R2025014" for the 2025 Masters).
seasonInt64Season of that edition (read from tournament_id).
positionStringFinishing position as displayed ("1", "T5", "CUT", "WD").
player_idStringPGA TOUR player id.
first_nameStringFirst name (the API can send it empty).
last_nameStringLast name (the API can send it empty).
display_nameStringPlayer's full name.
short_nameStringShort name (e.g. "R. McIlroy").
countryStringCountry the player represents.
country_codeStringCountry code (e.g. "NIR").
amateurBooleanTrue for an amateur.
totalInt64Total strokes over the event.
to_parStringScore to par as displayed (e.g. "-11").
round_1Int64Strokes in round 1.
round_2Int64Strokes in round 2.
round_3Int64Strokes in round 3; null when the player missed the cut.
round_4Int64Strokes in round 4; null when the player missed the cut.

return_parsed=False — the operation's answer (dict), its compressed payload decoded; pgatour_past_champions adds the tournamentId it was asked for, which the answer does not repeat.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The API answered null for the request (an unknown tournament, player or stat id), or pgatour_past_results was asked for a season the tournament has no edition in.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. The API rejected the query variables, or a variable is not of its type (a year that is not a season).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. Any other GraphQL error, or a compressed payload that does not decode.

Example​

pgatour_past_results(tournament_id='R2026014', year=2025)

pgatour_course_stats​

Hole difficulty for every course of a tournament: one row per hole per round (scoring average, rank, eagles to double bogeys).

Endpoint URL: POST https://orchestrator.pgatour.com/graphql

Example request: curl -X POST 'https://orchestrator.pgatour.com/graphql' -H 'Content-Type: application/json' -d '{"operationName": "CourseStats", "query": "query CourseStats($tournamentId: ID!) {\n courseStats(tournamentId: $tournamentId) {\n tournamentId\n courses {\n courseId\n courseName\n courseCode\n par\n yardage\n hostCourse\n roundHoleStats {\n roundHeader\n roundNum\n holeStats {\n __typename\n ... on CourseHoleStats {\n courseHoleNum\n parValue\n yards\n scoringAverage\n scoringAverageDiff\n rank\n eagles\n birdies\n pars\n bogeys\n doubleBogey\n }\n }\n }\n }\n }\n}\n", "variables": {"tournamentId": "R2026014"}}'

API ParameterPythonInPatternRequiredNullableDescription
tournamentIdtournament_idbodyYTournament id, e.g. R2026014.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
tournament_idStringPGA TOUR tournament id.
course_idStringCourse id (the course_id pgatour_hole_details takes; leading zeros matter, e.g. "014").
course_nameStringCourse name as listed.
course_codeStringCourse code (e.g. "AN").
course_parInt64Par of the whole course.
course_yardageInt64Course yardage.
host_courseBooleanTrue for the host course of a multi-course event.
round_numberInt64Round number; null on the all-rounds rows.
round_headerStringRound label ("All Rounds", "Round 1", ...).
hole_numberInt64Hole number (1-18).
parInt64Par of the hole.
yardsInt64Hole yardage for the tournament.
scoring_averageFloat64Field's scoring average on the hole.
scoring_average_diffFloat64Scoring average minus par (positive plays over par).
difficulty_rankInt64Hole's difficulty rank on the course (1 = hardest).
eaglesInt64Eagles (or better) made on the hole.
birdiesInt64Birdies made on the hole.
parsInt64Pars made on the hole.
bogeysInt64Bogeys made on the hole.
double_bogeysInt64Double bogeys (or worse) made on the hole.

return_parsed=False — the operation's answer (dict), its compressed payload decoded; pgatour_past_champions adds the tournamentId it was asked for, which the answer does not repeat.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The API answered null for the request (an unknown tournament, player or stat id), or pgatour_past_results was asked for a season the tournament has no edition in.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. The API rejected the query variables, or a variable is not of its type (a year that is not a season).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. Any other GraphQL error, or a compressed payload that does not decode.

Example​

pgatour_course_stats(tournament_id='R2026014')

pgatour_hole_details​

One hole of one course over a tournament: one row (par, yardage, difficulty rank, counts and shares of eagles to double bogeys).

Endpoint URL: POST https://orchestrator.pgatour.com/graphql

Example request: curl -X POST 'https://orchestrator.pgatour.com/graphql' -H 'Content-Type: application/json' -d '{"operationName": "HoleDetails", "query": "query HoleDetails($tournamentId: ID!, $courseId: ID!, $hole: Int!) {\n holeDetails(tournamentId: $tournamentId, courseId: $courseId, hole: $hole) {\n tournamentId\n courseId\n holeNum\n holeInfo {\n par\n yards\n rank\n rounds\n scoringAverageDiff\n }\n statsSummary {\n scoringAverage\n eagles\n eaglesPercent\n birdies\n birdiesPercent\n pars\n parsPercent\n bogeys\n bogeysPercent\n doubleBogeys\n doubleBogeysPercent\n }\n }\n}\n", "variables": {"tournamentId": "R2026014", "courseId": "014", "hole": 12}}'

API ParameterPythonInPatternRequiredNullableDescription
tournamentIdtournament_idbodyYTournament id, e.g. R2026014.
courseIdcourse_idbodyYCourse id as a string (course_id in pgatour_course_stats; leading zeros matter), e.g. '014'.
holeholebodyYHole number (1-18).

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
tournament_idStringPGA TOUR tournament id.
course_idStringCourse id (leading zeros matter, e.g. "014").
hole_numberInt64Hole number (1-18).
parInt64Par of the hole.
yardsInt64Hole yardage for the tournament.
difficulty_rankInt64Hole's difficulty rank on the course (1 = hardest).
rounds_playedInt64Rounds played on the hole over the tournament.
scoring_average_diffFloat64Scoring average minus par (positive plays over par).
eaglesInt64Eagles (or better) made on the hole.
eagles_pctStringShare of rounds with an eagle, as displayed (e.g. "1%").
birdiesInt64Birdies made on the hole.
birdies_pctStringShare of rounds with a birdie, as displayed.
parsInt64Pars made on the hole.
pars_pctStringShare of rounds with a par, as displayed.
bogeysInt64Bogeys made on the hole.
bogeys_pctStringShare of rounds with a bogey, as displayed.
double_bogeysInt64Double bogeys (or worse) made on the hole.
double_bogeys_pctStringShare of rounds with a double bogey or worse, as displayed.

return_parsed=False — the operation's answer (dict), its compressed payload decoded; pgatour_past_champions adds the tournamentId it was asked for, which the answer does not repeat.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The API answered null for the request (an unknown tournament, player or stat id), or pgatour_past_results was asked for a season the tournament has no edition in.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. The API rejected the query variables, or a variable is not of its type (a year that is not a season).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. Any other GraphQL error, or a compressed payload that does not decode.

Example​

pgatour_hole_details(course_id='014', hole=12, tournament_id='R2026014')

pgatour_scorecard_stats​

One player's stat lines for a tournament: one row per stat per round (performance, scoring and strokes gained, with the season-to-date value).

Endpoint URL: POST https://orchestrator.pgatour.com/graphql

Example request: curl -X POST 'https://orchestrator.pgatour.com/graphql' -H 'Content-Type: application/json' -d '{"operationName": "ScorecardStatsV3Compressed", "query": "query ScorecardStatsV3Compressed($id: ID!, $playerId: ID!) {\n scorecardStatsV3Compressed(id: $id, playerId: $playerId) {\n id\n payload\n }\n}\n", "variables": {"id": "R2026014", "playerId": "28237"}}'

API ParameterPythonInPatternRequiredNullableDescription
idtournament_idbodyYTournament id, e.g. R2026014.
playerIdplayer_idbodyYPGA TOUR player id, e.g. 28237.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
tournament_idStringPGA TOUR tournament id.
roundStringRound number as a string ("1" .. "4"; "-1" is the whole tournament).
round_nameStringRound label ("Round 1", ..., "All").
round_statusStringRound status (e.g. "OFFICIAL").
stat_groupStringStat group ("performance", "scoring" or "strokes_gained").
stat_idStringPGA TOUR stat id of the line, where it has one.
stat_nameStringStat label (e.g. "Birdies", "SG: Total").
stat_valueStringPlayer's value for the round as displayed.
rankStringPlayer's rank in the field on the stat for the round, as displayed ("1", "T7").
year_to_dateStringPlayer's season-to-date value of the stat as displayed ("-" when none).

return_parsed=False — the operation's answer (dict), its compressed payload decoded; pgatour_past_champions adds the tournamentId it was asked for, which the answer does not repeat.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. The API answered null for the request (an unknown tournament, player or stat id), or pgatour_past_results was asked for a season the tournament has no edition in.
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help. The API rejected the query variables, or a variable is not of its type (a year that is not a season).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. Any other GraphQL error, or a compressed payload that does not decode.

Example​

pgatour_scorecard_stats(player_id='28237', tournament_id='R2026014')