Driveosplatform catalogue

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.

FieldTypeRequiredDescription
fromdate—First day (YYYY-MM-DD), default 29 days before to
todate—Last day (YYYY-MM-DD), default today in the company zone
bash
# 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"
json200 — niz i zbroj (skraćeno)
{
  "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

FieldMeans
ridesAll rides booked that day, in any status
completedRides in COMPLETED status
cancelledRides in CANCELLED or NO_SHOW status
revenueThe sum of final prices of completed rides; tips are not included
averageFareRevenue divided by completed rides; 0 when none completed
CodeStatusWhen
errors.invalidDate400The date is not in YYYY-MM-DD form
errors.invalidDateRange400from is after to
errors.statsRangeTooLong400The range is longer than 92 days
Light themeDark theme
The same data in the company console: revenue by day, service type and payment method.