Get stats
curl --request GET \
--url https://judged.systems/api/stats \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://judged.systems/api/stats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://judged.systems/api/stats"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"evaluationsToday": 123,
"byStatus": {
"accept": 123,
"review": 123,
"reject": 123
},
"avgLatencyMs": 123,
"tokens": {
"input": 123,
"output": 123
},
"recentRuns": [
{
"id": "<string>",
"status": "accept",
"packId": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"recentWebhookFailures": [
{
"id": "<string>",
"evaluationId": "<string>",
"lastStatusCode": 123,
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"reviewsToLabel": 123,
"webhookFailureCount": 123,
"daily": [
{
"date": "<string>",
"accept": 123,
"review": 123
}
]
}{
"error": "<string>",
"issues": [
{}
]
}Stats
Get stats
Requires judgments:read.
GET
/
api
/
stats
Get stats
curl --request GET \
--url https://judged.systems/api/stats \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://judged.systems/api/stats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://judged.systems/api/stats"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"evaluationsToday": 123,
"byStatus": {
"accept": 123,
"review": 123,
"reject": 123
},
"avgLatencyMs": 123,
"tokens": {
"input": 123,
"output": 123
},
"recentRuns": [
{
"id": "<string>",
"status": "accept",
"packId": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"recentWebhookFailures": [
{
"id": "<string>",
"evaluationId": "<string>",
"lastStatusCode": 123,
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"reviewsToLabel": 123,
"webhookFailureCount": 123,
"daily": [
{
"date": "<string>",
"accept": 123,
"review": 123
}
]
}{
"error": "<string>",
"issues": [
{}
]
}Response
Counts for the overview screen.