---
title: "Get all the trends of a client for a tenant or a site for a given time range."
method: GET
path: "/network-services/v1/location-analytics/trends"
tags: ["Location Analytics"]
---

# Get all the trends of a client for a tenant or a site for a given time range.

`GET /network-services/v1/location-analytics/trends`

This API provides the trends of visitors and passerby for a tenant across all the sites or for a specific site within the given time range.

## Query parameters

- `start-at` string, const, required — Start time in epoch for the location analytics trends/insights.
- `end-at` string, const, required — End time in epoch for the location analytics trends/insights.
- `site-id` string, const

## Response `200`

Object containing the location analytics trends.

- LaTrendsResponseForAPI — Location Analytics Trends Response that contains the trends for Visitors and Passerby.
  - `id` string, const, required — Tenant ID or site ID.
  - `type` string, const, required — Type of the analytics.
  - `keys` string[] — List of the trends.
  - `samples` Samples[]
    - `data` number[], required — A list of values corresponding to the keys.
    - `timestamp` string, const, required — Timestamp in epoch corresponding to the data values.
  - `units` string[] — Units for the corresponding keys.

## Other responses

- `400` — Invalid input received.
- `401` — Unauthorized. Authentication credentials are required or invalid.
- `403` — Forbidden: Access is denied.
- `404` — Not Found error.
- `429` — Too Many Requests. The user has sent too many requests in a given amount of time.
- `500` — Internal Server Error. An unexpected error occurred on the server.

---

[API](https://skmtc.net/arubanetworks/apis/authorization.md) · [All operations](https://skmtc.net/arubanetworks/apis/authorization/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/arubanetworks/authorization/revisions/74c95058b11f/schema)
