GET api/{version}/Teams/{teamId}/Seasons/{seasonId}/Fixtures/{fixtureId}/Commentary?languageId={languageId}&min={min}&max={max}

Details of fixture commentary for a specifed fixture.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
teamId

The ID of the team.

string

Required

seasonId

The ID of the season.

string

Required

fixtureId

The ID of the fixture.

string

Required

languageId

The ID of the language the commentary comes back in.

string

Default value is en

min

The minimum time you want to request commentary messages from

integer

Default value is 0

max

The maximum time you want to request commentary messages to

integer

None.

version

string

None.

Body Parameters

None.

Response Information

Resource Description

MatchCommentary
NameDescriptionTypeAdditional information
Competition

Details of competition

Competition

None.

Season

Details of season

Season

None.

HomeTeam

The home team

Team

None.

AwayTeam

The away team

Team

None.

MatchDetails

The match details

MatchDetails

None.

CommentaryMessages

The commentary of the match

Collection of MatchCommentaryMessage

None.

RequestStatus

Details of request status

APIRequestStatus

None.

Response Formats

application/json, text/json

Sample:
{
  "Competition": {
    "CompetitionId": "sample string 1",
    "CompetitionCode": "sample string 2",
    "CompetitionName": "sample string 3"
  },
  "Season": {
    "Id": "sample string 1",
    "SeasonName": "sample string 2"
  },
  "HomeTeam": {
    "Id": "sample string 1",
    "Name": "sample string 2",
    "Logo": {
      "SVGLogo": "sample string 1",
      "PNGLogo": "sample string 2",
      "RequestStatus": {
        "Success": true,
        "StatusMessage": "sample string 2"
      }
    }
  },
  "AwayTeam": {
    "Id": "sample string 1",
    "Name": "sample string 2",
    "Logo": {
      "SVGLogo": "sample string 1",
      "PNGLogo": "sample string 2",
      "RequestStatus": {
        "Success": true,
        "StatusMessage": "sample string 2"
      }
    }
  },
  "MatchDetails": {
    "Id": "sample string 1",
    "HomeScore": 2,
    "AwayScore": 3,
    "Date": "2017-10-18T22:15:57.2063087+00:00",
    "MatchStatus": 0
  },
  "CommentaryMessages": [
    {
      "Id": "sample string 1",
      "Comment": "sample string 2",
      "Minute": 1,
      "Second": "sample string 3",
      "Period": 0,
      "MatchStatus": 0,
      "EventType": 0
    },
    {
      "Id": "sample string 1",
      "Comment": "sample string 2",
      "Minute": 1,
      "Second": "sample string 3",
      "Period": 0,
      "MatchStatus": 0,
      "EventType": 0
    }
  ],
  "RequestStatus": {
    "Success": true,
    "StatusMessage": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<MatchCommentary xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Green4.WebApi.Stats.Interface.Stats">
  <AwayTeam>
    <Id>sample string 1</Id>
    <Logo>
      <PNGLogo>sample string 2</PNGLogo>
      <RequestStatus>
        <StatusMessage>sample string 2</StatusMessage>
        <Success>true</Success>
      </RequestStatus>
      <SVGLogo>sample string 1</SVGLogo>
    </Logo>
    <Name>sample string 2</Name>
  </AwayTeam>
  <CommentaryMessages>
    <MatchCommentaryMessage>
      <Comment>sample string 2</Comment>
      <EventType>NA</EventType>
      <Id>sample string 1</Id>
      <MatchStatus>NA</MatchStatus>
      <Minute>1</Minute>
      <Period>NA</Period>
      <Second>sample string 3</Second>
    </MatchCommentaryMessage>
    <MatchCommentaryMessage>
      <Comment>sample string 2</Comment>
      <EventType>NA</EventType>
      <Id>sample string 1</Id>
      <MatchStatus>NA</MatchStatus>
      <Minute>1</Minute>
      <Period>NA</Period>
      <Second>sample string 3</Second>
    </MatchCommentaryMessage>
  </CommentaryMessages>
  <Competition>
    <CompetitionCode>sample string 2</CompetitionCode>
    <CompetitionId>sample string 1</CompetitionId>
    <CompetitionName>sample string 3</CompetitionName>
  </Competition>
  <HomeTeam>
    <Id>sample string 1</Id>
    <Logo>
      <PNGLogo>sample string 2</PNGLogo>
      <RequestStatus>
        <StatusMessage>sample string 2</StatusMessage>
        <Success>true</Success>
      </RequestStatus>
      <SVGLogo>sample string 1</SVGLogo>
    </Logo>
    <Name>sample string 2</Name>
  </HomeTeam>
  <MatchDetails>
    <AwayScore>3</AwayScore>
    <Date>2017-10-18T22:15:57.2063087+00:00</Date>
    <HomeScore>2</HomeScore>
    <Id>sample string 1</Id>
    <MatchStatus>NA</MatchStatus>
  </MatchDetails>
  <RequestStatus>
    <StatusMessage>sample string 2</StatusMessage>
    <Success>true</Success>
  </RequestStatus>
  <Season>
    <Id>sample string 1</Id>
    <SeasonName>sample string 2</SeasonName>
  </Season>
</MatchCommentary>