List historic wildfire events
GET
https://dev.breeze-technologies.de/api/v3/wildfires/events/historic
Retrieves wildfire event measurements recorded within the specified date range for all the sensors that your account has access to.
Should the start date not be specified, the default will be set to one year prior from the current date. In the absence of an end date, the default is set to the current day.
- cURL
- Python
- Javascript
GET /api/v3/wildfires/events/historic
curl -X GET \
'https://dev.breeze-technologies.de/api/v3/wildfires/events/historic' \
-d api_token=<YOUR_API_TOKEN> \
-d start=2023-12-28T12%3A14%3A46 \
-d end=2023-12-29T12%3A14%3A46
GET /api/v3/wildfires/events/historic
import requests
url = "https://dev.breeze-technologies.de/api/v3/wildfires/events/historic"
params = {
"api_token": "<YOUR_API_TOKEN>",
"start": "2023-12-28T12:14:46",
"end": "2023-12-29T12:14:46"
}
response = requests.request("GET", url, params=params)
print(response.text)
GET /api/v3/wildfires/events/historic
const axios = require("axios");
let config = {
method: "get",
maxBodyLength: Infinity,
url: "https://dev.breeze-technologies.de/api/v3/wildfires/events/historic",
params: {
api_token: "<YOUR_API_TOKEN>",
start: "2023-12-28T12:14:46",
end: "2023-12-29T12:14:46",
},
};
axios
.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
Parameters
| Name | Description | Type | Data type | |
|---|---|---|---|---|
| api_token | The current user's API token | query | string | Required |
| start | The beginning of the time range in ISO 8601 format (e.g. 2023-12-28T12:14:46) | query | string | |
| end | The end of the time range in ISO 8601 format (e.g. 2024-02-06T15:15:43) | query | string |
Returns
A dictionary with a results property that contains an array of wildfire events.
{
"results": [
{
"id": 289,
"start": "2023-05-12T16:30:00.000Z",
"end": "2023-05-31T13:20:00.000Z",
"location_id": null,
"is_correct": 0,
"notes": "note"
},
{
"id": 682,
"start": "2022-07-14T08:45:00.000Z",
"end": "2022-07-14T08:45:00.000Z",
"location_id": null,
"is_correct": null,
"notes": null
}
]
}