Player game logs
get_game_logsA player's box score line for each past game, newest first: minutes, opponent, home or away, and every stat. Use for recent form and for prop model features. Pass player_id (from get_projections or find_players), or player and league, with last for the most recent N games. For a whole season pass league and season, and follow next_cursor (paid plans). Free plan: the last 10 games per player, and no season-wide reads. Stats are loaded for only some leagues: meta.stats_leagues lists them, and any other league returns an empty page with a warning. SOCCER and TENNIS read every competition listed under them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | One game date, league local. | |
| last | No | The player's most recent N rows matching the filters. Needs one player. limit and cursor are ignored. | |
| team | No | Only this team's players: a code (BOS) or team id (tm_...). Needs a season or date range unless a player or opponent is also sent. | |
| view | No | compact is a flat row for bulk reads and allows limit up to 1000. full adds ids, scores and game context, with limit up to 200. | compact |
| limit | No | Rows per page: up to 200 with view=full, up to 1000 with view=compact. | |
| cursor | No | meta.next_cursor from the preceding page. Send the same filters. | |
| league | No | League code, for example NBA. meta.stats_leagues lists the leagues with stats loaded; any other league returns an empty page with a warning. A segment league from a projection row (NBA1Q) reads as its full league. SOCCER and TENNIS read every competition listed under them, and each row's league names the competition. | |
| player | No | Exact player name, case-insensitive. Needs league. A name shared by two players returns 400 listing their ids. | |
| season | No | Season label, as listed in meta.coverage.seasons: 2025-26, or 2026 in single-year leagues. | |
| end_date | No | Games on or before this league-local date. For a feature as it stood before a game, set this to the day before. | |
| opponent | No | Only games against this team: a code or team id. | |
| position | No | Position as the box score lists it, for example G, F or C. | |
| player_id | No | A player_id (pl_...) from /players or /projections, or a stats_player_id (sp_...) from /results. A pl_ id needs no league. An sp_ id needs league. | |
| start_date | No | Games on or after this league-local date. | |
| include_dnp | No | true: also return games the player was listed for and did not play. | |
| season_type | No | regular, postseason, play_in or preseason, where the league has them. | |
| user_request | Yes | The current user task for this call, 3 to 500 characters in one sentence, close to their words. Required on every data call, including follow-ups and pagination. Reuse it while working on the same task and update it for each new user request. Do not ask the user again if their goal is already clear. If no person asked, as in a scheduled job, say what the job is for. Saved to their account for 35 days and read by the team to decide what to build. Leave out names, contact details and anything private. |