Skip to Content
API ReferenceCheck History

Check History

Retrieve the execution history for a specific check.

Endpoint

GET /v1/public/checks/{id}/history

Path Parameters

ParameterTypeDescription
idstringThe unique check identifier

Query Parameters

ParameterTypeDefaultDescription
limitinteger25Number of results per page (1-100)
pageinteger1Page number for offset pagination
cursorstring-Cursor for cursor-based pagination
fromstring (ISO 8601)-Start date filter
tostring (ISO 8601)-End date filter
statusstring-Filter by status: up, down, error
qstring-Search query (searches error messages and response content)
includeTotalbooleanfalseInclude total count in response

Response

{ "data": [ { "id": "hist_001", "checkId": "abc123", "status": "up", "statusCode": 200, "responseTime": 245, "region": "us-central", "timing": { "dns": 12, "connect": 25, "tls": 45, "ttfb": 150, "total": 245 }, "error": null, "createdAt": "2025-01-15T14:30:00Z" }, { "id": "hist_002", "checkId": "abc123", "status": "down", "statusCode": 503, "responseTime": null, "region": "us-central", "timing": null, "error": "Service Unavailable", "createdAt": "2025-01-15T14:25:00Z" } ], "meta": { "page": 1, "limit": 25, "total": 1440, "cursor": "next_cursor_value" } }

Date Filtering

Filter history by date range using ISO 8601 format:

curl -H "X-Api-Key: ek_live_..." \ "https://us-central1-exit1-dev.cloudfunctions.net/publicApi/v1/public/checks/abc123/history?from=2025-01-01T00:00:00Z&to=2025-01-31T23:59:59Z"

Code Examples

cURL

curl -H "X-Api-Key: ek_live_your_key_here" \ "https://us-central1-exit1-dev.cloudfunctions.net/publicApi/v1/public/checks/abc123/history?limit=50&status=down"

JavaScript

const params = new URLSearchParams({ limit: "50", from: "2025-01-01T00:00:00Z", to: "2025-01-31T23:59:59Z", }); const response = await fetch( `https://us-central1-exit1-dev.cloudfunctions.net/publicApi/v1/public/checks/abc123/history?${params}`, { headers: { "X-Api-Key": "ek_live_your_key_here", }, } ); const history = await response.json(); console.log(history.data);

Python

import requests response = requests.get( "https://us-central1-exit1-dev.cloudfunctions.net/publicApi/v1/public/checks/abc123/history", headers={"X-Api-Key": "ek_live_your_key_here"}, params={ "limit": 50, "from": "2025-01-01T00:00:00Z", "to": "2025-01-31T23:59:59Z", "status": "down" } ) history = response.json() print(history["data"])
Last updated on