---
title: "# Device Stats"
method: GET
path: "/v2/mitigation/devices/{DeviceId}"
tags: ["Mitigation"]
---

# # Device Stats

`GET /v2/mitigation/devices/{DeviceId}`

Returns statistics for a specific mitigation device including Blocked Count, Not Blocked Count,
Total Count, and Score.

This endpoint works together with GET /v2/mitigation/devices to replace the deprecated
V1 endpoint. First retrieve the device list, then use this endpoint to get stats for
each device as needed.

Example workflow:**

1. Call GET /v2/mitigation/devices to get the list of devices

2. Call GET /v2/mitigation/devices/{DeviceId} to get stats for a specific device

## Path parameters

- `DeviceId` integer, required

## Response `200`

DeviceStatsByIdSwagger

- object
  - `blocked_count` integer
  - `device_id` integer
  - `not_blocked_count` integer
  - `score` integer
  - `total_count` integer

## Other responses

- `422` — validationErrorSwagger is represents the erroneous cases
- `default` — genericErrorSwagger is represents the erroneous cases

---

[API](https://skmtc.net/picussecurity/apis/picus-rest-api.md) · [All operations](https://skmtc.net/picussecurity/apis/picus-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/picussecurity/picus-rest-api/versions/cb0d02ee28f8/schema)
