Skip to main content
GET
/
monitors
/
projects
/
{projectId}
/
uptime
Get uptime data for all monitors in a project
curl --request GET \
  --url https://api.example.com/monitors/projects/{projectId}/uptime \
  --header 'Authorization: Bearer <token>'
{
  "overall": [
    {
      "date": "<string>",
      "uptime": 123
    }
  ],
  "monitors": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

projectId
string
required

Query Parameters

startDate
string

Start date for uptime data (ISO format)

endDate
string

End date for uptime data (ISO format)

Response

200 - application/json

Return the uptime data.

overall
object[]
required

Overall uptime data across all monitors

monitors
object
required

Uptime data for individual monitors