Pool Water Temperature
Endpoint
URL: https://api.phlozone.info/api/WaterTest/Temperature
Method: GET
Description
This API endpoint retrieves the water temperature test data.
Request
Headers
Authorization: Basic AuthContent-Type:application/json
Response
Success Response
Status Code: 200 OK
[
{
"Id": "d665c151-b0fb-4244-9ab0-538f3dd9e979",
"BodyOfWater": "Canterbury 50m Pool",
"Temperature": 27.7,
"UpdateAt": "2023-07-15T02:24:43.5600000+10:00"
},
{
"Id": "de584c2e-f1f5-4f9b-91ff-e6e8036028c1",
"BodyOfWater": "Canterbury 15m Pool",
"Temperature": 32.0,
"UpdateAt": "2023-07-15T02:21:30.1330000+10:00"
},
{
"Id": "2119d5f0-6173-443f-aa81-839be9444f83",
"BodyOfWater": "Toddler Pool",
"Temperature": 26.0,
"UpdateAt": "2023-04-10T21:35:11.8930000+10:00"
}
]
Error Responses
400 Bad Request
{ "error": "Invalid date format. Use YYYY-MM-DD." }
401 Unauthorized
{ "error": "Unauthorized access. Please provide a valid token." }
404 Not Found
{ "error": "No temperature data found for the specified date and location." }
Example Usage
cURL
curl -X GET "https://api.phlozone.info/api/WaterTest/Temperature" \
-H "Authorization": "Basic " + btoa(API_KEY + ":" + API_SECRET) \
-H "Content-Type: application/json"
Notes
- Ensure that you provide a valid authentication token if required.
- The temperature is returned in Celsius by default.
- The API may have rate limits 60 calls in a minute; check with the provider for details.
For more information, contact support at support@phlozone.info.