Baseball.Teams
Get team statistics
Refresh interval: Immediately once a match is finished.
Retrieve team stats for each league and season by specifying the team's id path parameter. Requires fromDate query parameter to be specified in the YYYY-MM-DD format. Additionally, the timezone query parameter can be specified to futher narrow down the search results based on your location.
get/baseball/teams/statistics/{id}
Request
- Base URLhttps://sports.highlightly.net
- Authnone declared. Required headers: x-rapidapi-host, x-rapidapi-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idnumber required
Requested team id.
Query parameters
fromDatestring required
Example:2023-08-06
Date that follows the YYYY-MM-DD format.
timezonestring
Example:Europe/London
Valid timezone identifier.
Headers
x-rapidapi-hoststring required
sport-highlights-api.p.rapidapi.com
x-rapidapi-keystring required
Rapid API Token
Response
Example response
[
{
"total": {
"games": {
"played": 102,
"wins": 43,
"loses": 59
},
"points": {
"scored": 566,
"received": 600
}
},
"home": {
"games": {
"played": 49,
"wins": 21,
"loses": 28
},
"points": {
"scored": 263,
"received": 300
}
},
"away": {
"games": {
"played": 53,
"wins": 22,
"loses": 31
},
"points": {
"scored": 303,
"received": 300
}
},
"leagueName": "MLB",
"round": "regular-season"
}
]Changes
No recorded changes to this operation across all 1 revision of this API.