---
title: "Count Peers per platform"
method: GET
path: "/api/peers/count/{platform}"
tags: ["peer"]
---

# Count Peers per platform

`GET /api/peers/count/{platform}`

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

## Parameters

- `platform`: The platform to filter the peers by (windows, macos, linux, android or all). <br>

## Returns

If successful, this function returns a `Json<PeersCountResponse>` object, which includes the total number of peers for the specified platform.  <br>

## Path parameters

- `platform` string, required

## Response `200`

- PeersCountResponse
  - `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/count/:platform/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)
