API | Statistics

Contains all the functionality to access statistics by event or division.

Statistics

Retrieves totals of statistics in a grouped list.

Endpoint

GET https://soccer.exposureevents.com/api/v1/statistics

Parameters

Name Type Default Required Description
PageSize integer 10
Categories enumeration Statistic leader categories. Values should be separated by commas.
EventId integer The event id.
DivisionId integer
{
  "Players": {
    "Statistics": [
      {
        "Name": "Points Per Game",
        "Participants": [
          {
            "LastName": "Smith",
            "FirstName": "Joe",
            "Value": 5.2,
            "PlayerId": 12000
          },
          {
            "LastName": "Paige",
            "FirstName": "Dallas",
            "Value": 3.0,
            "PlayerId": 12001
          }
        ]
      },
      {
        "Name": "Rebounds Per Game",
        "Participants": [
          {
            "LastName": "Smith",
            "FirstName": "Joe",
            "Value": 5.2,
            "PlayerId": 12000
          },
          {
            "LastName": "Paige",
            "FirstName": "Dallas",
            "Value": 3.0,
            "PlayerId": 12001
          }
        ]
      }
    ]
  }
}
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Players>
    <Statistics>
      <StatisticCategory>
        <Name>Points Per Game</Name>
        <Participants>
          <Statistics>
            <FirstName>Joe</FirstName>
            <LastName>Smith</LastName>
            <PlayerId>12000</PlayerId>
            <Value>5.2</Value>
          </Statistics>
          <Statistics>
            <FirstName>Dallas</FirstName>
            <LastName>Paige</LastName>
            <PlayerId>12001</PlayerId>
            <Value>3</Value>
          </Statistics>
        </Participants>
      </StatisticCategory>
      <StatisticCategory>
        <Name>Rebounds Per Game</Name>
        <Participants>
          <Statistics>
            <FirstName>Joe</FirstName>
            <LastName>Smith</LastName>
            <PlayerId>12000</PlayerId>
            <Value>5.2</Value>
          </Statistics>
          <Statistics>
            <FirstName>Dallas</FirstName>
            <LastName>Paige</LastName>
            <PlayerId>12001</PlayerId>
            <Value>3</Value>
          </Statistics>
        </Participants>
      </StatisticCategory>
    </Statistics>
  </Players>
</Response>

Update Statistics

Adds or updates player statistics for a game.

Endpoint

PUT https://soccer.exposureevents.com/api/v1/statistics

Parameters

Name Type Default Required Description
gameid integer The game id.
away.id integer The team id of the away team (required if no external team id).
away.externalteamid string The external team id of the away team (required if no team id).
away.players array An array of players for the away team.
away.players.teamplayerid integer The team player id of the team (required if no external player id).
away.players.externalplayerid string The external player id of the team (required if no team player id).
away.players.statistics array An array of statisics for a player.
away.players.statistics.name enumeration Name of the statistic.
away.players.statistics.value string Value of the statistic. Use "" to clear a statistic. Missing key or null value will not overwrite existing statistic.
home.id integer The team id of the home team (required if no external team id).
home.externalteamid string The external team id of the home team (required if no team id).
home.players array An array of players for the home team.
home.players.teamplayerid integer The team player id of the team (required if no external player id).
home.players.externalplayerid string The external player id of the team (required if no team player id).
home.players.statistics array An array of statisics for a player.
home.players.statistics.name enumeration Name of the statistic.
home.players.statistics.value string Value of the statistic. Use "" to clear a statistic. Missing key or null value will not overwrite existing statistic.
{
  "GameId": 36953663,
  "Away": {
    "Id": 4424,
    "ExternalTeamId": "TSLJKDGLDL",
    "Players": [
      {
        "TeamPlayerId": 7777,
        "ExternalPlayerId": "away-player",
        "Statistics": [
          {
            "Name": "Points",
            "Value": "12"
          }
        ]
      }
    ]
  },
  "Home": {
    "Id": 444,
    "ExternalTeamId": "test-home-team",
    "Players": [
      {
        "TeamPlayerId": 5555,
        "ExternalPlayerId": "GLSKDKLFL",
        "Statistics": [
          {
            "Name": "Points",
            "Value": "12"
          }
        ]
      }
    ]
  }
}
<Request xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Away>
    <ExternalTeamId>TSLJKDGLDL</ExternalTeamId>
    <Id>4424</Id>
    <Players>
      <Player>
        <ExternalPlayerId>away-player</ExternalPlayerId>
        <Statistics>
          <Statistic>
            <Name>Points</Name>
            <Value>12</Value>
          </Statistic>
        </Statistics>
        <TeamPlayerId>7777</TeamPlayerId>
      </Player>
    </Players>
  </Away>
  <GameId>36953663</GameId>
  <Home>
    <ExternalTeamId>test-home-team</ExternalTeamId>
    <Id>444</Id>
    <Players>
      <Player>
        <ExternalPlayerId>GLSKDKLFL</ExternalPlayerId>
        <Statistics>
          <Statistic>
            <Name>Points</Name>
            <Value>12</Value>
          </Statistic>
        </Statistics>
        <TeamPlayerId>5555</TeamPlayerId>
      </Player>
    </Players>
  </Home>
</Request>
{}
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
SOCCER EVENT, TOURNAMENT AND LEAGUE MARKETING Market your event now! Submit Event