Uptime MonitoringGet uptime history
Uptime Monitoring

Get uptime history

Retrieve uptime history with response times, status changes, and availability percentage over a given period.

curl -X GET "https://api.mythic-analytics.com/api/v1/links/example_string/uptime/history?period=24h" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "success": true,
  "data": {
    "link_id": "lnk_9xP3qLmN",
    "availability_percent": 99.85,
    "avg_response_time_ms": 230,
    "checks": [
      {
        "timestamp": "2024-12-25T10:00:00Z",
        "status": "up",
        "response_time_ms": 42
      }
    ],
    "incidents": [
      {
        "started_at": "2024-12-25T10:00:00Z",
        "recovered_at": "2024-12-25T10:00:00Z",
        "duration_seconds": 42
      }
    ]
  }
}
GET
/links/{id}/uptime/history
GET
Security Scheme
Bearer Tokenstring
Required

Admin API key as bearer token. Format: Bearer YOUR_ADMIN_KEY

Admin API key as bearer token. Format: Bearer YOUR_ADMIN_KEY
path
idstring
Required

Short link identifier.

query
periodstring

Time period for history. Default: 7d.

Options: 24h, 7d, 30d, 90d
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Admin API key as bearer token. Format: Bearer YOUR_ADMIN_KEY

Path Parameters

idstring
Required

Short link identifier.

Query Parameters

periodstring

Time period for history. Default: 7d.

Allowed values:24h7d30d90d

Responses

successboolean
dataobject