Single Site

https://api.activeintime.com/v1/sites/[site_id].json

Will return information on a specific Site for a given Site ID.

Parameters
Parameter Required Example Description
site_idYes1The ID of a particular Site.
Response
Object Always present Description
idYesThe ID of the Site.
nameYesThe Name of the Site.
tldc_approvedYesWhether or not the Site has been validated by TLDC.
contactYesContact details for the Site.
facilitiesNoAn Array of Facility objects for the Site.
timetablesNoAn Array of Timetable objects for the Site.
Example
  
	{
  "meta": {
    "X-RateLimit-Limit": 0,
    "X-RateLimit-Remaining": 0,
    "status": 200,
    "api_client": "",
    "locale": "en-gb"
  },
  "response": {
    "id": 1,
    "name": "Test Leisure Centre",
    "tldc_approved": true,
    "timezone": null,
    "contact": {
      "address_line_1": "",
      "address_line_2": "",
      "post_code": "",
      "post_town": "London",
      "country": null,
      "telephone": null,
      "website": null,
      "latitude": "51.52",
      "longitude": "-0.094814",
      "twitter": "",
      "facebook": "",
      "swimmers_guide_id": null
    },
    "name_translations": {
      "native": "Zoom Leisure Centre",
      "western": "Zoom Leisure Centre",
      "en-gb": "Test Leisure Centre",
      "zh-cn-hans": "Zoom Leisure Centre",
      "fr": "Zoom Leisure Centre"
    },
    "facilities": [
      {
        "id": 147681,
        "length": null,
        "primary_name": "Studio 1",
        "facility_type": {
          "id": 54,
          "name": "Airfield"
        },
        "tldc_approved": true,
        "no_of_timetables": 1,
        "facility_name_aliases": [
          {
            "id": 146681,
            "name": "Studio 1",
            "is_primary": true
          }
        ]
      },
      {
        "id": 147691,
        "length": null,
        "primary_name": "Studio 2 ",
        "facility_type": {
          "id": 54,
          "name": "Airfield"
        },
        "tldc_approved": true,
        "no_of_timetables": 1,
        "facility_name_aliases": [
          {
            "id": 146691,
            "name": "Studio 2 ",
            "is_primary": true
          }
        ]
      },
      {
        "id": 147701,
        "length": null,
        "primary_name": "Main Pool",
        "facility_type": {
          "id": 54,
          "name": "Airfield"
        },
        "tldc_approved": true,
        "no_of_timetables": 2,
        "facility_name_aliases": [
          {
            "id": 146701,
            "name": "Main Pool",
            "is_primary": true
          }
        ]
      },
      {
        "id": 155681,
        "length": null,
        "primary_name": "Spin Studio",
        "facility_type": {
          "id": 64,
          "name": "BMX Track"
        },
        "tldc_approved": true,
        "no_of_timetables": 1,
        "facility_name_aliases": [
          {
            "id": 154851,
            "name": "Spin Studio",
            "is_primary": true
          }
        ]
      },
      {
        "id": 192112,
        "length": null,
        "primary_name": "Sports Hall",
        "facility_type": {
          "id": 79,
          "name": "Gymnastics Hall"
        },
        "tldc_approved": true,
        "no_of_timetables": 1,
        "facility_name_aliases": [
          {
            "id": 191643,
            "name": "Sports Hall",
            "is_primary": true
          }
        ]
      },
      {
        "id": 193682,
        "length": null,
        "primary_name": "Teaching Pool",
        "facility_type": {
          "id": 79,
          "name": "Gymnastics Hall"
        },
        "tldc_approved": true,
        "no_of_timetables": 1,
        "facility_name_aliases": [
          {
            "id": 193237,
            "name": "Teaching Pool",
            "is_primary": true
          }
        ]
      },
      {
        "id": 196989,
        "length": null,
        "primary_name": "Activity Room",
        "facility_type": {
          "id": 79,
          "name": "Gymnastics Hall"
        },
        "tldc_approved": true,
        "no_of_timetables": 1,
        "facility_name_aliases": [
          {
            "id": 196592,
            "name": "Activity Room",
            "is_primary": true
          }
        ]
      }
    ],
    "timetables": [
      {
        "id": 4851,
        "name": "Swimming Pool Timetable"
      }
    ],
    "management": {
      "id": 1,
      "name": "Blue Star Leisure Trust"
    }
  }
}