Explore documentation

Get a monitor's availability summary

Returns availability summary for a specific monitor.

GET https://uptime.betterstack.com/api/v2/monitors/{monitor_id}/sla

URL parameters

monitor_id
required string

Query parameters

from
string
to
string

Headers

Authorization
required string
200

Response body

{
  "data": {
    "id": "258338",
    "type": "monitor_sla",
    "attributes": {
      "availability": 99.98,
      "total_downtime": 600,
      "number_of_incidents": 3,
      "longest_incident": 300,
      "average_incident": 200
    }
  }
}
400

Response body

{
  "errors": "The data range is invalid. The date format could not be parsed, the start time is in the future, or the end time is after the start time."
}

Example cURL

Example
curl --request GET \
  --url https://uptime.betterstack.com/api/v2/monitors/123456789/sla?from=2021-01-26&to=2021-01-27 \
  --header "Authorization: Bearer $TOKEN"