---
title: "Age distribution of patients"
method: GET
path: "/age-distribution"
tags: ["Cumulative data"]
---

# Age distribution of patients

`GET /age-distribution`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/covid-19-response-greece/apis/coronavirus-greece-api/docs/age-distribution/get.ts> (a function with typed inputs; its response is checked against the schema)

Get the age distribution of the patients reported in Greece

## Response `200`

Successful Response

- object
  - `age_distribution` object
    - `age_average` number
    - `average_death_age` number
    - `total_age_groups` object
      - `cases` object
        - `0-17` number
        - `18-39` number
        - `40-64` number
        - `65+` number
      - `critical` object
        - `0-17` number
        - `18-39` number
        - `40-64` number
        - `65+` number
      - `deaths` object
        - `0-17` number
        - `18-39` number
        - `40-64` number
        - `65+` number
      - `updated` string, date

## Changes

- **2020-10-05** `26e0bb7bdf1d`: 1 info
  - added the optional property `age_distribution/total_age_groups/updated` to the response with the `200` status
- **2020-04-22** `93185f328e2d`: 2 breaking
  - the `age_distribution/age_average` response's property type changed from `string` to `number` for status `200`
  - the `age_distribution/average_death_age` response's property type changed from `string` to `number` for status `200`
- **2020-04-21** `73dd976ced23`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/covid-19-response-greece/apis/coronavirus-greece-api/changes/age-distribution/get.md)

---

[API](https://skmtc.dev/covid-19-response-greece/apis/coronavirus-greece-api.md) - [All operations](https://skmtc.dev/covid-19-response-greece/apis/coronavirus-greece-api/llms.txt) - [OpenAPI document](https://skmtc.dev/covid-19-response-greece/apis/coronavirus-greece-api/revisions/62839485dbb2?raw)
