Players National Statistics
This endpoint allows you to retrieve the national statistics about players.
Multi-language: This feature allows the user to manually change the language of the API response by adding value to the
lang
attribute. Example:lang=en
.
Pagination: The endpoint uses an offset and limit system. Specify the offset and limit parameters to fetch the desired range of results. The maximum and default number of results per request is 50.
Update Period: The endpoint is updated several times a day.
Recommended Calls: Limit calls to 1 per hour.
Use Cases
Get national statistics from a specific player_idhttps://football.sportdevs.com/players-national-statistics?player_id=eq.{player_id}
Query Parameters
- player_id integer
Default value:
eq.4
The id of the player
- offset string
Default value:
0
Limiting and Pagination
- limit string
Default value:
50
Limiting and Pagination
- lang string
Default value:
en
Multi-language
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema array
- player_id integer
The id of the player
Note: This is a Foreign Key to
players.id
. - statistics jsonb
The statistics
[
{
"player_id": 4,
"statistics": [
{
"debut": "2000-02-23T00:00:00+00:00",
"goals": 35,
"team_id": 24783,
"team_name": "Northern Ireland",
"appearances": 93,
"team_hash_image": "daff95ecaa03094798f4021b9ea82e3d13e2f9a172cc75e1babf42477407add2"
}
]
}
]