Skip to content

Sites

Get sites

  • URL: /api/v2/:region/sites

  • URL Parameters:

    • region which must be one of antarctica or greenland
  • Method: GET

  • Success Response:

    • Code: 200
    • Content example:
      {
        "items": {
          "type": "FeatureCollection",
          "features": [
            {
              "type": "Feature",
              "geometry": {
                "type": "Point",
                "coordinates": [
                  -51.35026,
                  65.65108000000001
                ]
              },
              "properties": {
                "site": "SIQAT1",
                "number_of_samples": 2
              }
            },
            {
              "type": "Feature",
              "geometry": {
                "type": "Point",
                "coordinates": [
                  -51.35028,
                  65.65101200000001
                ]
              },
              "properties": {
                "site": "SIQAT2",
                "number_of_samples": 5
              }
            }
          ]
        }
      }
      
      • Notes:
        • This returns a JSON object with the following properties:
          • items a GeoJSON FeatureCollection consisting of sites in the given region.
  • Usage Examples:

    • Using Python:

      • This example will fetch all sites from the antarctica region

        from urllib import request
        import json
        response = request.urlopen(f'https://iced-samples.apps.pgc.umn.edu/api/v2/antarctica/sites')
        if response.code == 200:
            payload = response.read()
            j = json.loads(payload)
            sites = j['items']