Assets

List historical locations for a given asset

<n class="warning"> <nh> <i class="fa fa-exclamation-circle"></i> This endpoint is still on our legacy API. </nh> </n>

List historical locations for a given asset.

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

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>

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.

get/v1/fleet/assets/{assetId}/locations

Request

  • Base URL
    https://api.samsara.com
  • Auth
    HTTP bearer

Path parameters

assetIdinteger required

Samsara asset ID.

Query parameters

startMsinteger

Timestamp in milliseconds representing the start of the period to fetch, inclusive. Used in combination with endMs.

endMsinteger

Timestamp in milliseconds representing the end of the period to fetch, inclusive. Used in combination with startMs.

Response

OK response.

Example response

{
  "locations": [
    {
      "latitude": 37,
      "location": "525 York, San Francisco, CA",
      "longitude": -122.7,
      "speedMilesPerHour": 35,
      "time": 12314151
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.