The Stats API allows you to retrieve performance metrics, response time data, check logs, and incident duration statistics for a specific monitor over a designated date range.
1. Show Monitor Stats
Retrieves statistical time-series data for a specific monitor based on the selected metric type and timeframe.
HTTP Request
HTTP
GET https://veyon.app/api/v1/stats/{monitor_id}
Request Headers
| Header | Type | Value | Required |
Authorization | String | Bearer {api_key} | Yes |
Accept | String | application/json | Yes |
Query Parameters
| Parameter | Type | Mode | Description |
name | String | Required | The metric type to query. • • • • |
from | String | Required | Starting date in Y-m-d format (e.g., 2026-07-01). |
to | String | Required | Ending date in Y-m-d format (e.g., 2026-07-23). |
sort | String | optional | Sort order for the returned time series. • • |
Request Example (cURL)
Bash
curl --location --request GET 'https://veyon.app/api/v1/stats/{monitor_id}?name={name}&from={from}&to={to}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'