Get job stats over time
curl --request GET \
--url http://localhost:8000/v1/stats/jobs \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:8000/v1/stats/jobs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:8000/v1/stats/jobs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8000",
CURLOPT_URL => "http://localhost:8000/v1/stats/jobs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:8000/v1/stats/jobs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8000/v1/stats/jobs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8000/v1/stats/jobs")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"avg_processing_time_seconds": 12.4,
"by_status": {
"completed": 32,
"failed": 2,
"pending": 0,
"processing": 0
},
"date": "2025-12-06",
"p95_processing_time_seconds": 28.7,
"total": 34
}
],
"group_by": "day",
"period": {
"end": "2025-12-07",
"start": "2025-11-07"
},
"totals": {
"avg_processing_time_seconds": 11.8,
"by_status": {
"completed": 148,
"failed": 5,
"pending": 2,
"processing": 1
},
"success_rate": 0.967,
"total": 156
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}stats
Get job stats over time
Get job processing statistics over time.
Returns job metrics grouped by day, week, or month. Includes status breakdown, processing times, and success rates.
GET
/
v1
/
stats
/
jobs
Get job stats over time
curl --request GET \
--url http://localhost:8000/v1/stats/jobs \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:8000/v1/stats/jobs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:8000/v1/stats/jobs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8000",
CURLOPT_URL => "http://localhost:8000/v1/stats/jobs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:8000/v1/stats/jobs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8000/v1/stats/jobs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8000/v1/stats/jobs")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"avg_processing_time_seconds": 12.4,
"by_status": {
"completed": 32,
"failed": 2,
"pending": 0,
"processing": 0
},
"date": "2025-12-06",
"p95_processing_time_seconds": 28.7,
"total": 34
}
],
"group_by": "day",
"period": {
"end": "2025-12-07",
"start": "2025-11-07"
},
"totals": {
"avg_processing_time_seconds": 11.8,
"by_status": {
"completed": 148,
"failed": 5,
"pending": 2,
"processing": 1
},
"success_rate": 0.967,
"total": 156
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
API Key authentication. Format: dk_test_ or dk_live_
Query Parameters
Time grouping interval
Available options:
day, week, month Start date (ISO 8601, default: 30 days ago)
End date (ISO 8601, default: today)
Filter by job status
Available options:
pending, processing, completed, failed Response
Job processing metrics and status breakdown over time
Response for job stats over time (GET /v1/stats/jobs).
Job processing metrics and status breakdown over time.
Time period covered
Show child attributes
Show child attributes
Example:
{
"end": "2025-12-07",
"start": "2025-11-07"
}
Grouping interval
Available options:
day, week, month Time series data points
Show child attributes
Show child attributes
Aggregated totals for the period
Show child attributes
Show child attributes
Example:
{
"avg_processing_time_seconds": 11.8,
"by_status": {
"completed": 148,
"failed": 5,
"pending": 2,
"processing": 1
},
"success_rate": 0.967,
"total": 156
}