Skip to content

Access Data Programmatically

There is a way of programmatic access to data using Applied Programming Interfaces (APIs).

Automatic documentation (provided by ReDoc)

https://citizenscience.gcoos.org/openapi/v1/redoc

Independently downloading and unzipping data each time may not be efficient and does not explicitly tie your data to your analysis. You can automate the data download process using Python or R.

Redoc

We currently provide a simply API to access your data in JSON format.

For example, when you use python, the following code will download entire dataset of Nature's Academy.

1
2
import pandas as pd
data = pd.read_json("https://citizenscience.gcoos.org/openapi/v1/natures_academy/data")

Interactive API documentation (provided by Swagger UI)

Docs

https://citizenscience.gcoos.org/openapi/v1/docs/

If you want to give it try, you can test it through this page.