Baseball.Players

Get player statistics by player id

Refresh interval: Once a day

Retrieve detailed player statistics for specified playerId.

Detailed player statistics are aggregated on a perSeason level. Each season has the following available coverage:

TypeDescription
EntireCombines both regular season and post-season statistics. Pre-season data is not included.
SeasonIncludes only regular season statistics.

Recorded stats are dependant on the player position. In total, the following stats are available:

TypeDescription
PitchingStatistics that measure a pitcher's performance in preventing runs and controlling opposing hitters (innings pitched, strikeouts, walks, earned runs).
BattingStatistics that measure a player's offensive performance at the plate, including hitting ability, power and on-base success (hits, batting average, home runs, RBIs).

Note: As mentioned earlier, statistics are associated with specific player positions. This means the results you receive will vary depending on the player's position.

Baseball Player stats example

get/baseball/players/{id}/statistics

Request

Path parameters

idnumber required

Requested player id.

Headers

x-rapidapi-hoststring required

sport-highlights-api.p.rapidapi.com

x-rapidapi-keystring required

Rapid API Token

Response

idnumber required
fullNamestring
logostring

Example response

[
  {
    "id": 342182,
    "fullName": "Reese Albert",
    "perSeason": [
      {
        "stats": [
          {
            "name": "Player Hit By Pitch",
            "value": 7,
            "category": "Batting"
          }
        ],
        "teams": [
          {
            "id": 10291561,
            "logo": "https://highlightly.net/baseball/images/teams/10291561.png",
            "name": "Seminoles",
            "league": "MLB",
            "displayName": "Florida State",
            "abbreviation": "FSU"
          }
        ],
        "league": "MLB",
        "season": 2022,
        "seasonBreakdown": "Entire"
      }
    ]
  }
]

Changes

No recorded changes to this operation across all 1 revision of this API.