API | Games, Bouts

Contains functionality to access game, bout details, retrieves a paged list of games, bouts by a division, team, or date, and updating game, bout details.

Game, Bout Details

Retrieves a game, bout details.

Endpoint

GET https://exposureevents.com/api/v1/games|bouts

Parameters

Name Type Default Required Description
id integer The game, bout id.
includes enumeration Additional data to be included in the response. Values should be separated by commas.

Response


{
  "Game": {
    "Id": 64,
    "Type": 1,
    "Date": "10/22/2019",
    "Time": "9:59 AM",
    "Division": {
      "Id": 120,
      "Name": "17",
      "Event": {
        "Id": 30,
        "Name": "Exposure Events"
      }
    },
    "VenueCourt": {
      "Id": 0,
      "Court": {
        "Sport": 0,
        "Name": "Main",
        "Abbr": "MN"
      },
      "Venue": {
        "Id": 68,
        "Name": "Exposure High School",
        "Abbr": "EHS",
        "Address": {
          "Location": "Exposure High School",
          "StreetAddress": "3934 E Battala Avenue",
          "ExtendedAddress": "Suite 144",
          "City": "Gilbert",
          "StateRegion": "Arizona",
          "PostalCode": "85297",
          "Latitude": 36.1849073,
          "Longitude": -115.1230314
        }
      }
    },
    "AwayTeam": {
      "Name": "Away Team",
      "Pool": "A",
      "PoolNumber": 1,
      "Score": 57.0,
      "TeamId": 1487,
      "BracketName": "Gold",
      "BracketId": 100,
      "DivisionSeed": 4,
      "Seed": 2,
      "DivisionId": 100,
      "DivisionName": "16",
      "WonBy": 7,
      "Color": "000000"
    },
    "HomeTeam": {
      "Name": "Home Team",
      "Pool": "A",
      "PoolNumber": 2,
      "Score": 58.0,
      "TeamId": 1488,
      "PoolSeed": 2,
      "Exhibition": true,
      "Color": "FF0000"
    },
    "BracketName": "Championship"
  }
}

<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Game>
    <AwayTeam>
      <BracketId>100</BracketId>
      <BracketName>Gold</BracketName>
      <Color>000000</Color>
      <DivisionId>100</DivisionId>
      <DivisionName>16</DivisionName>
      <DivisionSeed>4</DivisionSeed>
      <Name>Away Team</Name>
      <Pool>A</Pool>
      <PoolNumber>1</PoolNumber>
      <Score>57</Score>
      <Seed>2</Seed>
      <TeamId>1487</TeamId>
      <WonBy>Forfeit</WonBy>
    </AwayTeam>
    <BracketName>Championship</BracketName>
    <Date>10/22/2019</Date>
    <Division>
      <Event>
        <Id>30</Id>
        <Name>Exposure Events</Name>
      </Event>
      <Id>120</Id>
      <Name>17</Name>
    </Division>
    <HomeTeam>
      <Color>FF0000</Color>
      <Exhibition>true</Exhibition>
      <Name>Home Team</Name>
      <Pool>A</Pool>
      <PoolNumber>2</PoolNumber>
      <PoolSeed>2</PoolSeed>
      <Score>58</Score>
      <TeamId>1488</TeamId>
    </HomeTeam>
    <Id>64</Id>
    <Time>9:59 AM</Time>
    <Type>1</Type>
    <VenueCourt>
      <Court>
        <Abbr>MN</Abbr>
        <Name>Main</Name>
        <Sport>0</Sport>
      </Court>
      <Id>0</Id>
      <Venue>
        <Abbr>EHS</Abbr>
        <Address>
          <City>Gilbert</City>
          <ExtendedAddress>Suite 144</ExtendedAddress>
          <Latitude>36.1849073</Latitude>
          <Location>Exposure High School</Location>
          <Longitude>-115.1230314</Longitude>
          <PostalCode>85297</PostalCode>
          <StateRegion>Arizona</StateRegion>
          <StreetAddress>3934 E Battala Avenue</StreetAddress>
        </Address>
        <Id>68</Id>
        <Name>Exposure High School</Name>
      </Venue>
    </VenueCourt>
  </Game>
</Response>

Game, Bouts

Retrieves a paged list of game, bouts.

Endpoint

GET https://exposureevents.com/api/v1/games|bouts

Parameters

Name Type Default Required Description
page integer 1
pagesize integer 50
eventid integer The event id.
divisionid integer The division id.
teamid integer The team id.
date date The date of the games, bouts. The value must be in the format m/d/yyyy.
includes enumeration Additional data to be included in the response. Values should be separated by commas.

Response


{
  "Games": {
    "Results": [
      {
        "Id": 64,
        "Type": 1,
        "Date": "10/22/2019",
        "Time": "9:59 AM",
        "Division": {
          "Id": 120,
          "Name": "17",
          "Event": {
            "Id": 30,
            "Name": "Exposure Events"
          }
        },
        "VenueCourt": {
          "Id": 0,
          "Court": {
            "Sport": 0,
            "Name": "Main",
            "Abbr": "MN"
          },
          "Venue": {
            "Id": 68,
            "Name": "Exposure High School",
            "Abbr": "EHS",
            "Address": {
              "Location": "Exposure High School",
              "StreetAddress": "3934 E Battala Avenue",
              "ExtendedAddress": "Suite 144",
              "City": "Gilbert",
              "StateRegion": "Arizona",
              "PostalCode": "85297",
              "Latitude": 36.1849073,
              "Longitude": -115.1230314
            }
          }
        },
        "AwayTeam": {
          "Name": "Away Team",
          "Pool": "A",
          "PoolNumber": 1,
          "Score": 57.0,
          "TeamId": 1487,
          "BracketName": "Gold",
          "BracketId": 100,
          "DivisionSeed": 4,
          "Seed": 2,
          "DivisionId": 100,
          "DivisionName": "16",
          "WonBy": 7,
          "Color": "000000"
        },
        "HomeTeam": {
          "Name": "Home Team",
          "Pool": "A",
          "PoolNumber": 2,
          "Score": 58.0,
          "TeamId": 1488,
          "PoolSeed": 2,
          "Exhibition": true,
          "Color": "FF0000"
        },
        "BracketName": "Championship"
      }
    ],
    "Page": 1,
    "PageSize": 50,
    "Total": 1
  }
}


<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Games>
    <Page>1</Page>
    <PageSize>50</PageSize>
    <Results>
      <Game>
        <AwayTeam>
          <BracketId>100</BracketId>
          <BracketName>Gold</BracketName>
          <Color>000000</Color>
          <DivisionId>100</DivisionId>
          <DivisionName>16</DivisionName>
          <DivisionSeed>4</DivisionSeed>
          <Name>Away Team</Name>
          <Pool>A</Pool>
          <PoolNumber>1</PoolNumber>
          <Score>57</Score>
          <Seed>2</Seed>
          <TeamId>1487</TeamId>
          <WonBy>Forfeit</WonBy>
        </AwayTeam>
        <BracketName>Championship</BracketName>
        <Date>10/22/2019</Date>
        <Division>
          <Event>
            <Id>30</Id>
            <Name>Exposure Events</Name>
          </Event>
          <Id>120</Id>
          <Name>17</Name>
        </Division>
        <HomeTeam>
          <Color>FF0000</Color>
          <Exhibition>true</Exhibition>
          <Name>Home Team</Name>
          <Pool>A</Pool>
          <PoolNumber>2</PoolNumber>
          <PoolSeed>2</PoolSeed>
          <Score>58</Score>
          <TeamId>1488</TeamId>
        </HomeTeam>
        <Id>64</Id>
        <Time>9:59 AM</Time>
        <Type>1</Type>
        <VenueCourt>
          <Court>
            <Abbr>MN</Abbr>
            <Name>Main</Name>
            <Sport>0</Sport>
          </Court>
          <Id>0</Id>
          <Venue>
            <Abbr>EHS</Abbr>
            <Address>
              <City>Gilbert</City>
              <ExtendedAddress>Suite 144</ExtendedAddress>
              <Latitude>36.1849073</Latitude>
              <Location>Exposure High School</Location>
              <Longitude>-115.1230314</Longitude>
              <PostalCode>85297</PostalCode>
              <StateRegion>Arizona</StateRegion>
              <StreetAddress>3934 E Battala Avenue</StreetAddress>
            </Address>
            <Id>68</Id>
            <Name>Exposure High School</Name>
          </Venue>
        </VenueCourt>
      </Game>
    </Results>
    <Total>1</Total>
  </Games>
</Response>

Update Game, Bout

Updates an existing game, bout.

Endpoint

PUT https://exposureevents.com/api/v1/games|bouts

Parameters

Name Type Default Required Description
id integer The game, bout id.
awayteamscore integer The score of the away team.
hometeamscore integer The score of the home team.
awayteamwonby enumeration How the away team was declared the winner.
hometeamwonby enumeration How the home team was declared the winner.
externalid string External vendor game, bout id used for statistics.

Request


{
  "Id": 64,
  "AwayTeamScore": "55",
  "HomeTeamScore": "56",
  "ExternalId": "4545420",
  "AwayTeamWonBy": 7
}

<Request xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <AwayColor i:nil="true" />
  <AwayTeamScore>55</AwayTeamScore>
  <AwayTeamWonBy>Forfeit</AwayTeamWonBy>
  <ExternalId>4545420</ExternalId>
  <HomeColor i:nil="true" />
  <HomeTeamScore>56</HomeTeamScore>
  <HomeTeamWonBy i:nil="true" />
  <Id>64</Id>
  <Time i:nil="true" />
</Request>

Response


{}


<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />

EVENT, TOURNAMENT AND LEAGUE DIRECTORY Market your event by submitting it to our directory. Submit Event