---
title: "Long-term Trend Analysis"
method: GET
path: "/api/trends"
tags: ["Analytics"]
---

# Long-term Trend Analysis

`GET /api/trends`

## Request

- Base URL: `https://api.fiber.ac` (the document declares no server; this is the origin it was published from)
- URL: `https://api.fiber.ac/api/trends`
- Auth: none declared

Analyze 30/60/90-day trends across four dimensions: daily risk score progression (from risk_daily), vendor reliability, speed-tier telemetry trends, and optical module aging — all served from pre-aggregated rollup tables (optical_daily_agg / risk_daily) so responses stay well under client timeouts. optical_daily_agg is maintained in real time by an incremental materialized view; risk_daily is refreshed by a host cron (scripts/refresh_rollups.sh, also the self-heal for the MV).

## Query parameters

- `days` integer
- `vendor` string, nullable
- `speed` string, nullable

## Response `200`

Multi-dimensional trend data with daily risk, vendor reliability, speed trends, and aging port analysis

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/fiber-ac/apis/fiber-api.md) · [All operations](https://skmtc.dev/fiber-ac/apis/fiber-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fiber-ac/apis/fiber-api/revisions/58267250d793?raw)
