---
title: "Retrieve statistics of one component"
method: GET
path: "/components/{id}"
tags: ["dashboard"]
---

# Retrieve statistics of one component

`GET /components/{id}`

This will return a JSON object showing individual component statistics across the designated time period.

## Path parameters

- `id` string, required

## Query parameters

- `from` string
- `until` string
- `timeframe` string

## Response `200`

An object containing a list of component stat objects

- object
  - `data` ComponentData[]
    - `componentId` string
    - `componentName` string
    - `status` 'active' | 'inactive' | 'starting' | 'stopping'
    - `statusChangedAt` string
    - `usage` string[]
    - `errorCount` number
    - `bucketStartAt` string
  - `meta` Meta
    - `page` integer — Current page (1-based numbering)
    - `perPage` integer — Number of objects per page
    - `total` integer — Total number of objects
    - `totalPages` integer — Total number of pages

## Other responses

- `500` — Something went wrong

## Changes

- **2022-07-20** `0b81d657d141` — 1 info
  - added the media type `application/json` for the response with the status `200`
- **2022-07-20** `1b61d2ef773b` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/openintegrationhub/apis/analytics-service/changes/components/:id/get.md)

---

[API](https://skmtc.dev/openintegrationhub/apis/analytics-service.md) · [All operations](https://skmtc.dev/openintegrationhub/apis/analytics-service/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openintegrationhub/analytics-service/revisions/0b81d657d141/schema)
