---
title: "Retrieve alert-based delay data aggregated by line over a date range."
method: GET
path: "/api/linedelays"
tags: ["/api"]
---

# Retrieve alert-based delay data aggregated by line over a date range.

`GET /api/linedelays`

## Request body

- AlertDelaysByLineParams — Parameters for the `/api/linedelays` endpoint. Attributes: start_date: Start of date range (YYYY-MM-DD). end_date: End of date range (YYYY-MM-DD). line: Line identifier (e.g., `Red`, `Orange`, `Green-B`). agg: Aggregation level — `daily` or `weekly`. Defaults to `weekly`.
  - `start_date` union, required
    - string
    - string, date
  - `end_date` union, required
    - string
    - string, date
  - `line` string, required
  - `agg` string

## Response `200`

Success

- LineDelaysResponse — Response for `/api/linedelays` — alert-based delay data for a transit line. Attributes: data: Delay data, daily or weekly depending on the `agg` parameter.
  - `data` object, required

## Changes

> 3 revisions in range; 1 could not be searched.

- **2025-03-29** `4aea4f724666` — 1 warning
  - removed the request property `agg`

[Change history](https://skmtc.dev/transitmatters/apis/data-dashboard-api/changes/api/linedelays/get.md)

---

[API](https://skmtc.dev/transitmatters/apis/data-dashboard-api.md) · [All operations](https://skmtc.dev/transitmatters/apis/data-dashboard-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/transitmatters/data-dashboard-api/revisions/4bc220e599eb/schema)
