The API provides access to the data so that it can be downloaded for analysis, or integrated into your database or app.
The API reference documentation can be found here:
https://online.cyanolakes.com/docs/
The API provides data in two formats: HTML and JSON.
Navigating
to the API web address will yield the HTML format. The JSON
format is obtained by appending ?format=json to a query.
Examples:
Return dates for a dam ID in json format: https://online.cyanolakes.com/api/dates/dam_id/?format=json
Return statistics using a dam_id and date in html format: https://online.cyanolakes.com/api/statistics/dam_id/date/
How to download data:
- Download the R scripts from Github
- Copy the R scripts to a folder on your computer
- Download and install R on your computer from https://www.r-project.org
- On first use run start.R
Rscript start.Rto install required packages and set up the library - Specify your username and password in credentials.R
- Run the scripts from the terminal using the Rscript command
- Check that the data has been downloaded to your working directory
To view the a description of all data available through the API,
refer to Data_Description.xlsx.
Refer to the CyanoLakes_API_Guide.pdf for more information.