Downloads
API & URL parameters
- You can download the data from https://api.2minlog.com/img
- A simple example of the URL is https://api.2minlog.com/img?filenameExtension=csv&datasetPublic=PUB-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Note that you do not need to be logged into the portal - you can also download the CSV file programmatically from your IoT device.
Parameters separated by &
filenameExtension=csv
- to save as CSV, not passing the argument to generate a graph. If the parameter is not equal to “csv”, it is passed to the graph generation function. If this parameter is missing, the file name is the Public string of the dataset.datasetPublic=PUB-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
- public dataset stringcsvFileName=my_filename
with special characters URL encoded, see, e.g. here.maxRecordsDownloads=2880
- default maximum number of records for downloads is 2880, as it corresponds to days back when logging every 60 seconds, andsecondsBack=172800
- default downloading records only newer than two days (2 days x 24 hours x 3600 seconds per hour). It downloads a minimum of two.
Downloaded data are calculated towards the hourly limit.