API | Events

Contains functionality to access events details, and retrieves a paged list of active events with an option to include additional data related to the event.

Event Details

Retrieves event's details including additional data related to the event.

Endpoint

GET http://baseball.exposureevents.com/api/v1/events

Parameters

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

Response


{
  "Event": {
    "Id": 30,
    "ParentId": 1,
    "Gender": 1,
    "Name": "Exposure Baseball Events",
    "Organization": {
      "Id": 1,
      "Name": "Exposure Baseball Events",
      "Website": "http://baseball.exposureevents.com"
    },
    "Archive": false,
    "Image": "",
    "StartDate": "8/18/2017",
    "TimeZone": "Mountain Standard Time",
    "EndDate": "8/18/2017",
    "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
    },
    "Divisions": [
      {
        "Id": 120,
        "Name": "17",
        "Description": "This is an open division.",
        "Gender": 1,
        "Order": 1
      }
    ],
    "Assets": [
      {
        "Id": 1145,
        "Name": "Pools",
        "Description": "Super Pools",
        "Url": "http://baseball.exposureevents.com/assets/documents/1145.xls",
        "DateModified": "8/18/2017 7:44 PM",
        "DateCreated": "8/18/2017 7:44 PM"
      }
    ],
    "Reports": [
      {
        "Name": "Teams",
        "Description": "Event participating teams.",
        "Url": "http://baseball.exposureevents.com/events/teams?eventid=30",
        "Type": 3,
        "DateModified": "8/18/2017 7:44 PM"
      }
    ],
    "Venues": [
      {
        "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
        },
        "Courts": [
          {
            "Name": "Main",
            "Abbr": "MN"
          }
        ]
      }
    ],
    "Prices": [
      {
        "Id": 35,
        "Type": 1,
        "Name": "Tournament Fee",
        "Amount": 200.0,
        "Description": "Early bird special"
      }
    ],
    "Settings": {
      "EnableRegistration": false,
      "RosterLimit": 12,
      "RegistrationStatus": 1,
      "RegistrationStartDate": "8/18/2017",
      "RegistrationEndDate": "8/18/2017",
      "RegistrationStartTime": "7:44 PM",
      "RegistrationEndTime": "7:44 PM",
      "ScheduleAvailabilityDate": "8/18/2017",
      "ScheduleAvailabilityTime": "7:44 PM",
      "ShowSchedule": true,
      "ShowPools": true,
      "ShowBrackets": true,
      "ShowTeams": false
    },
    "ContactName": "Bob Smith",
    "ContactEmail": "noreply@exposureevents.com",
    "ContactPhone": "555-555-5555",
    "Certifications": [
      {
        "Type": 1,
        "Name": "NCAA Certified"
      }
    ]
  }
}


<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Event>
    <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>
    <Archive>false</Archive>
    <Assets>
      <Asset>
        <DateCreated>8/18/2017 7:44 PM</DateCreated>
        <DateModified>8/18/2017 7:44 PM</DateModified>
        <Description>Super Pools</Description>
        <Id>1145</Id>
        <Name>Pools</Name>
        <Url>http://baseball.exposureevents.com/assets/documents/1145.xls</Url>
      </Asset>
    </Assets>
    <Certifications>
      <Certification>
        <Name>NCAA Certified</Name>
        <Type>NCAACertified</Type>
      </Certification>
    </Certifications>
    <ContactEmail>noreply@exposureevents.com</ContactEmail>
    <ContactName>Bob Smith</ContactName>
    <ContactPhone>555-555-5555</ContactPhone>
    <Divisions>
      <Division>
        <Description>This is an open division.</Description>
        <Gender>1</Gender>
        <Id>120</Id>
        <Name>17</Name>
        <Order>1</Order>
      </Division>
    </Divisions>
    <EndDate>8/18/2017</EndDate>
    <Gender>1</Gender>
    <Id>30</Id>
    <Image></Image>
    <Name>Exposure Baseball Events</Name>
    <Organization>
      <Id>1</Id>
      <Name>Exposure Baseball Events</Name>
      <Website>http://baseball.exposureevents.com</Website>
    </Organization>
    <ParentId>1</ParentId>
    <Prices>
      <Price>
        <Amount>200</Amount>
        <Description>Early bird special</Description>
        <Id>35</Id>
        <Name>Tournament Fee</Name>
        <Type>1</Type>
      </Price>
    </Prices>
    <Reports>
      <Report>
        <DateModified>8/18/2017 7:44 PM</DateModified>
        <Description>Event participating teams.</Description>
        <Name>Teams</Name>
        <Type>3</Type>
        <Url>http://baseball.exposureevents.com/events/teams?eventid=30</Url>
      </Report>
    </Reports>
    <Settings>
      <EnableRegistration>false</EnableRegistration>
      <RegistrationEndDate>8/18/2017</RegistrationEndDate>
      <RegistrationEndTime>7:44 PM</RegistrationEndTime>
      <RegistrationStartDate>8/18/2017</RegistrationStartDate>
      <RegistrationStartTime>7:44 PM</RegistrationStartTime>
      <RegistrationStatus>1</RegistrationStatus>
      <RosterLimit>12</RosterLimit>
      <ScheduleAvailabilityDate>8/18/2017</ScheduleAvailabilityDate>
      <ScheduleAvailabilityTime>7:44 PM</ScheduleAvailabilityTime>
      <ShowBrackets>true</ShowBrackets>
      <ShowPools>true</ShowPools>
      <ShowSchedule>true</ShowSchedule>
      <ShowTeams>false</ShowTeams>
    </Settings>
    <StartDate>8/18/2017</StartDate>
    <TimeZone>Mountain Standard Time</TimeZone>
    <Venues>
      <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>
        <Courts>
          <Court>
            <Abbr>MN</Abbr>
            <Name>Main</Name>
          </Court>
        </Courts>
        <Id>68</Id>
        <Name>Exposure High School</Name>
      </Venue>
    </Venues>
  </Event>
</Response>

Events

Retrieves a paged list of active events including additional data related to the event.

Endpoint

GET http://baseball.exposureevents.com/api/v1/events

Parameters

Name Type Default Required Description
page integer 1
pagesize integer 50
parentid integer The parent id of the event.
organizationid integer The organization id of the event.
archive boolean
includes enumeration Additional data to be included in the response. Values should be separated by commas.

Response


{
  "Events": {
    "Results": [
      {
        "Id": 30,
        "ParentId": 1,
        "Gender": 1,
        "Name": "Exposure Baseball Events",
        "Organization": {
          "Id": 1,
          "Name": "Exposure Baseball Events",
          "Website": "http://baseball.exposureevents.com"
        },
        "Archive": false,
        "Image": "",
        "StartDate": "8/18/2017",
        "TimeZone": "Mountain Standard Time",
        "EndDate": "8/18/2017",
        "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
        },
        "Divisions": [
          {
            "Id": 120,
            "Name": "17",
            "Description": "This is an open division.",
            "Gender": 1,
            "Order": 1
          }
        ],
        "Assets": [
          {
            "Id": 1145,
            "Name": "Pools",
            "Description": "Super Pools",
            "Url": "http://baseball.exposureevents.com/assets/documents/1145.xls",
            "DateModified": "8/18/2017 7:44 PM",
            "DateCreated": "8/18/2017 7:44 PM"
          }
        ],
        "Reports": [
          {
            "Name": "Teams",
            "Description": "Event participating teams.",
            "Url": "http://baseball.exposureevents.com/events/teams?eventid=30",
            "Type": 3,
            "DateModified": "8/18/2017 7:44 PM"
          }
        ],
        "Venues": [
          {
            "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
            },
            "Courts": [
              {
                "Name": "Main",
                "Abbr": "MN"
              }
            ]
          }
        ],
        "Prices": [
          {
            "Id": 35,
            "Type": 1,
            "Name": "Tournament Fee",
            "Amount": 200.0,
            "Description": "Early bird special"
          }
        ],
        "Settings": {
          "EnableRegistration": false,
          "RosterLimit": 12,
          "RegistrationStatus": 1,
          "RegistrationStartDate": "8/18/2017",
          "RegistrationEndDate": "8/18/2017",
          "RegistrationStartTime": "7:44 PM",
          "RegistrationEndTime": "7:44 PM",
          "ScheduleAvailabilityDate": "8/18/2017",
          "ScheduleAvailabilityTime": "7:44 PM",
          "ShowSchedule": true,
          "ShowPools": true,
          "ShowBrackets": true,
          "ShowTeams": false
        },
        "ContactName": "Bob Smith",
        "ContactEmail": "noreply@exposureevents.com",
        "ContactPhone": "555-555-5555",
        "Certifications": [
          {
            "Type": 1,
            "Name": "NCAA Certified"
          }
        ]
      }
    ],
    "Page": 1,
    "PageSize": 50,
    "Total": 1
  }
}


<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Events>
    <Page>1</Page>
    <PageSize>50</PageSize>
    <Results>
      <Event>
        <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>
        <Archive>false</Archive>
        <Assets>
          <Asset>
            <DateCreated>8/18/2017 7:44 PM</DateCreated>
            <DateModified>8/18/2017 7:44 PM</DateModified>
            <Description>Super Pools</Description>
            <Id>1145</Id>
            <Name>Pools</Name>
            <Url>http://baseball.exposureevents.com/assets/documents/1145.xls</Url>
          </Asset>
        </Assets>
        <Certifications>
          <Certification>
            <Name>NCAA Certified</Name>
            <Type>NCAACertified</Type>
          </Certification>
        </Certifications>
        <ContactEmail>noreply@exposureevents.com</ContactEmail>
        <ContactName>Bob Smith</ContactName>
        <ContactPhone>555-555-5555</ContactPhone>
        <Divisions>
          <Division>
            <Description>This is an open division.</Description>
            <Gender>1</Gender>
            <Id>120</Id>
            <Name>17</Name>
            <Order>1</Order>
          </Division>
        </Divisions>
        <EndDate>8/18/2017</EndDate>
        <Gender>1</Gender>
        <Id>30</Id>
        <Image></Image>
        <Name>Exposure Baseball Events</Name>
        <Organization>
          <Id>1</Id>
          <Name>Exposure Baseball Events</Name>
          <Website>http://baseball.exposureevents.com</Website>
        </Organization>
        <ParentId>1</ParentId>
        <Prices>
          <Price>
            <Amount>200</Amount>
            <Description>Early bird special</Description>
            <Id>35</Id>
            <Name>Tournament Fee</Name>
            <Type>1</Type>
          </Price>
        </Prices>
        <Reports>
          <Report>
            <DateModified>8/18/2017 7:44 PM</DateModified>
            <Description>Event participating teams.</Description>
            <Name>Teams</Name>
            <Type>3</Type>
            <Url>http://baseball.exposureevents.com/events/teams?eventid=30</Url>
          </Report>
        </Reports>
        <Settings>
          <EnableRegistration>false</EnableRegistration>
          <RegistrationEndDate>8/18/2017</RegistrationEndDate>
          <RegistrationEndTime>7:44 PM</RegistrationEndTime>
          <RegistrationStartDate>8/18/2017</RegistrationStartDate>
          <RegistrationStartTime>7:44 PM</RegistrationStartTime>
          <RegistrationStatus>1</RegistrationStatus>
          <RosterLimit>12</RosterLimit>
          <ScheduleAvailabilityDate>8/18/2017</ScheduleAvailabilityDate>
          <ScheduleAvailabilityTime>7:44 PM</ScheduleAvailabilityTime>
          <ShowBrackets>true</ShowBrackets>
          <ShowPools>true</ShowPools>
          <ShowSchedule>true</ShowSchedule>
          <ShowTeams>false</ShowTeams>
        </Settings>
        <StartDate>8/18/2017</StartDate>
        <TimeZone>Mountain Standard Time</TimeZone>
        <Venues>
          <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>
            <Courts>
              <Court>
                <Abbr>MN</Abbr>
                <Name>Main</Name>
              </Court>
            </Courts>
            <Id>68</Id>
            <Name>Exposure High School</Name>
          </Venue>
        </Venues>
      </Event>
    </Results>
    <Total>1</Total>
    <Totals i:nil="true" />
  </Events>
</Response>

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