GET api/v{version}/player/props/{id}?includeImages={includeImages}

Get some basic properties of a player. This includes: name, nationality, birthday, gender and optional an image.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

includeImages

boolean

Default value is False

version

string

None.

Body Parameters

None.

Response Information

Resource Description

PlayerPropViewModel
NameDescriptionTypeAdditional information
id

Id of the player. This id is unique, but may be changes between version updates of the application.

integer

None.

Key

The unique key of the player. While the id of the player is also unique, this key will never change due to database reconfigurations.

integer

None.

lastupdated

date

None.

name

PlayerNameProp

None.

nationality

The nationality of the player represented by the country code. For example NL for the Netherlands.

string

None.

email

string

None.

gender

GenderType

None.

birthday

The birthday of the player.

date

None.

photos

PlayerPhotoProps

None.

Identifier

globally unique identifier

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "Key": 2,
  "lastupdated": "2023-09-30T04:45:15.0401631+02:00",
  "name": {
    "first": "sample string 1",
    "last": "sample string 2"
  },
  "nationality": "sample string 4",
  "email": "sample string 5",
  "gender": 0,
  "birthday": "2023-09-30T04:45:15.0401631+02:00",
  "photos": {
    "general": {
      "link": "sample string 1",
      "contenttype": "sample string 2",
      "photographer": "sample string 3",
      "description": "sample string 4"
    },
    "throw": {
      "link": "sample string 1",
      "contenttype": "sample string 2",
      "photographer": "sample string 3",
      "description": "sample string 4"
    },
    "mug": {
      "link": "sample string 1",
      "contenttype": "sample string 2",
      "photographer": "sample string 3",
      "description": "sample string 4"
    }
  },
  "Identifier": "8533484b-61a3-4316-946f-850e48539b97"
}

application/xml, text/xml

Sample:
<PlayerPropViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DartStat.Web.Areas.Apiv2.Models">
  <Email>sample string 5</Email>
  <Gender>Male</Gender>
  <Key>2</Key>
  <Name>
    <FirstName>sample string 1</FirstName>
    <LastName>sample string 2</LastName>
  </Name>
  <NationalityCountryCode>sample string 4</NationalityCountryCode>
  <Photos>
    <General>
      <ContentType>sample string 2</ContentType>
      <Description>sample string 4</Description>
      <Link>sample string 1</Link>
      <Photographer>sample string 3</Photographer>
    </General>
    <Mug>
      <ContentType>sample string 2</ContentType>
      <Description>sample string 4</Description>
      <Link>sample string 1</Link>
      <Photographer>sample string 3</Photographer>
    </Mug>
    <Throw>
      <ContentType>sample string 2</ContentType>
      <Description>sample string 4</Description>
      <Link>sample string 1</Link>
      <Photographer>sample string 3</Photographer>
    </Throw>
  </Photos>
  <PlayerId>1</PlayerId>
</PlayerPropViewModel>