cURL
curl --request GET \ --url https://v1.basketball.sportsapipro.com/athletes/games \ --header 'x-api-key: <api-key>'
Get game-by-game statistics for a specific player
curl -X GET "https://v1.basketball.sportsapipro.com/athletes/games?athleteId=12345&numOfGames=10" \ -H "x-api-key: YOUR_API_KEY"
Show Game Log
Show Stats
// Analyze recent performance vs prop line const propLine = 25.5; const games = await getPlayerGames(playerId); const overHits = games.filter(g => g.stats.points > propLine).length; const hitRate = (overHits / games.length) * 100; console.log(`Over ${propLine} points hit rate: ${hitRate}%`);
Your SportsAPI Pro API key
Player ID
12345
Number of games to return
10
Player game logs retrieved successfully
Was this page helpful?