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

# Get most recent locations for all equipment

`GET /fleet/equipment/locations`

## Request

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

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

 **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[]

## Response `200`

The most recent equipment locations and pagination information

- EquipmentLocationsResponse: The most recent equipment locations and pagination information
  - `data` EquipmentLocationsResponseData[], required: List of the most recent locations for the specified units of equipment.
    - `id` string, required: Unique Samsara ID for the equipment.
    - `location` EquipmentLocation, required: Location reading.
      - `heading` number, double: Heading of the unit of equipment in degrees.
      - `latitude` number, double, required: GPS latitude represented in degrees
      - `longitude` number, double, required: GPS longitude represented in degrees
      - `speed` number, double: GPS speed of the unit of equipment in miles per hour.
      - `time` string, required: UTC timestamp in RFC 3339 format. Example: `2020-01-27T07:06:25Z`.
    - `name` string, required: Name of the equipment.
  - `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)
