---
title: "Get signal occurrence histogram"
method: GET
path: "/v1/projects/{projectSlug}/signals/{signalSlug}/trend"
tags: ["Signals"]
---

# Get signal occurrence histogram

`GET /v1/projects/{projectSlug}/signals/{signalSlug}/trend`

Returns the occurrence histogram for one signal over `[fromIso, toIso]`. The default range is the trailing 14 days. Buckets are 12-hour wide and UTC-aligned.

## Path parameters

- `projectSlug` string, required — Project slug (human-readable identifier)
- `signalSlug` string, required — Signal slug.

## Query parameters

- `fromIso` string, date-time — Lower bound (inclusive). Defaults to ~14 days before `toIso`.
- `toIso` string, date-time — Upper bound (inclusive). Defaults to now.

## Response `200`

Occurrence histogram

- SignalHistogram
  - `buckets` SignalHistogramBucket[], required — One entry per 12-hour UTC-aligned bucket in the requested range, including empty buckets (`count: 0`).
    - `bucket` string, required — ISO-8601 UTC timestamp of the bucket's start.
    - `count` integer, required — Number of occurrences within the bucket.

## Other responses

- `400` — Validation error
- `401` — Unauthorized
- `404` — Not found

---

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