Public API

Our service provides public API, using which you can fetch the school calendar in JSON format.

GET /api/v1/schools/:school_id/activities

School ID is possible to fetch from the school home page URL.

Endpoint accepts following GET params:

  • From: date (yyyy-mm-dd. Default: today)
  • To: date (yyyy-mm-dd)
  • Type: 'home', 'away', 'all'. Default: 'all'
  • Game types: [ 'regular_season', 'district', 'scrimmage', 'non_district', 'post_season', 'event', 'practice' ]
  • Page (default: 1)
  • Per (N of records per page. Default: 25)

Response body:

{
  "data": [
      {
          "id": 1111111,
          "type_name": "Event",
          "start_time": "3:00 PM",
          "end_time": "4:30 PM",
          "date": "Oct 10, 2017",
          "link": "https://schedulegalaxy.com/schools/1/events/1111111",
          "title": "Parent meeting",
          "location": "Big Gym"
      },
      {
          "id": 1111112,
          "type_name": "Practice",
          "start_time": "3:30 PM",
          "end_time": "5:30 PM",
          "date": "Oct 12, 2017",
          "link": "https://schedulegalaxy.com/schools/1/teams/1/practices/1111111",
          "title": "(G) 7/8TH Cheerleading - Practice (3:30 PM)",
          "location": "Big Gym"
      },
  ],
  "pagination": {
      "pages": 1,
      "total": 2,
      "offset": 0,
      "page": 1,
      "per": 25
  }
}