API | Players

Contains all the functionality to access player details, and retrieves a paged list of players by an event, division, or teams.

Player Details

Retrieves a player's details including additional data related to the player.

Endpoint

GET http://softball.exposureevents.com/api/v1/players

Parameters

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

Response


{
  "Player": {
    "Id": 101,
    "FirstName": "Joe",
    "LastName": "Smith",
    "Profile": {
      "Birthdate": "1/2/1990",
      "Height": "6-6",
      "Weight": 200,
      "HighSchool": "New Albany High School",
      "GraduationYear": 2008,
      "Grade": "6th",
      "Position": "Guard",
      "TravelTeam": "Indiana Elite"
    },
    "Teams": [
      {
        "Id": 12000,
        "ExternalTeamId": "XDLG234L",
        "Number": 22,
        "Name": "Indiana Elite",
        "DivisionId": 134,
        "DivisionName": "17U",
        "Games": [
          {
            "Id": 10000,
            "Date": "2/2/2015",
            "Time": "12:00 PM",
            "Venue": "Ballard High School",
            "Court": "Court 1",
            "Statistic": {
              "InningsPitched": 0,
              "InningsPitchedNumerator": 2,
              "InningsPitchedDenominator": 4,
              "PitchCount": 30
            }
          }
        ]
      }
    ]
  }
}


<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Player>
    <FirstName>Joe</FirstName>
    <Id>101</Id>
    <LastName>Smith</LastName>
    <Profile>
      <Birthdate>1/2/1990</Birthdate>
      <Grade>6th</Grade>
      <GraduationYear>2008</GraduationYear>
      <Height>6-6</Height>
      <HighSchool>New Albany High School</HighSchool>
      <Position>Guard</Position>
      <TravelTeam>Indiana Elite</TravelTeam>
      <Weight>200</Weight>
    </Profile>
    <Teams>
      <Team>
        <DivisionId>134</DivisionId>
        <DivisionName>17U</DivisionName>
        <ExternalTeamId>XDLG234L</ExternalTeamId>
        <Games>
          <Game>
            <Court>Court 1</Court>
            <Date>2/2/2015</Date>
            <Id>10000</Id>
            <Statistic>
              <InningsPitched>0</InningsPitched>
              <InningsPitchedDenominator>4</InningsPitchedDenominator>
              <InningsPitchedNumerator>2</InningsPitchedNumerator>
              <PitchCount>30</PitchCount>
            </Statistic>
            <Time>12:00 PM</Time>
            <Venue>Ballard High School</Venue>
          </Game>
        </Games>
        <Id>12000</Id>
        <Name>Indiana Elite</Name>
        <Number>22</Number>
      </Team>
    </Teams>
  </Player>
</Response>

Players

Retrieves a paged list of players.

Endpoint

GET http://softball.exposureevents.com/api/v1/players

Parameters

Name Type Default Required Description
page integer 1
pagesize integer 50
eventid integer The event id of the team.
divisionid integer The division id of the team.
playerids array The ids of one or more players.
teamids array The ids of one or more teams.
includes enumeration Additional data to be included in the response. Values should be separated by commas.

Response


{
  "Players": {
    "Results": [
      {
        "Id": 101,
        "FirstName": "Joe",
        "LastName": "Smith",
        "Profile": {
          "Birthdate": "1/2/1990",
          "Height": "6-6",
          "Weight": 200,
          "HighSchool": "New Albany High School",
          "GraduationYear": 2008,
          "Grade": "6th",
          "Position": "Guard",
          "TravelTeam": "Indiana Elite"
        },
        "Teams": [
          {
            "Id": 12000,
            "ExternalTeamId": "XDLG234L",
            "Number": 22,
            "Name": "Indiana Elite",
            "DivisionId": 134,
            "DivisionName": "17U",
            "Games": [
              {
                "Id": 10000,
                "Date": "2/2/2015",
                "Time": "12:00 PM",
                "Venue": "Ballard High School",
                "Court": "Court 1",
                "Statistic": {
                  "InningsPitched": 0,
                  "InningsPitchedNumerator": 2,
                  "InningsPitchedDenominator": 4,
                  "PitchCount": 30
                }
              }
            ]
          }
        ]
      }
    ],
    "Page": 1,
    "PageSize": 50,
    "Total": 1
  }
}


<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Players>
    <Page>1</Page>
    <PageSize>50</PageSize>
    <Results>
      <Player>
        <FirstName>Joe</FirstName>
        <Id>101</Id>
        <LastName>Smith</LastName>
        <Profile>
          <Birthdate>1/2/1990</Birthdate>
          <Grade>6th</Grade>
          <GraduationYear>2008</GraduationYear>
          <Height>6-6</Height>
          <HighSchool>New Albany High School</HighSchool>
          <Position>Guard</Position>
          <TravelTeam>Indiana Elite</TravelTeam>
          <Weight>200</Weight>
        </Profile>
        <Teams>
          <Team>
            <DivisionId>134</DivisionId>
            <DivisionName>17U</DivisionName>
            <ExternalTeamId>XDLG234L</ExternalTeamId>
            <Games>
              <Game>
                <Court>Court 1</Court>
                <Date>2/2/2015</Date>
                <Id>10000</Id>
                <Statistic>
                  <InningsPitched>0</InningsPitched>
                  <InningsPitchedDenominator>4</InningsPitchedDenominator>
                  <InningsPitchedNumerator>2</InningsPitchedNumerator>
                  <PitchCount>30</PitchCount>
                </Statistic>
                <Time>12:00 PM</Time>
                <Venue>Ballard High School</Venue>
              </Game>
            </Games>
            <Id>12000</Id>
            <Name>Indiana Elite</Name>
            <Number>22</Number>
          </Team>
        </Teams>
      </Player>
    </Results>
    <Total>1</Total>
    <Totals i:nil="true" />
  </Players>
</Response>

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