cbrdata API
Documentation for the cbrdata API developed at The University of Canberra
Last updated
Was this helpful?
Documentation for the cbrdata API developed at The University of Canberra
Last updated
Was this helpful?
The endpoints below are intended to provide data to clients and external developers. Please sign up via the Arboretum or Queanbeyan as a Developer to generate API keys. Please use the subdomain qprcapi instead of api to access data from the Queanbeyan-Palerang City Council Project. e.g. qprcapi.cbrdata.com
Public endpoints for soil moisture data management.
GET
https://api.cbrdata.com/api/nodedata/:from/:to
This endpoint allows authorised users to request soil moisture data records from available soil moisture nodes. Returns a JSON object.
from
integer
The lower date threshold as a Unix timestamp.
Can be overridden by the days
query parameter.
to
integer
The upper date threshold as a Unix timestamp.
nodeNum
string
Node/device number (as a string). A human-readable number assigned to a node. The number is usually determined based the order of deployment. Can be customized via the Management Portal.
forestId
string
Forest number (as a three character string) which uniquely identifies a forest/location.
E.g. 008, 100 etc.
Overrides the forest
parameter.
For the National Arboretum Canberra, the forest number is that of the actual forest based on the data provided by the arboretum. For other clients, an arbitrary number is used to specify a location.
days
number
Specifies the number of days from the upper date threshold to return the data for.
Overrides the lower date threshold if required.
E.g days=3
will return data for the last three days if the upper date threshold is the current time.
Note: A hard limit of 6000 records is in place for external requests.
limit
integer
Number used to specify or limit the number of requests/records returned.
This parameter is overridden if the days
parameter is present in the request.
org
string
The full name of client/organisation who owns or produces the requested data. E.g National Arboretum Canberra
or
Queanbeyan City Council
.
token
string
API key used to authorize the request. Can be generated from the dashboard under the API Settings tab within the Account menu. Please Note that API keys cannot be generated unless your account has been approved by an admin and once generated, will have API permissions based on your account's approved access level i.e. Developer, Client, Admin etc. For general API functionalities Developer level is sufficient. Network management functions require elevated accounts. Changes to your account's access level can be requested from the dashboard under the Account Setting tab within the Account menu.
userId
string
(Dashboard USE ONLY)
The requesting user's unique id generated during account registration to authorize the request.
The id is used to reference the requesting user and their API permission.
While not enforced, this parameter is reserved for dashboard use only. Users do not have access to their unique user id.
Use the token
parameter general requests.
forest
string
The full identifier for the forest/location, where the sensor node is located such as 'F008 Japanese Flowering Dogwood' or 'L010 Queen Elizabeth II Park' or 'Water Module (Queel El II Park)' .
The full forest identifier for soil nodes consist of values from the following the metadata fields in the given order:
forsest_num+" "+" "+forest_name
Can be used instead of the node parameter.
Can be customized via the Management Portal
Keep in mind that this value is subject to modification by the client or administrator via the network management portal. If it is modified, it will be displayed as such in the data dashboard. It is recommended that you update your existing requests accordingly.
node
string
The unique node/device identifier.
Used to query data collected by a particular sensor node irrespective of its previous or current location.
Overrides all other identifying parameters i.e. forest, forestId and nodeNum
.
GET
https://api.cbrdata.com/api/nodeinfo
Retrieves all available metadata on registered nodes/device. Data is grouped by the node's unique identifier. Retrieved metadata can be utilized to make requests on /nodedata Returns a JSON object.
userId
string
(Dashboard USE ONLY) The requesting user's unique id.
token
string
API key used to authorize the request.
org
string
The full name of client/organisation who owns or produces the requested data. E.g National Arboretum Canberra
or
Queanbeyan City Council
.
API endpoints for environmental data management.
GET
https://qprcapi.cbrdata.com/api/v2/nodedata/:from/:to
This endpoint allows authorised users to request environmental data records from available environmental monitoring nodes. Please refer to Sensor Data V1 for more details on query parameters if required. Returns a JSON object.
from
integer
The lower date threshold as Unix timestamp.
to
integer
The upper date threshold as Unix timestamp.
days
number
Specified the number of data from the upper threshold to return the data for. Overrides the lower data threshold if required. E.g. days=3 will return data from the last three days if the upper threshold is the current time. Note: A hard limit of 6000 record is in place for external records.
limit
integer
Number used to specify or limit the number of requests/records returned.
THis parameter is overridden if the days
parameter is present in the request.
userId
string
(Dashboard USE ONLY) The requesting user's unique id.
token
string
API key used to authorize the request.
node
string
The unique node/device identifier. Used to query the data collected by a particular sensor node.