Uptime data
GET
/monitors/{id}/uptime
Authentication
Bearer Token (hu_api_key)
Path Parameters
id
string
required
path
Query Parameters
period
string
optional
query
Responses
200
Daily uptime data
No response body
curl -X GET 'https://happyuptime.com/api/v1/monitors/string/uptime' \ -H 'Authorization: Bearer YOUR_API_TOKEN'
const response = await fetch('https://happyuptime.com/api/v1/monitors/string/uptime', { method: 'GET', headers: { "Authorization": "Bearer YOUR_API_TOKEN" }});const data = await response.json();console.log(data);
import requestsheaders = { 'Authorization': 'Bearer YOUR_API_TOKEN'}response = requests.get('https://happyuptime.com/api/v1/monitors/string/uptime', headers=headers)print(response.json())
API Playground
Try this endpoint
GET
/monitors/{id}/uptime