---
title: "Trend aggregates (period/interval query params)"
method: GET
path: "/api/sustainability/projects/{projectId}/trends"
tags: ["Sustainability"]
---

# Trend aggregates (period/interval query params)

`GET /api/sustainability/projects/{projectId}/trends`

## Request

- Base URL: `http://localhost:5000`
- URL: `http://localhost:5000/api/sustainability/projects/{projectId}/trends`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/aplanka/apis/sustainable-construction-management-api/docs/api/sustainability/projects/:projectId/trends/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `projectId` string, required

## Response `200`

Success

- object

## Other responses

- `400`: Bad request / validation error
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found

---

[API](https://skmtc.dev/aplanka/apis/sustainable-construction-management-api.md) - [All operations](https://skmtc.dev/aplanka/apis/sustainable-construction-management-api/llms.txt) - [OpenAPI document](https://skmtc.dev/aplanka/apis/sustainable-construction-management-api/revisions/cb0775348c3b?raw)
