---
title: "Get trend data for sparkline charts"
method: GET
path: "/Metrics/trends"
tags: ["Metrics"]
---

# Get trend data for sparkline charts

`GET /Metrics/trends`

## Request

- Base URL: `https://api.clinicos.vet/backend/business`
- URL: `https://api.clinicos.vet/backend/business/Metrics/trends`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/docs/Metrics/trends/get.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `period` string

## Response `200`

OK

- BusinessMetricsResponseDtoOfTrendsDto
  - `success` boolean
  - `data` TrendsDto
    - `revenue` TrendPointDto[]
      - `label` string
      - `value` union
        - number, double
        - string, double
    - `appointments` TrendPointDto[]
      - `label` string
      - `value` union
        - number, double
        - string, double
  - `error` string, nullable
  - `message` string, nullable

## Other responses

- `500`: Internal Server Error

---

[API](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1.md) - [All operations](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/revisions/099cf36186e0?raw)
