---
title: "Get the List of cpus used by the peers"
method: GET
path: "/api/peers/cpus"
tags: ["peer"]
---

# Get the List of cpus used by the peers

`GET /api/peers/cpus`

This function is an API endpoint that retrieves the count of cpus used by the peers. It is tagged with "peer" for OpenAPI documentation.

## Parameters

## Returns

If successful, this function returns a `Json<Vec<CpuCount>>` object, which includes the total number of cpus used by the peers.  <br>

## Response `200`

- CpuCount[]
  - `cpu` string, required
  - `total` integer, required

## Other responses

- `404`

## Changes

- **2024-06-12** `ea74f2e6ab39` — 1 info
  - endpoint added
- **2024-05-19** `fafd43b82c78` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/nesaku/apis/sctgdesk-api-server/changes/api/peers/cpus/get.md)

---

[API](https://skmtc.dev/nesaku/apis/sctgdesk-api-server.md) · [All operations](https://skmtc.dev/nesaku/apis/sctgdesk-api-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nesaku/sctgdesk-api-server/revisions/b1c0e7a4434f/schema)
