Get player by ID
GET
/api/v1/players/{id}
const url = 'https://internal.myscore.live/api/v1/api/v1/players/plr_federer';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://internal.myscore.live/api/v1/api/v1/players/plr_federerReturns public player details by ID.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Example
plr_federerPlayer ID
Responses
Section titled “ Responses ”Player found
Media type application/json
object
id
required
Unique player identifier
string
name
required
Player full name
string
nationality
ISO 3166-1 alpha-2 country code
string
gender
Player gender
string
profileImageUrl
required
Profile image URL
string
clubs
required
Active club memberships (leftAt IS NULL). Empty array when none.
Array<object>
object
id
required
Club ID
string
name
required
Club display name
string
role
required
Member’s role within the club
string
isPrimary
required
Whether this is the player’s primary (Stammverein) club. At most one active membership per player is primary.
boolean
createdAt
required
Record creation timestamp
string format: date-time
updatedAt
required
Record last update timestamp
string format: date-time
Example
{ "id": "plr_abc123", "name": "Rafael Nadal", "nationality": "ES", "gender": "male", "profileImageUrl": "/api/v1/players/plr_abc123/image", "clubs": [ { "id": "clb_abc123", "name": "TC Musterstadt Süd", "role": "member", "isPrimary": true } ], "createdAt": "2024-08-15T10:30:00.000Z", "updatedAt": "2024-09-01T14:20:00.000Z"}Player not found