This section is aimed towards more technical users.
EcoPlots API supports the discovery and download of survey-based ecological data. For this purpose, a series of endpoints are available to allow users to download subsets of data, organised in the following key concepts.
Table of Contents | ||||
---|---|---|---|---|
|
Data endpoints
Datasources
Datasources (highest level) → have projects/datasets (maybe), subsets of a datasource, sort of equivalent of each other. → sites (lowest level)
All information in EcoPlots belongs to one of multiple datasources. To retrieve more details about the available datasources in EcoPlots, you should use the /datasources
endpoint.
...
As any other endpoint from the Data category, a search query should be used in order to narrow the results. For example, a user may be only interested in sites that belong to a specific dataset, or sites within a specific geographic region across all datasets (see Search queries).
Sites
Request example:
Code Block |
---|
curl -X POST "https://ecoplots-test.tern.org.au/api/v1.0/sites?dformat=ndjson" -H "accept: */*" -H "Authorization: apikey-v1 your-api-key" -H "Content-Type: application/json" -d "{\"query\":{\"dataset\":[\"http://linked.data.gov.au/dataset/ausplots\"]}}" |
...