---
title: "Calculate the value for a specific metric for a defined period up to certain date"
method: GET
path: "/metrics/{metric_name}/{time_period}"
tags: ["metrics"]
---

# Calculate the value for a specific metric for a defined period up to certain date

`GET /metrics/{metric_name}/{time_period}`

## Path parameters

- `metric_name` string, required
- `time_period` 'daily' | 'weekly', required — 'weekly' for nutrition reports, 'daily' for daily reports

## Query parameters

- `end_date` string, required — end date for metric calculations in format YYYY-MM-DD

## Response `200`

successful operation

- integer

---

[API](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server.md) · [All operations](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/llms.txt) · [OpenAPI document](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/revisions/081a2697c0f1?raw)
