GET api/OPTA/GetPlayerStatistics?playerId={playerId}&seasonId={seasonId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
playerId

globally unique identifier

Required

seasonId

integer

Required

Body Parameters

None.

Response Information

Resource Description

ServiceResultOfOPTAPlayerStatistics
NameDescriptionTypeAdditional information
Result

OPTAPlayerStatistics

None.

ErrorCode

ServiceErrorCode

None.

ErrorMessage

Collection of string

None.

Success

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": {
    "PlayerId": 1,
    "SeasonId": 1,
    "CompetitionId": 2,
    "OptaCompetitionId": 1,
    "TotalMatches": 1,
    "TotalStarted": 1,
    "MinutesPerGame": 1,
    "GoalsConceeded": 1,
    "PenSaved": 1,
    "PenFaced": 1,
    "Saves": 1,
    "CleanSheet": 1,
    "Goals": 1,
    "Shots": 1,
    "BigChancesMissed": 1,
    "Assists": 1,
    "AccuratePasses": 1,
    "TotalPasses": 1,
    "BigChancesCreated": 1,
    "Interceptions": 1,
    "TotalTackles": 1,
    "TotalClearances": 1,
    "ErrorsLeadToGoal": 1,
    "TotalContests": 1,
    "WonContests": 1,
    "DuelsWon": 1,
    "DuelsLost": 1,
    "Dispossessions": 1,
    "Fouls": 1,
    "WasFouled": 1,
    "YellowCard": 1,
    "SecondYellowCard": 1,
    "RedCard": 1,
    "MinutesPlayed": 1
  },
  "ErrorCode": 0,
  "ErrorMessage": [
    "sample string 1",
    "sample string 2"
  ],
  "Success": true
}

application/xml, text/xml

Sample:
<ServiceResultOfOPTAPlayerStatisticszKaCXfle xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FootballISM.Api.Contracts.Results">
  <ErrorCode>None</ErrorCode>
  <ErrorMessage xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ErrorMessage>
  <Success>true</Success>
  <Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/FootballISM.Api.Contracts.OPTA">
    <d2p1:AccuratePasses>1</d2p1:AccuratePasses>
    <d2p1:Assists>1</d2p1:Assists>
    <d2p1:BigChancesCreated>1</d2p1:BigChancesCreated>
    <d2p1:BigChancesMissed>1</d2p1:BigChancesMissed>
    <d2p1:CleanSheet>1</d2p1:CleanSheet>
    <d2p1:CompetitionId>2</d2p1:CompetitionId>
    <d2p1:Dispossessions>1</d2p1:Dispossessions>
    <d2p1:DuelsLost>1</d2p1:DuelsLost>
    <d2p1:DuelsWon>1</d2p1:DuelsWon>
    <d2p1:ErrorsLeadToGoal>1</d2p1:ErrorsLeadToGoal>
    <d2p1:Fouls>1</d2p1:Fouls>
    <d2p1:Goals>1</d2p1:Goals>
    <d2p1:GoalsConceeded>1</d2p1:GoalsConceeded>
    <d2p1:Interceptions>1</d2p1:Interceptions>
    <d2p1:MinutesPerGame>1</d2p1:MinutesPerGame>
    <d2p1:MinutesPlayed>1</d2p1:MinutesPlayed>
    <d2p1:OptaCompetitionId>1</d2p1:OptaCompetitionId>
    <d2p1:PenFaced>1</d2p1:PenFaced>
    <d2p1:PenSaved>1</d2p1:PenSaved>
    <d2p1:PlayerId>1</d2p1:PlayerId>
    <d2p1:RedCard>1</d2p1:RedCard>
    <d2p1:Saves>1</d2p1:Saves>
    <d2p1:SeasonId>1</d2p1:SeasonId>
    <d2p1:SecondYellowCard>1</d2p1:SecondYellowCard>
    <d2p1:Shots>1</d2p1:Shots>
    <d2p1:TotalClearances>1</d2p1:TotalClearances>
    <d2p1:TotalContests>1</d2p1:TotalContests>
    <d2p1:TotalMatches>1</d2p1:TotalMatches>
    <d2p1:TotalPasses>1</d2p1:TotalPasses>
    <d2p1:TotalStarted>1</d2p1:TotalStarted>
    <d2p1:TotalTackles>1</d2p1:TotalTackles>
    <d2p1:WasFouled>1</d2p1:WasFouled>
    <d2p1:WonContests>1</d2p1:WonContests>
    <d2p1:YellowCard>1</d2p1:YellowCard>
  </Result>
</ServiceResultOfOPTAPlayerStatisticszKaCXfle>