Skip to main content
GET
/
v1
/
checks
/
heartbeats
/
{checkId}
/
availability
Get heartbeat availability
curl --request GET \
  --url https://api.checklyhq.com/v1/checks/heartbeats/{checkId}/availability \
  --header 'Authorization: <api-key>'
{
  "successRatio": {
    "previousPeriod": 123,
    "currentPeriod": 123
  },
  "totalEntitiesCurrentPeriod": 123
}

Authorizations

Authorization
string
header
required

The Checkly Public API uses API keys to authenticate requests. You can get the API Key here. Your API key is like a password: keep it secure! Authentication to the API is performed using the Bearer auth method in the Authorization header and using the account ID. For example, set Authorization header while using cURL: curl -H "Authorization: Bearer [apiKey]" "X-Checkly-Account: [accountId]"

Headers

x-checkly-account
string

Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general

Path Parameters

checkId
string
required

Query Parameters

startTime
string<date>
default:2025-10-10T02:28:37.286Z
endTime
string<date>
default:2025-10-11T02:28:37.286Z

Response

Successful

successRatio
object
totalEntitiesCurrentPeriod
number
I