Log in to your Spark Uptime account, click API, and then click Enable API to obtain your API key.
API responses return JSON by default. Pass output=xml to request XML instead.
Base usage
Each endpoint accepts required and optional query parameters. Unless otherwise specified, timestamps are returned as ISO 8601 UTC datetime values.
Required parameter
key — Your Spark Uptime API key.
Optional output format
output — Use json by default or xml for XML responses.
Account details
Returns account details for the authenticated user.
Required parameters
| Parameter | Type | Description |
|---|---|---|
| key | string | Your API key. |
Optional parameters
| Parameter | Type | Description |
|---|---|---|
| output | string | json default, or xml. |
Expected response
- status text, for example active
- account object
- account.email text
- account.limit integer
- account.up integer
- account.down integer
- account.paused integer
- account.uptime text, for example 99.99%
API health check
Health-check endpoint that returns a success response with the current UTC datetime.
Required parameters
| Parameter | Type | Description |
|---|---|---|
| key | string | Your API key. |
Optional parameters
| Parameter | Type | Description |
|---|---|---|
| output | string | json default, or xml. |
Expected response
- success boolean, true
- date text, ISO 8601 UTC datetime
List monitors
Lists monitored targets for the authenticated user.
Required parameters
| Parameter | Type | Description |
|---|---|---|
| key | string | Your API key. |
Optional parameters
| Parameter | Type | Description |
|---|---|---|
| output | string | json default, or xml. |
Expected response
Object with a monitors array. Each monitor includes:
- id integer
- check_type text, for example ping, https, http, keyword, or port
- status text, online, down, or paused
- nickname text
- domain_name text
- uptime text, for example 99.99%
- last_responsetime number
- last_date text, ISO 8601 UTC datetime
- last_location text, abbreviated, for example nyc
- last_status text, online or down
- created_date text, ISO 8601 UTC datetime
Monitor detail
Returns detailed information for a single monitored target.
Required parameters
| Parameter | Type | Description |
|---|---|---|
| key | string | Your API key. |
| id | integer | The monitor’s unique identifier. |
Optional parameters
| Parameter | Type | Description |
|---|---|---|
| output | string | json default, or xml. |
Expected response
Object with detail containing:
- id integer
- check_type text
- status text, online, down, or paused
- nickname text
- domain_name text
- uptime text
- last_responsetime number
- last_date text, ISO 8601 UTC datetime
- last_location text, abbreviated, for example nyc
- last_status text, online or down
- created_date text, ISO 8601 UTC datetime