You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 60 Next »

As of January 2020 GLTG has 32,122,836 datapoints. 

WARNING Please don't fetch all of them at once.

Step 1: Create an Account 

Step 2: Acquire Data from API by using CURL

You can acquire the data from API by using curl command

Get all Sensors in JSON format

Currently, pulling sensors does not require authentication.

InputsOutput typeOutput Example


Output JSON example
{ "sensors":[

         { "id":1445,
         "geometry":{ "type":"Point",
                                 "coordinates":[ -84.44799549,38.9203417,0]
         "properties":{ "name":"03254520",
                                 "huc":{ "huc8":{ "code":"05100101"},
                                              "huc2":{"code":"05" },
           "location":"LICKING RIVER AT HWY 536 NEAR ALEXANDRIA, KY",
               "title":"United States Geological Survey",





Get all Sensors
curl -X GET --compressed


  • url
  • email
  • password
X-Auth-TokenUse the token for fetching datapoints

curl -X POST -H 'Content-Type: application/json' -d '{"password": "****", "identifier": "email"}' --compressed -i

Get all Datapoints for Single Sensor

We request that a user not try to pull all datapoints concurrently.  It is preferred that datapoints be pulled in series by sensor id.

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

    { "id":96556536,

      "geometry":{          "type":"Point",
         "coordinates":[ -90.645,42.5408333,0 ]

Get Datapoints for Single Sensor
curl -X GET -H 'Content-Encoding: application/json' -H 'x-auth-token:token' --compressed ''

  • No labels