Skip to content

Station Statistics

Retrieve statistics for stations.

Endpoint

INFO

GET /api/v1/dashboard/stations-stats

Headers

HeaderValueRequired
Acceptapplication/jsonYes
AuthorizationBearer {token}Yes

Query Parameters

ParameterTypeDefaultDescription
agency_idinteger-Filter by agency
periodstringmonthPeriod: day, week, month, year

Example Request

bash
curl -X GET "https://api.daakey.com/api/v1/dashboard/stations-stats" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {token}"

Response

Success (200)

json
{
  "success": true,
  "message": "Station statistics retrieved",
  "data": {
    "summary": {
      "total_stations": 5,
      "active_stations": 4,
      "total_vehicles": 50,
      "average_vehicles_per_station": 10
    },
    "top_stations": [
      {
        "id": 1,
        "name": "Downtown Station",
        "bookings_count": 150,
        "utilization_rate": 82.5,
        "revenue": 25000.00
      },
      {
        "id": 2,
        "name": "Airport Station",
        "bookings_count": 280,
        "utilization_rate": 88.3,
        "revenue": 45000.00
      }
    ],
    "by_amenity": {
      "charging": 3,
      "24h_access": 2,
      "restroom": 5
    },
    "currency": "USD"
  },
  "request_id": "uuid",
  "timestamp": "2024-01-01T00:00:00.000Z"
}

Daakey Car Sharing Platform