STAT-API

PGA player_rounds API

player_roundsgolf.player_rounds
Each player's scoring line for each round of every professional golf tournament — total strokes, score relative to par, eagles, birdies, bogeys, and double-bogeys. (Ball-striking detail — fairways, greens in regulation, putts — is not carried here.)
GET/api/v1/pga/player_rounds
Requires one of: player_id or tournament_id — requests satisfying none of these return 400.
Parameters
player_idquerybigintoptional
Filter to a single player.
tournament_idquerybigintoptional
Filter to a single tournament.
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/player_rounds?player_id=1'
Responses
200player_rounds rows matching the declared filter set, wrapped in { player_rounds, 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(25 fields)show schema ▸
FieldTypeReferencesDescription
idkey
bigint—Primary Key
player_id
bigint—
e.g. 194
tournament_id
bigint—
e.g. 887
back_nine_start
booleannullable——
e.g. — (all-null in sample)
birdies
integernullable——
e.g. 4
bogeys
integernullable——
e.g. 2
day
datenullable——
e.g. — (all-null in sample)
double_bogeys
integernullable——
e.g. 0
double_eagles
integernullable——
e.g. 0
eagles
integernullable——
e.g. 0
holes_in_one
integernullable——
e.g. 0
par
integernullable——
e.g. 72
pars
integernullable——
e.g. 12
round_number
integer——
e.g. 1
score
integernullable—Total strokes for round
e.g. 70
sg_approach
decimalnullable——
e.g. -0.8480
sg_around_green
decimalnullable——
e.g. 0.7610
sg_off_tee
decimalnullable——
e.g. 0.8570
sg_putting
decimalnullable——
e.g. 1.6950
sg_tee_to_green
decimalnullable——
e.g. 0.2610
sg_total
decimalnullable——
e.g. -0.1640
tee_time
timestamptznullable——
e.g. — (all-null in sample)
triple_bogeys
integernullable——
e.g. 0
worse_than_double_bogey
integernullable——
e.g. 0
worse_than_triple_bogey
integernullable——
e.g. 0
GET/api/v1/pga/player_rounds/{id}
Parameters
idpathbigintrequired
Primary key (id) of the player_round 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/player_rounds/{pk_value}'
Responses
200Single player_round row.application/jsonshow example ▸
404Row not found.
Response Schema(25 fields)show schema ▸
FieldTypeReferencesDescription
idkey
bigint—Primary Key
player_id
bigint—
e.g. 194
tournament_id
bigint—
e.g. 887
back_nine_start
booleannullable——
e.g. — (all-null in sample)
birdies
integernullable——
e.g. 4
bogeys
integernullable——
e.g. 2
day
datenullable——
e.g. — (all-null in sample)
double_bogeys
integernullable——
e.g. 0
double_eagles
integernullable——
e.g. 0
eagles
integernullable——
e.g. 0
holes_in_one
integernullable——
e.g. 0
par
integernullable——
e.g. 72
pars
integernullable——
e.g. 12
round_number
integer——
e.g. 1
score
integernullable—Total strokes for round
e.g. 70
sg_approach
decimalnullable——
e.g. -0.8480
sg_around_green
decimalnullable——
e.g. 0.7610
sg_off_tee
decimalnullable——
e.g. 0.8570
sg_putting
decimalnullable——
e.g. 1.6950
sg_tee_to_green
decimalnullable——
e.g. 0.2610
sg_total
decimalnullable——
e.g. -0.1640
tee_time
timestamptznullable——
e.g. — (all-null in sample)
triple_bogeys
integernullable——
e.g. 0
worse_than_double_bogey
integernullable——
e.g. 0
worse_than_triple_bogey
integernullable——
e.g. 0