GET api/v{version}/player/{id}/lastmatches?count={count}

Get the last played matches of a player.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

count

Number of entries (default = 10, max = 100)

integer

Default value is 20

version

string

None.

Body Parameters

None.

Response Information

Resource Description

LatestMatchesViewModel
NameDescriptionTypeAdditional information
Matches

Collection of MatchInfoViewModel

None.

Response Formats

application/json, text/json

Sample:
{
  "Matches": [
    {
      "PlayerA": {
        "Player": {
          "PlayerId": 1,
          "Name": "sample string 2",
          "Key": 3,
          "Nationality": "sample string 4",
          "CountryCode": "sample string 5"
        },
        "Seeding": "sample string 1",
        "Nationality": "sample string 2",
        "CountryCode": "sample string 3"
      },
      "PlayerB": {
        "Player": {
          "PlayerId": 1,
          "Name": "sample string 2",
          "Key": 3,
          "Nationality": "sample string 4",
          "CountryCode": "sample string 5"
        },
        "Seeding": "sample string 1",
        "Nationality": "sample string 2",
        "CountryCode": "sample string 3"
      },
      "CoupleA": {
        "CoupleId": 1,
        "Key": 2,
        "Name": "sample string 3",
        "Nationality": "sample string 4",
        "CountryCode": "sample string 5"
      },
      "CoupleB": {
        "CoupleId": 1,
        "Key": 2,
        "Name": "sample string 3",
        "Nationality": "sample string 4",
        "CountryCode": "sample string 5"
      },
      "ResultA": {
        "Stats": {
          "Average": 1.1,
          "NumberOfHunderdEighties": 1,
          "DoubleAttempts": 1,
          "DoubleHits": 1,
          "Scores": [
            1,
            2
          ],
          "Finishes": [
            1,
            2
          ]
        },
        "Avg": 1.1,
        "Score": "sample string 1"
      },
      "ResultB": {
        "Stats": {
          "Average": 1.1,
          "NumberOfHunderdEighties": 1,
          "DoubleAttempts": 1,
          "DoubleHits": 1,
          "Scores": [
            1,
            2
          ],
          "Finishes": [
            1,
            2
          ]
        },
        "Avg": 1.1,
        "Score": "sample string 1"
      },
      "Context": {
        "InPoules": true,
        "Poule": "sample string 2",
        "SeasonId": 3,
        "Season": "sample string 4",
        "RoundId": 5,
        "Round": "sample string 6",
        "CompetitionId": 7,
        "Competition": "sample string 8"
      },
      "OfficialStartDate": "2019-06-17T21:38:45.0044854+02:00",
      "CallerId": 1,
      "Caller": "sample string 1",
      "Details": "sample string 2"
    },
    {
      "PlayerA": {
        "Player": {
          "PlayerId": 1,
          "Name": "sample string 2",
          "Key": 3,
          "Nationality": "sample string 4",
          "CountryCode": "sample string 5"
        },
        "Seeding": "sample string 1",
        "Nationality": "sample string 2",
        "CountryCode": "sample string 3"
      },
      "PlayerB": {
        "Player": {
          "PlayerId": 1,
          "Name": "sample string 2",
          "Key": 3,
          "Nationality": "sample string 4",
          "CountryCode": "sample string 5"
        },
        "Seeding": "sample string 1",
        "Nationality": "sample string 2",
        "CountryCode": "sample string 3"
      },
      "CoupleA": {
        "CoupleId": 1,
        "Key": 2,
        "Name": "sample string 3",
        "Nationality": "sample string 4",
        "CountryCode": "sample string 5"
      },
      "CoupleB": {
        "CoupleId": 1,
        "Key": 2,
        "Name": "sample string 3",
        "Nationality": "sample string 4",
        "CountryCode": "sample string 5"
      },
      "ResultA": {
        "Stats": {
          "Average": 1.1,
          "NumberOfHunderdEighties": 1,
          "DoubleAttempts": 1,
          "DoubleHits": 1,
          "Scores": [
            1,
            2
          ],
          "Finishes": [
            1,
            2
          ]
        },
        "Avg": 1.1,
        "Score": "sample string 1"
      },
      "ResultB": {
        "Stats": {
          "Average": 1.1,
          "NumberOfHunderdEighties": 1,
          "DoubleAttempts": 1,
          "DoubleHits": 1,
          "Scores": [
            1,
            2
          ],
          "Finishes": [
            1,
            2
          ]
        },
        "Avg": 1.1,
        "Score": "sample string 1"
      },
      "Context": {
        "InPoules": true,
        "Poule": "sample string 2",
        "SeasonId": 3,
        "Season": "sample string 4",
        "RoundId": 5,
        "Round": "sample string 6",
        "CompetitionId": 7,
        "Competition": "sample string 8"
      },
      "OfficialStartDate": "2019-06-17T21:38:45.0044854+02:00",
      "CallerId": 1,
      "Caller": "sample string 1",
      "Details": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<LatestMatchesViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DartStat.Web.Areas.Apiv2.Models">
  <Matches>
    <MatchInfoViewModel>
      <Caller>sample string 1</Caller>
      <CallerId>1</CallerId>
      <Context>
        <Competition>sample string 8</Competition>
        <CompetitionId>7</CompetitionId>
        <InPoules>true</InPoules>
        <Poule>sample string 2</Poule>
        <Round>sample string 6</Round>
        <RoundId>5</RoundId>
        <Season>sample string 4</Season>
        <SeasonId>3</SeasonId>
      </Context>
      <CoupleA>
        <CountryCode>sample string 5</CountryCode>
        <CoupleId>1</CoupleId>
        <Key>2</Key>
        <Name>sample string 3</Name>
        <Nationality>sample string 4</Nationality>
      </CoupleA>
      <CoupleB>
        <CountryCode>sample string 5</CountryCode>
        <CoupleId>1</CoupleId>
        <Key>2</Key>
        <Name>sample string 3</Name>
        <Nationality>sample string 4</Nationality>
      </CoupleB>
      <Details>sample string 2</Details>
      <OfficialStartDate>2019-06-17T21:38:45.0044854+02:00</OfficialStartDate>
      <PlayerA>
        <CountryCode>sample string 3</CountryCode>
        <Nationality>sample string 2</Nationality>
        <Player>
          <CountryCode>sample string 5</CountryCode>
          <Key>3</Key>
          <Name>sample string 2</Name>
          <Nationality>sample string 4</Nationality>
          <PlayerId>1</PlayerId>
        </Player>
        <Seeding>sample string 1</Seeding>
      </PlayerA>
      <PlayerB>
        <CountryCode>sample string 3</CountryCode>
        <Nationality>sample string 2</Nationality>
        <Player>
          <CountryCode>sample string 5</CountryCode>
          <Key>3</Key>
          <Name>sample string 2</Name>
          <Nationality>sample string 4</Nationality>
          <PlayerId>1</PlayerId>
        </Player>
        <Seeding>sample string 1</Seeding>
      </PlayerB>
      <ResultA>
        <Avg>1.1</Avg>
        <Score>sample string 1</Score>
        <Stats>
          <Average>1.1</Average>
          <DoubleAttempts>1</DoubleAttempts>
          <DoubleHits>1</DoubleHits>
          <Finishes xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:int>1</d6p1:int>
            <d6p1:int>2</d6p1:int>
          </Finishes>
          <NumberOfHunderdEighties>1</NumberOfHunderdEighties>
          <Scores xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:int>1</d6p1:int>
            <d6p1:int>2</d6p1:int>
          </Scores>
        </Stats>
      </ResultA>
      <ResultB>
        <Avg>1.1</Avg>
        <Score>sample string 1</Score>
        <Stats>
          <Average>1.1</Average>
          <DoubleAttempts>1</DoubleAttempts>
          <DoubleHits>1</DoubleHits>
          <Finishes xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:int>1</d6p1:int>
            <d6p1:int>2</d6p1:int>
          </Finishes>
          <NumberOfHunderdEighties>1</NumberOfHunderdEighties>
          <Scores xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:int>1</d6p1:int>
            <d6p1:int>2</d6p1:int>
          </Scores>
        </Stats>
      </ResultB>
    </MatchInfoViewModel>
    <MatchInfoViewModel>
      <Caller>sample string 1</Caller>
      <CallerId>1</CallerId>
      <Context>
        <Competition>sample string 8</Competition>
        <CompetitionId>7</CompetitionId>
        <InPoules>true</InPoules>
        <Poule>sample string 2</Poule>
        <Round>sample string 6</Round>
        <RoundId>5</RoundId>
        <Season>sample string 4</Season>
        <SeasonId>3</SeasonId>
      </Context>
      <CoupleA>
        <CountryCode>sample string 5</CountryCode>
        <CoupleId>1</CoupleId>
        <Key>2</Key>
        <Name>sample string 3</Name>
        <Nationality>sample string 4</Nationality>
      </CoupleA>
      <CoupleB>
        <CountryCode>sample string 5</CountryCode>
        <CoupleId>1</CoupleId>
        <Key>2</Key>
        <Name>sample string 3</Name>
        <Nationality>sample string 4</Nationality>
      </CoupleB>
      <Details>sample string 2</Details>
      <OfficialStartDate>2019-06-17T21:38:45.0044854+02:00</OfficialStartDate>
      <PlayerA>
        <CountryCode>sample string 3</CountryCode>
        <Nationality>sample string 2</Nationality>
        <Player>
          <CountryCode>sample string 5</CountryCode>
          <Key>3</Key>
          <Name>sample string 2</Name>
          <Nationality>sample string 4</Nationality>
          <PlayerId>1</PlayerId>
        </Player>
        <Seeding>sample string 1</Seeding>
      </PlayerA>
      <PlayerB>
        <CountryCode>sample string 3</CountryCode>
        <Nationality>sample string 2</Nationality>
        <Player>
          <CountryCode>sample string 5</CountryCode>
          <Key>3</Key>
          <Name>sample string 2</Name>
          <Nationality>sample string 4</Nationality>
          <PlayerId>1</PlayerId>
        </Player>
        <Seeding>sample string 1</Seeding>
      </PlayerB>
      <ResultA>
        <Avg>1.1</Avg>
        <Score>sample string 1</Score>
        <Stats>
          <Average>1.1</Average>
          <DoubleAttempts>1</DoubleAttempts>
          <DoubleHits>1</DoubleHits>
          <Finishes xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:int>1</d6p1:int>
            <d6p1:int>2</d6p1:int>
          </Finishes>
          <NumberOfHunderdEighties>1</NumberOfHunderdEighties>
          <Scores xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:int>1</d6p1:int>
            <d6p1:int>2</d6p1:int>
          </Scores>
        </Stats>
      </ResultA>
      <ResultB>
        <Avg>1.1</Avg>
        <Score>sample string 1</Score>
        <Stats>
          <Average>1.1</Average>
          <DoubleAttempts>1</DoubleAttempts>
          <DoubleHits>1</DoubleHits>
          <Finishes xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:int>1</d6p1:int>
            <d6p1:int>2</d6p1:int>
          </Finishes>
          <NumberOfHunderdEighties>1</NumberOfHunderdEighties>
          <Scores xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:int>1</d6p1:int>
            <d6p1:int>2</d6p1:int>
          </Scores>
        </Stats>
      </ResultB>
    </MatchInfoViewModel>
  </Matches>
</LatestMatchesViewModel>