Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

InputsOutput TypeDetailsExample Return
  • token
  • sensor_id
  • since
JSONUse X-Auth-Token from authentication


Code Block
titleExample Output
collapsetrue
[    

    
Use the token for fetching datapoints

[    

   
{ "id":96556536,

      

      "created":"2019-09-27T20:45:42Z",

      

      "start_time":"2018-06-25T00:00:00Z",

      

      "end_time":"2018-06-25T00:00:00Z",

      

      "properties":{ 

         

         "nitrate-nitrite-inorganic-total-as-n-mgl":"4.16"


       },

      

      "type":"Feature",

      

      "geometry":{
          
          "type":"Point",

         

         "coordinates":[ -90.645,42.5408333,
0 
]


       },

      

      "stream_id":"28",

      

      "sensor_id":"22",

      

      "sensor_name":"IL_EPA_WQX-M-13"


   },


  ...


]



Code Block
titleGet Datapoints for Single Sensor
curl -X GET -H 'Content-Encoding: application/json' -H 'x-auth-token:token' --compressed 'https://greatlakestogulf.org/geostreams/api/datapoints?sensor_id=22&since=2018-06-01'


Using Python Requests


Using Python Library (pyGeotemporal)

...