---
title: "List current location for all assets"
method: GET
path: "/v1/fleet/assets/locations"
tags: ["Assets"]
---

# List current location for all assets

`GET /v1/fleet/assets/locations`

## Request

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

> 🚧 This endpoint is still on our legacy API.

Fetch current locations of all assets. 

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

- `startingAfter` string
- `endingBefore` string
- `limit` number

## Response `200`

List of assets and their current locations.

- InlineResponse2002
  - `assets` V1AssetCurrentLocationsResponse[]
    - `assetSerialNumber` string: Asset serial number
    - `cable` V1AssetCable: The cable connected to the asset
      - `assetType` string: Asset type
    - `engineHours` integer: Engine hours
    - `id` integer, required: Asset ID
    - `location` V1AssetCurrentLocation[]: Current location of an asset
      - `latitude` number: The latitude of the location in degrees.
      - `location` string: The best effort (street,city,state) for the latitude and longitude.
      - `longitude` number: The longitude of the location in degrees.
      - `speedMilesPerHour` number: The speed calculated from GPS that the asset was traveling at in miles per hour.
      - `timeMs` number: Time in Unix milliseconds since epoch when the asset was at the location.
    - `name` string: Asset name
  - `pagination` V1Pagination
    - `endCursor` string, required: Cursor identifier representing the last element in the response. This value should be used in conjunction with a subsequent request's 'startingAfter' query parameter.
    - `hasNextPage` boolean, required: True if there are more pages of results after this response.
    - `hasPrevPage` boolean, required: True if there are more pages of results before this response.
    - `startCursor` string, required: Cursor identifier representing the first element in the response. This value should be used in conjunction with a subsequent request's 'ending_before' query parameter.

## Other responses

- `default`: Unexpected error.

---

[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)
