...
Please note that using this cURL request without any search parameters will results in a huge data download into the commandline. The below example cURL request example has used pagination to restrict the response to one page containing five results.
Request example:
Code Block |
---|
curl -X POST "https://ecoplots.tern.org.au/api/v1.0/observations?dformat=ndjson" -H "accept: */*" -H "X-Api-Key: aAbBcC...xXyYzZ" -H "Content-Type: application/json" -d "{\"page_num\":1,\"page_size\":5,\"query\":{}}" |
Response excerpt:
...
You can download observation attributes through the /observations/attributes
endpoint. A list of all the attributes that are available to be searched is available on TERN’s LinkedData Attributes page.
Please note that using this cURL request without any search parameters will results in a huge data download into the commandline. The below example cURL request example has used pagination to restrict the response to one page containing five results.
Request example:
Code Block |
---|
curl -X POST "https://ecoplots.tern.org.au/api/v1.0/observations/attributes?dformat=ndjson" -H "accept: */*" -H "X-Api-Key: aAbBcC...xXyYzZ" -H "Content-Type: application/json" -d "{\"page_num\":1,\"page_size\":50,\"query\":{}}" |
Response excerpt:
...