Skip to main content
GET
/
athletes
/
top
Top Players
curl --request GET \
  --url https://v1.basketball.sportsapipro.com/athletes/top \
  --header 'x-api-key: <api-key>'
{
  "athletes": [
    {
      "id": 123,
      "name": "<string>",
      "firstName": "<string>",
      "lastName": "<string>",
      "position": "<string>",
      "team": {
        "id": 123,
        "name": "<string>",
        "score": 123,
        "imageUrl": "<string>"
      },
      "imageUrl": "<string>",
      "stats": {
        "pointsPerGame": 123,
        "reboundsPerGame": 123,
        "assistsPerGame": 123,
        "gamesPlayed": 123
      }
    }
  ]
}

Endpoint

GET https://v1.football.sportsapipro.com/athletes/top

Description

Returns the top athletes (players) sorted by popularity, along with related sports, countries, and competitions data. Useful for featuring popular players on dashboards and discovery pages.

Parameters

ParameterTypeDescription
limitnumberNumber of top athletes to return (e.g., 10, 20, 50)
sportsnumberFilter by sport ID (e.g., 1 for Football)
appTypeIdnumberClient application type identifier (auto-resolved)
langIdnumberLanguage identifier (auto-resolved)
timezoneNamestringTimezone for date/time values (auto-resolved, or specify e.g., America/New_York)
userCountryIdnumberUser’s country for localization (auto-resolved)
Parameters marked as “auto-resolved” are automatically determined by the upstream service based on the request context. You can override timezoneName with a specific timezone (e.g., America/New_York). All date/time fields use ISO 8601 format with a dynamic timezone offset.

Request

curl -X GET "https://v1.football.sportsapipro.com/athletes/top?limit=10&sports=1" \
  -H "x-api-key: YOUR_API_KEY"

Response

{
  "lastUpdateId": 0,
  "ttl": 300,
  "athletes": [
    {
      "id": 874,
      "name": "Lionel Messi",
      "shortName": "Messi",
      "nameForURL": "lionel-messi",
      "sportId": 1,
      "clubId": 54729,
      "nationalityId": 10,
      "nationalTeamId": 2378,
      "nationalityName": "Argentina",
      "age": 38,
      "gender": 1,
      "status": 1,
      "imageVersion": 0,
      "position": {
        "id": 4,
        "name": "Attacker"
      },
      "formationPosition": {
        "id": 14,
        "name": "Right Forward",
        "order": 14
      },
      "nationalTeamStatsText": "",
      "HasPenaltiesShots": false
    },
    {
      "id": 817,
      "name": "Cristiano Ronaldo",
      "shortName": "Ronaldo",
      "nameForURL": "cristiano-ronaldo",
      "sportId": 1,
      "clubId": 7549,
      "nationalityId": 11,
      "nationalTeamId": 5028,
      "nationalityName": "Portugal",
      "age": 40,
      "gender": 1,
      "status": 1,
      "imageVersion": 0,
      "position": {
        "id": 4,
        "name": "Attacker"
      },
      "formationPosition": {
        "id": 12,
        "name": "Centre Forward",
        "order": 12
      }
    }
  ],
  "sports": [
    {
      "id": 1,
      "name": "Football",
      "nameForURL": "football",
      "drawSupport": true,
      "imageVersion": 1
    }
  ],
  "countries": [
    {
      "id": 10,
      "name": "Argentina",
      "nameForURL": "argentina",
      "sportTypes": [1, 2, 5, 8, 9],
      "imageVersion": 1,
      "isInternational": false
    }
  ],
  "competitions": [
    {
      "id": 104,
      "countryId": 18,
      "sportId": 1,
      "name": "MLS",
      "longName": "Major League Soccer",
      "nameForURL": "mls",
      "popularityRank": 7747442,
      "imageVersion": 2,
      "color": "#325CB1"
    }
  ]
}

Response Fields

Root Level

FieldTypeDescription
lastUpdateIdnumberInternal versioning ID for incremental updates
ttlnumberCache time-to-live in seconds
athletesarrayList of top athletes sorted by popularity
sportsarrayList of sports referenced by athletes
countriesarrayList of countries/nationalities referenced
competitionsarrayList of competitions where athletes play

Athlete Object

FieldTypeDescription
idnumberUnique athlete identifier
namestringFull athlete name
shortNamestringAbbreviated display name (e.g., “Messi”)
nameForURLstringURL-friendly athlete name
sportIdnumberID of the sport (1 = Football, 2 = Basketball)
clubIdnumberID of the current club/team (-1 if no club)
nationalityIdnumberCountry ID of nationality
nationalTeamIdnumberID of national team (if applicable)
nationalityNamestringName of nationality country
agenumberCurrent age in years
gendernumberGender (1 = male, 0 = female)
statusnumberPlayer status (1 = active)
imageVersionnumberVersion number for athlete image assets
positionobjectGeneral playing position
formationPositionobjectSpecific formation position
nationalTeamStatsTextstringNational team statistics summary
HasPenaltiesShotsbooleanWhether player has penalty statistics
createdAtstringISO timestamp when athlete was added

Position Object

FieldTypeDescription
idnumberPosition identifier
namestringPosition name (e.g., “Attacker”, “Midfielder”)

Formation Position Object

FieldTypeDescription
idnumberFormation position identifier
namestringSpecific position name (e.g., “Right Forward”, “Centre Forward”)
shortNamestringAbbreviated position (e.g., “C” for Center)
ordernumberDisplay order in formation

Position Types

Football Positions

IDName
1Goalkeeper
2Defender
3Midfielder
4Attacker

Formation Positions (Football)

IDName
1Goalkeeper
2-5Defenders (CB, LB, RB, etc.)
6-10Midfielders (DM, CM, AM, etc.)
11-14Forwards (LW, RW, ST, CF)

Top Football Players

PlayerClubNationalityID
Lionel MessiInter MiamiArgentina874
Cristiano RonaldoAl NassrPortugal817
Lamine YamalFC BarcelonaSpain131182
Erling HaalandManchester CityNorway65760
Kylian MbappeReal MadridFrance39820
Kevin De BruyneManchester CityBelgium843
Jude BellinghamReal MadridEngland73000
RaphinhaFC BarcelonaBrazil39789

Athlete Images

Athlete photos can be accessed via the images proxy:
https://v1.football.sportsapipro.com/images/athletes/{id}?version={imageVersion}
Example:
https://v1.football.sportsapipro.com/images/athletes/874?version=0

Authorizations

x-api-key
string
header
required

Your SportsAPI Pro API key

Query Parameters

competitionId
integer
required

Competition ID

Example:

132

Response

200 - application/json

Top athletes retrieved successfully

athletes
object[]