STAT-API

PGA leaderboards API

leaderboardsgolf.leaderboards
The full leaderboard of every professional golf tournament — each player's position, score relative to par, total strokes, made cut/missed cut status, and prize money.
GET/api/v1/pga/leaderboards
Requires one of: tournament_id or player_id — requests satisfying none of these return 400.
Parameters
tournament_idquerybigintoptional
Filter to a single tournament.
player_idquerybigintoptional
Filter to a single player.
limitqueryintegeroptionaldefault 50
Page size. Defaults to 50; max 5000.
from_idquerybigintoptional
Return rows with id strictly greater than this value; page using the previous response's `next_from_id`. Omit on the first page.
Restores the documented defaults (trial keys only accept the unchanged defaults).
Request
curl -sS --compressed \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  'https://api.stat-api.com/api/v1/pga/leaderboards?tournament_id=1'
Responses
200leaderboards rows matching the declared filter set, wrapped in { leaderboards, limit, next_from_id }. next_from_id is the last row's id on a full page — pass it back via ?from_id= to walk the full result; null marks the terminal page.application/jsonshow example ▸
400No declared filter set was satisfied — response body matches MissingRequiredFiltersError; pick one combo from the accepted-sets hint and resend.application/json
Response Schema(23 fields)show schema ▸
FieldTypeReferencesDescription
idkey
bigint—Primary Key
player_id
bigint—
e.g. 61
player_tournament_id
integer——
e.g. 54591
tournament_id
bigint—
e.g. 257
earnings
bigintnullable—Prize money earned in cents
e.g. — (all-null in sample)
fedex_pts
integernullable——
e.g. — (all-null in sample)
is_alternate
booleannullable——
e.g. — (all-null in sample)
is_withdrawn
booleannullable——
Values:falsetrue
made_cut
integernullable—1 if made cut, 0 if missed
e.g. 1
made_cut_did_not_finish
booleannullable——
e.g. — (all-null in sample)
rank
integernullable——
e.g. 2
sg_approach
decimalnullable——
e.g. 11.7050
sg_around_green
decimalnullable——
e.g. 4.4940
sg_off_tee
decimalnullable——
e.g. 0.6840
sg_putting
decimalnullable——
e.g. 7.1580
sg_tee_to_green
decimalnullable——
e.g. 16.4630
sg_total
decimalnullable——
e.g. -0.3120
tee_time
timestamptznullable——
e.g. — (all-null in sample)
total_score
integernullable—Score relative to par
e.g. -1
total_strokes
integernullable——
e.g. 143
total_through
integernullable—Current hole of player for current round
e.g. — (all-null in sample)
tournament_status
stringnullable—out, active, etc.
Values:COMPLETEWITHDRAWNDISQUALIFIED
win
integernullable—1 if won tournament
e.g. 0
GET/api/v1/pga/leaderboards/{id}
Parameters
idpathbigintrequired
Primary key (id) of the leaderboard row.
Restores the documented defaults (trial keys only accept the unchanged defaults).
Request
curl -sS --compressed \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  'https://api.stat-api.com/api/v1/pga/leaderboards/{pk_value}'
Responses
200Single leaderboard row.application/jsonshow example ▸
404Row not found.
Response Schema(23 fields)show schema ▸
FieldTypeReferencesDescription
idkey
bigint—Primary Key
player_id
bigint—
e.g. 61
player_tournament_id
integer——
e.g. 54591
tournament_id
bigint—
e.g. 257
earnings
bigintnullable—Prize money earned in cents
e.g. — (all-null in sample)
fedex_pts
integernullable——
e.g. — (all-null in sample)
is_alternate
booleannullable——
e.g. — (all-null in sample)
is_withdrawn
booleannullable——
Values:falsetrue
made_cut
integernullable—1 if made cut, 0 if missed
e.g. 1
made_cut_did_not_finish
booleannullable——
e.g. — (all-null in sample)
rank
integernullable——
e.g. 2
sg_approach
decimalnullable——
e.g. 11.7050
sg_around_green
decimalnullable——
e.g. 4.4940
sg_off_tee
decimalnullable——
e.g. 0.6840
sg_putting
decimalnullable——
e.g. 7.1580
sg_tee_to_green
decimalnullable——
e.g. 16.4630
sg_total
decimalnullable——
e.g. -0.3120
tee_time
timestamptznullable——
e.g. — (all-null in sample)
total_score
integernullable—Score relative to par
e.g. -1
total_strokes
integernullable——
e.g. 143
total_through
integernullable—Current hole of player for current round
e.g. — (all-null in sample)
tournament_status
stringnullable—out, active, etc.
Values:COMPLETEWITHDRAWNDISQUALIFIED
win
integernullable—1 if won tournament
e.g. 0