Authorization
bearerAuth AuthorizationBearer <token>
API key authentication. Get your API key from the WatchAPI Cloud dashboard.
In: header
Query Parameters
days?number
Default
7Range
1 <= value <= 365Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://watchapi.dev/api/trpc/monitoring.getAnalytics"{
"current": {
"totalChecks": 0,
"successfulChecks": 0,
"failedChecks": 0,
"errorRate": 0,
"uptimePercentage": 0,
"avgResponseTime": 0
},
"previous": {
"totalChecks": 0,
"successfulChecks": 0,
"failedChecks": 0,
"errorRate": 0,
"uptimePercentage": 0,
"avgResponseTime": 0
},
"changes": {
"totalChecks": 0,
"avgResponseTime": 0,
"errorRate": 0,
"uptimePercentage": 0
}
}{
"code": "BAD_REQUEST",
"message": "Invalid input data",
"issues": []
}{
"code": "UNAUTHORIZED",
"message": "Authorization not provided",
"issues": []
}{
"code": "FORBIDDEN",
"message": "Insufficient access",
"issues": []
}{
"code": "NOT_FOUND",
"message": "Not found",
"issues": []
}{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}