---
title: "Get Driver Safety Count by Driver"
url: "https://developers.vzconnect.com/apis/driver-safety-api-v1/versions/771424fd-b505-49ca-8919-eba371384cba/operations/getDriverSafetyEventCounts"
---

> Full API specification: https://developers.vzconnect.com/apis/driver-safety-api-v1/versions/771424fd-b505-49ca-8919-eba371384cba.md

# Get Driver Safety Count by Driver

`GET` `/da/v1/driversafety/{drivernumber}/counts`

Operation ID: `getDriverSafetyEventCounts`

Retrieves a driver's summary safety report for a 24 hour period. This method does not provide precise details for all safety events recorded by the driver but a count of any that occurred for the day selected. The integration user provides a Driver Number and a requested date. Only the date part is used; the time of day is ignored.

## Path parameters

- `drivernumber` (string, required) - The Driver Number is associated with a driver record in REVEAL and is unique within an account.

## Query parameters

- `requesteddate` (string, date-time, required) - The date to query. Only the date part is used; the time of day is ignored.

## Responses

- `200` - Successfully retrieved safety event counts for the driver.
- `204` - No safety events found for the driver on the specified date.
- `400` - Bad request. The Authorization header is missing or malformed, or the requested date is in the future, older than one year, or outside the account's data plan.
- `401` - Unauthorized. The token is invalid or expired, or does not belong to an integration user.
- `404` - Driver not found with the specified driver number.
- `500` - Internal server error.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Driver Safety API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
paths:
  /da/v1/driversafety/{drivernumber}/counts:
    get:
      summary: Get Driver Safety Count by Driver
      description: Retrieves a driver's summary safety report for a 24 hour period.
        This method does not provide precise details for all safety events
        recorded by the driver but a count of any that occurred for the day
        selected. The integration user provides a Driver Number and a requested
        date. Only the date part is used; the time of day is ignored.
      operationId: getDriverSafetyEventCounts
      tags:
        - Driver Safety API
      x-kong-route-defaults:
        strip_path: false
        paths:
          - ~/da/v1/driversafety/[^/]+/counts/?$
      parameters:
        - name: drivernumber
          in: path
          required: true
          description: The Driver Number is associated with a driver record in REVEAL and
            is unique within an account.
          schema:
            type: string
            example: "111925"
        - name: requesteddate
          in: query
          required: true
          description: The date to query. Only the date part is used; the time of day is
            ignored.
          schema:
            type: string
            format: date-time
            example: 2017-05-23T00:00:00Z
      responses:
        "200":
          description: Successfully retrieved safety event counts for the driver.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SafetyCount"
              example:
                DriverNumber: "111925"
                IncidentDateTimeUtc: 2017-05-23T00:00:00
                VehicleIncidentCounts:
                  - SpeedIncidentCounts:
                      - SpeedUpperRange: 94
                        SpeedLowerRange: 80
                        IncidentCount: 2
                      - SpeedUpperRange: 99
                        SpeedLowerRange: 95
                        IncidentCount: 1
                      - SpeedUpperRange: 109
                        SpeedLowerRange: 100
                        IncidentCount: 9
                      - SpeedUpperRange: 144
                        SpeedLowerRange: 110
                        IncidentCount: 74
                      - SpeedLowerRange: 145
                        IncidentCount: 0
                    HardBrakeCount: 1
                    QuickStartCount: 0
                    HarshCorneringCount: 0
                    VehicleName: WO 1087
                    VehicleNumber: "1087"
        "204":
          description: No safety events found for the driver on the specified date.
          content:
            application/json: {}
        "400":
          description: Bad request. The Authorization header is missing or malformed, or
            the requested date is in the future, older than one year, or outside
            the account's data plan.
          content:
            application/json: {}
        "401":
          description: Unauthorized. The token is invalid or expired, or does not belong
            to an integration user.
          content:
            application/json: {}
        "404":
          description: Driver not found with the specified driver number.
          content:
            application/json: {}
        "500":
          description: Internal server error.
          content:
            application/json: {}
components:
  schemas:
    SafetyCount:
      type: object
      description: A driver's summary safety report for a 24 hour period.
      properties:
        DriverNumber:
          type: string
          description: Driver Number is the unique identifier for Drivers created within
            REVEAL.
          example: "111925"
        IncidentDateTimeUtc:
          type: string
          format: date-time
          description: The date and time in UTC for the queried period.
          example: 2017-05-23T00:00:00
        VehicleIncidentCounts:
          type: array
          description: Summary counts grouped per vehicle associated with the driver.
          items:
            $ref: "#/components/schemas/VehicleIncidentCount"
    VehicleIncidentCount:
      type: object
      description: Summary counts of safety incidents for a vehicle associated with
        the driver over the 24 hour period.
      properties:
        SpeedIncidentCounts:
          type: array
          description: The summary of high speeding incidents. There are 5 high speed
            threshold buckets that will be returned to the user.
          items:
            $ref: "#/components/schemas/SpeedIncidentCount"
        HardBrakeCount:
          type: integer
          description: The total number of hard brake incidents reported by the driver for
            the selected 24 hour period.
          example: 1
        QuickStartCount:
          type: integer
          description: The total number of quick start incidents reported by the driver
            for the selected 24 hour period.
          example: 0
        HarshCorneringCount:
          type: integer
          description: The total number of harsh cornering incidents reported by the
            driver for the selected 24 hour period.
          example: 0
        VehicleName:
          type: string
          description: The Vehicle Name within REVEAL for the vehicle that reported the
            incidents.
          example: WO 1087
        VehicleNumber:
          type: string
          nullable: true
          description: The Vehicle Number is an optional field in REVEAL. This field can
            be returned as NULL.
          example: "1087"
    SpeedIncidentCount:
      type: object
      description: "A high-speed threshold bucket and the count of incidents in it.
        All speed threshold values are a range in kilometers per hour and
        coincide with REVEAL features. Buckets: 94-80 kmph, 99-95 kmph, 109-100
        kmph, 144-110 kmph, and above 145 kmph."
      properties:
        SpeedUpperRange:
          type: integer
          description: The upper bound of the speed range (kmph) for this bucket. Not
            present for the highest bucket (speeds above 145 kmph).
          example: 94
        SpeedLowerRange:
          type: integer
          description: The lower bound of the speed range (kmph) for this bucket.
          example: 80
        IncidentCount:
          type: number
          description: The number of high speeding incidents that occurred for this bucket.
          example: 2
```
