Player statistics
Retrieve detailed statistics for one player.
- Refresh interval
- Once a day
- Aggregation
- Per season
The player id comes from players.
Per season
Statistics are aggregated per season in perSeason. Each entry has a
league, a season, the teams the player played
for, its stats, and a seasonBreakdown giving its coverage.
| Coverage | Includes |
|---|---|
Entire |
Regular season and post season combined. Pre season is not included. |
Season |
Regular season only. |
Pick the one that matches the question. A season including playoffs wants
Entire, while a regular season comparison between players wants
Season.
Statistics depend on position
Each entry in stats has a name, a value and a
category. The nine categories below are not all populated for every player.
Which ones appear depends on the position they play, so a quarterback carries passing
and a kicker carries kicking.
| Category | Covers |
|---|---|
| General | Overall performance across multiple aspects, such as games played, total yards and touchdowns. |
| Passing | Typically quarterbacks. Attempts, completions, yards, touchdowns and interceptions. |
| Rushing | Ground plays. Attempts, yards gained and rushing touchdowns. |
| Receiving | Pass catchers. Receptions, receiving yards, average per catch and receiving touchdowns. |
| Defense | Tackles, sacks, interceptions and forced fumbles. |
| Returning | Special teams return plays. Punt returns, kickoff returns and the yards or touchdowns from them. |
| Scoring | Touchdowns, field goals, extra points and total points contributed. |
| Kicking | Field goal and extra point attempts, makes and success rates. |
| Punting | Number of punts, total yards, average distance and punts inside the 20 yard line. |
Build a profile around the categories that are present rather than assuming a fixed set, otherwise a running back's page shows empty passing and kicking sections.
Parameters
| Parameter | Type | Description |
|---|---|---|
idrequired
|
numberpath | Requested player id. |
Request
curl --request GET \
--url 'https://american-football.highlightly.net/players/{id}/statistics' \
--header 'x-rapidapi-key: YOUR_API_KEY'
const response = await fetch('https://american-football.highlightly.net/players/{id}/statistics', {
headers: {
'x-rapidapi-key': process.env.HIGHLIGHTLY_API_KEY
}
})
if (!response.ok) {
throw new Error(`Highlightly responded ${response.status}`)
}
const data = await response.json()
import os
import requests
response = requests.get(
'https://american-football.highlightly.net/players/{id}/statistics',
headers={
'x-rapidapi-key': os.environ['HIGHLIGHTLY_API_KEY'],
},
timeout=10,
)
response.raise_for_status()
data = response.json()
Response
idnumberrequired
fullNamestring
logostring
perSeasonAmericanFootballDetailedPlayerStatisticsPerSeason[]required14 fields
statsAmericanFootballStatEntry[]requiredRelevant stats for player position.3 fields
namestringrequired
valuenumberrequired
categorystringrequiredGeneralDefenseReturningPassingRushingReceivingScoringPuntingKicking
teamsAmericanFootballDetailedPlayerSummaryTeam[]requiredTeams for which the player played in a given season.6 fields
idnumberrequired
logostring
namestringrequired
leaguestringrequired
displayNamestringrequired
abbreviationstringrequired
leaguestringrequired
seasonnumberrequired
seasonBreakdownstringrequiredRepresents the coverage for the stored statistics. Pre-season is never
included.EntireSeason
Example response
[
{
"id": 36017,
"fullName": "Tom Brady",
"logo": "",
"perSeason": [
{
"stats": [
{
"name": "Total Rushing Yardage",
"value": 4693,
"category": "Rushing"
}
],
"teams": [
{
"id": 92734,
"logo": "https://highlightly.net/american-football/images/teams/92734.png",
"name": "Buccaneers",
"league": "NFL",
"displayName": "Tampa Bay Buccaneers",
"abbreviation": "TB"
}
],
"league": "NFL",
"season": 2022,
"seasonBreakdown": "Entire"
}
]
}
]
Values are the examples declared in the OpenAPI spec, not a captured live response.
Errors
| Status | Description |
|---|---|
400 |
Bad request descriptive error. |
500 |
Internal server error. |