---
title: "Get most recent stats for all equipment"
method: GET
path: "/fleet/equipment/stats"
tags: ["Equipment"]
---

# Get most recent stats for all equipment

`GET /fleet/equipment/stats`

## Request

- Base URL: `https://api.samsara.com`
- URL: `https://api.samsara.com/fleet/equipment/stats`
- Auth: HTTP bearer

Returns the last known stats for all equipment. This can be optionally filtered by tags or specific equipment IDs. 

 <b>Rate limit:</b> 150 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>). 

 **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.

To use this endpoint, select **Read Equipment Statistics** under the Equipment category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>

## Query parameters

- `after` string
- `parentTagIds` string[]
- `tagIds` string[]
- `equipmentIds` string[]
- `types` string[], required

## Response `200`

The most recent equipment stats and pagination information

- EquipmentStatsResponse: The most recent equipment stats and pagination information
  - `data` EquipmentStatsResponseData[], required: List of the most recent stats for the specified units of equipment and stat types.
    - `engineRpm` EquipmentEngineRpm: Engine RPM reading.
      - `time` string, required: UTC timestamp of the time the data point was generated by the equipment, in RFC3339 format.
      - `value` integer, required: The revolutions per minute of the engine.
    - `engineSeconds` EquipmentEngineSeconds: [DEPRECATED] Please use either `gatewayEngineSeconds` or `obdEngineSeconds`.
      - `time` string, required: UTC timestamp of the time the data point was generated by the equipment, in RFC3339 format.
      - `value` integer, required: An approximation of the number of seconds the engine has been running since it was new, based on the amount of time the AG26 device is receiving power and an offset provided manually through the Samsara cloud dashboard.
    - `engineState` EquipmentEngineState: [DEPRECATED] Please use either `gatewayEngineStates` or `obdEngineStates`.
      - `time` string, required: UTC timestamp of the time the data point was generated by the equipment, in RFC3339 format.
      - `value` 'Off' | 'On', required: An approximation of engine state based on readings the AG26 receives from the aux/digio cable. Valid values: `Off`, `On`.
    - `engineTotalIdleTimeMinutes` EquipmentEngineTotalIdleTimeMinutes: A time-series of engine total idle time minutes. (Beta)
      - `time` string, required: UTC timestamp of the time the data point was generated by the equipment, in RFC3339 format.
      - `value` integer, required: Total time in minutes that the engine has been idling since the device was installed. This value is calculated based on the time the engine has been running while the vehicle is not in motion.
    - `fuelPercent` EquipmentFuelPercent: Fuel percent reading.
      - `time` string, required: UTC timestamp of the time the data point was generated by the equipment, in RFC3339 format.
      - `value` integer, required: The percent of fuel in the unit of equipment.
    - `gatewayEngineSeconds` EquipmentGatewayEngineSeconds: Engine seconds reading from the aux/digio cable.
      - `time` string, required: UTC timestamp of the time the data point was generated by the equipment, in RFC3339 format.
      - `value` integer, required: The number of seconds an engine has been running as detected via engine state. Used in combination with an offset provided manually through the Samsara cloud dashboard. Useful for when assets do not report engine hours over the J1939 network. The Engine Speed SPN must be available from the ECU for this parameter to properly calculate seconds. This is supported with the following hardware configurations: AG24/AG26 + AOPEN/A9PIN/ACT9/ACT14.
    - `gatewayEngineState` EquipmentGatewayEngineState: Engine state reading from the aux/digio cable.
      - `time` string, required: UTC timestamp of the time the data point was generated by the equipment, in RFC3339 format.
      - `value` 'Off' | 'On', required: An approximation of engine state based on readings the AG26 receives from the aux/digio cable. Valid values: `Off`, `On`.
    - `gps` EquipmentStatsGps: GPS location of equipment.
      - `address` AddressTinyResponse: Address book entry, if one exists
        - `id` string: Address book identifier
        - `name` string: Name of this address book entry
      - `headingDegrees` number, double: Heading of the asset in degrees.
      - `latitude` number, double, required: GPS latitude represented in degrees
      - `longitude` number, double, required: GPS longitude represented in degrees
      - `reverseGeo` ReverseGeo: Reverse geocoded information.
        - `formattedLocation` string: Formatted address of the reverse geocoding data.
      - `speedMilesPerHour` number, double: GPS speed of the asset in miles per hour.
      - `time` string, required: UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.
    - `gpsOdometerMeters` EquipmentGpsOdometerMeters: GPS odometer reading.
      - `time` string, required: UTC timestamp of the time the data point was generated by the equipment, in RFC3339 format.
      - `value` integer, required: An approximation of odometer reading based on GPS calculations since the AG26 was activated, and a manual odometer offset provided in the Samsara cloud dashboard.
    - `id` string, required: Unique Samsara ID for the equipment.
    - `name` string, required: Name of the equipment.
    - `obdEngineSeconds` EquipmentObdEngineSeconds: Engine seconds reading from on-board diagnostics.
      - `time` string, required: UTC timestamp of the time the data point was generated by the equipment, in RFC3339 format.
      - `value` integer, required: The number of seconds the engine has been running as reported directly from on-board diagnostics. This is supported with the following hardware configurations: AG24/AG26 + AOPEN/A9PIN/ACT9/ACT14
    - `obdEngineState` EquipmentObdEngineState: Engine state reading from on-board diagnostics.
      - `time` string, required: UTC timestamp of the time the data point was generated by the equipment, in RFC3339 format.
      - `value` 'Off' | 'On' | 'Idle', required: The state of the engine read from on-board diagnostics. Valid values: `Off`, `On`, `Idle`.
  - `pagination` PaginationResponse, required: Pagination parameters.
    - `endCursor` string, string, required: Cursor identifier representing the last element in the response. This value should be used in conjunction with a subsequent request's 'after' query parameter. This may be an empty string if there are no more pages left to view.
    - `hasNextPage` boolean, required: True if there are more pages of results immediately available after this endCursor.

## Other responses

- `default`: Error response

---

[API](https://skmtc.dev/samsara/apis/samsara-api.md) - [All operations](https://skmtc.dev/samsara/apis/samsara-api/llms.txt) - [OpenAPI document](https://skmtc.dev/samsara/apis/samsara-api/revisions/a9e35d4999be?raw)
