Get Asset
curl --request GET \
--url https://api.sewagedata.co.uk/api/asset/{asset_id}import requests
url = "https://api.sewagedata.co.uk/api/asset/{asset_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.sewagedata.co.uk/api/asset/{asset_id}', 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}",
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}"
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}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sewagedata.co.uk/api/asset/{asset_id}")
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",
"company": "Example Water Ltd",
"receiving_watercourse": "River Thames",
"latitude": 51.5074,
"longitude": -0.1278,
"status": 1,
"latest_event_start": "2026-04-24T22:46:00Z",
"latest_event_end": "2026-04-25T01:00:00Z",
"polled_at": "2026-04-25T06:00:00Z",
"nearest_bathing_water_name": "Southend-on-Sea",
"nearest_bathing_water_id": "GB123456",
"nearest_bathing_water_classification": "Excellent",
"nearest_bathing_water_distance": 4230
}
Get Asset
Returns detailed information about a specific asset.
GET
/
api
/
asset
/
{asset_id}
Get Asset
curl --request GET \
--url https://api.sewagedata.co.uk/api/asset/{asset_id}import requests
url = "https://api.sewagedata.co.uk/api/asset/{asset_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.sewagedata.co.uk/api/asset/{asset_id}', 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}",
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}"
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}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sewagedata.co.uk/api/asset/{asset_id}")
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",
"company": "Example Water Ltd",
"receiving_watercourse": "River Thames",
"latitude": 51.5074,
"longitude": -0.1278,
"status": 1,
"latest_event_start": "2026-04-24T22:46:00Z",
"latest_event_end": "2026-04-25T01:00:00Z",
"polled_at": "2026-04-25T06:00:00Z",
"nearest_bathing_water_name": "Southend-on-Sea",
"nearest_bathing_water_id": "GB123456",
"nearest_bathing_water_classification": "Excellent",
"nearest_bathing_water_distance": 4230
}
Path Parameters
string
required
The unique asset identifier.
Response
string
Unique asset identifier.
string
Name of the company that owns the asset.
string
The watercourse the asset discharges into.
number
Asset latitude.
number
Asset longitude.
number
Current discharge status. One of
-1 (offline), 0 (not discharging), or 1 (discharging).string (ISO 8601)
Start time of the most recent discharge event. Example:
2026-04-24T22:46:00Z.string (ISO 8601)
End time of the most recent discharge event.
string (ISO 8601)
Timestamp of the last data update.
string | null
EA name of the nearest bathing water.
null if no bathing water is within 10 miles.string | null
EA identifier for the nearest bathing water.
null if no bathing water is within 10 miles.string | null
EA water quality classification for the nearest bathing water.
null if no bathing water is within 10 miles.number | null
Distance to the nearest bathing water in metres.
null if no bathing water is within 10 miles.Bathing water fields are only populated when the nearest bathing water is within 10 miles of the asset. They return
null otherwise.{
"asset_id": "ABC123",
"company": "Example Water Ltd",
"receiving_watercourse": "River Thames",
"latitude": 51.5074,
"longitude": -0.1278,
"status": 1,
"latest_event_start": "2026-04-24T22:46:00Z",
"latest_event_end": "2026-04-25T01:00:00Z",
"polled_at": "2026-04-25T06:00:00Z",
"nearest_bathing_water_name": "Southend-on-Sea",
"nearest_bathing_water_id": "GB123456",
"nearest_bathing_water_classification": "Excellent",
"nearest_bathing_water_distance": 4230
}
Was this page helpful?