Pull a player game log
Build one row per appearance and keep the player's team and opponent attached to the game.
Resolve the person
Search for the player and check their sport and team context before keeping the person ID. Players can share a name. Save the chosen ID so later requests can address the same person after a roster change. Search reference
Read the appearances
Open the game log for that person. Keep the event ID, date, organization at the time, opponent, and the statistical line for each appearance. Request the next page with next_offset until it is null. A player can change teams during a season, so take the team from each appearance when building historical rows. Game log reference
Present missing and zero values
A recorded zero is a valid statistic. An unavailable field, a missed game, and an appearance with zero points have different meanings. Render an unavailable value as a dash with an accessible label and preserve a recorded zero in totals.
Open the underlying game
Use the event ID to link an appearance to its event detail. Offer a box-score view when the competition's coverage supports it. A reader can then examine the other players and team totals for that same contest. Box score reference
curl --request GET "https://api.precisesports.io/v1/persons/per_example_001/gamelog" \
--header "Authorization: Bearer $PRECISEDATA_KEY"