Get Asset Events
curl --request GET \
--url https://api.sewagedata.co.uk/api/asset/{asset_id}/eventsimport requests
url = "https://api.sewagedata.co.uk/api/asset/{asset_id}/events"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.sewagedata.co.uk/api/asset/{asset_id}/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sewagedata.co.uk/api/asset/{asset_id}/events",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sewagedata.co.uk/api/asset/{asset_id}/events"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sewagedata.co.uk/api/asset/{asset_id}/events")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sewagedata.co.uk/api/asset/{asset_id}/events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"asset_id": "ABC123",
"event_start": "2026-04-24T22:46:00Z",
"event_end": "2026-04-25T01:00:00Z",
"duration_minutes": 134
}
]
Get Asset Events
Returns a list of all discharge events for a specific asset.
GET
/
api
/
asset
/
{asset_id}
/
events
Get Asset Events
curl --request GET \
--url https://api.sewagedata.co.uk/api/asset/{asset_id}/eventsimport requests
url = "https://api.sewagedata.co.uk/api/asset/{asset_id}/events"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.sewagedata.co.uk/api/asset/{asset_id}/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sewagedata.co.uk/api/asset/{asset_id}/events",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sewagedata.co.uk/api/asset/{asset_id}/events"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sewagedata.co.uk/api/asset/{asset_id}/events")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sewagedata.co.uk/api/asset/{asset_id}/events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"asset_id": "ABC123",
"event_start": "2026-04-24T22:46:00Z",
"event_end": "2026-04-25T01:00:00Z",
"duration_minutes": 134
}
]
Path Parameters
string
required
The unique asset identifier.
Response
Returns an array of event objects.string
The asset identifier this event belongs to.
string (ISO 8601)
Start time of the discharge event. Example:
2026-04-24T22:46:00Z.string (ISO 8601)
End time of the discharge event.
number
Duration of the event in minutes.
[
{
"asset_id": "ABC123",
"event_start": "2026-04-24T22:46:00Z",
"event_end": "2026-04-25T01:00:00Z",
"duration_minutes": 134
}
]
Was this page helpful?
⌘I