Daily statistics
How many rides and how much revenue per day — for reports and comparisons, in the company’s time.
To talk about the business you need to know how many rides there were and how much was earned — per day. These figures are not for following one driver, but for the picture of a week or a month.
GET/api/v1/stats/daily
Daily series and totals. Scope stats. Without parameters it returns the last 30 days up to and including today.
| Field | Type | Required | Description |
|---|---|---|---|
from | date | — | First day (YYYY-MM-DD), default 29 days before to |
to | date | — | Last day (YYYY-MM-DD), default today in the company zone |
# zadnjih 30 dana
curl -s "https://driveos.eu/api/v1/stats/daily" -H "X-API-Key: $DEMO_TAXI_KEY"
# točan raspon, najviše 92 dana
curl -s "https://driveos.eu/api/v1/stats/daily?from=2026-10-01&to=2026-10-31" \
-H "X-API-Key: $DEMO_TAXI_KEY"
{
"from": "2026-11-01",
"to": "2026-11-17",
"timeZone": "Europe/Zagreb",
"currencyCode": "EUR",
"totals": {
"rides": 412,
"completed": 386,
"cancelled": 26,
"revenue": 5482.30,
"averageFare": 14.20
},
"days": [
{ "date": "2026-11-01", "rides": 21, "completed": 20, "cancelled": 1, "revenue": 288.40 },
{ "date": "2026-11-02", "rides": 26, "completed": 24, "cancelled": 2, "revenue": 351.10 },
{ "date": "2026-11-03", "rides": 0, "completed": 0, "cancelled": 0, "revenue": 0 }
]
}
Days without rides are not missingThe series always contains every day in the range, including zero days. That way a chart never skips a day and the totals always match the sum of the days.
What the numbers mean exactly
| Field | Means |
|---|---|
rides | All rides booked that day, in any status |
completed | Rides in COMPLETED status |
cancelled | Rides in CANCELLED or NO_SHOW status |
revenue | The sum of final prices of completed rides; tips are not included |
averageFare | Revenue divided by completed rides; 0 when none completed |
| Code | Status | When |
|---|---|---|
errors.invalidDate | 400 | The date is not in YYYY-MM-DD form |
errors.invalidDateRange | 400 | from is after to |
errors.statsRangeTooLong | 400 | The range is longer than 92 days |

