---
title: "List historical locations for a given asset"
method: GET
path: "/v1/fleet/assets/{asset_id}/locations"
tags: ["Assets"]
---

# List historical locations for a given asset

`GET /v1/fleet/assets/{asset_id}/locations`

## Request

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

> 🚧 This endpoint is still on our legacy API.

List historical locations for a given asset. 

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

## Path parameters

- `asset_id` integer, required

## Query parameters

- `startMs` integer, required
- `endMs` integer, required

## Response `200`

Asset location details.

- object[]: A list of historical asset locations.
  - `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.
  - `time` number: Time in Unix milliseconds since epoch when the asset was at the location.

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