---
title: "Get packet statistics"
method: GET
path: "/api/v1/admin/stats/packets"
tags: ["Admin", "Statistics"]
---

# Get packet statistics

`GET /api/v1/admin/stats/packets`

Get packet statistics grouped by source and destination IP addresses.
Returns the number of packets and total bytes routed for each unique source IP
and each unique destination IP separately.

## Response `200`

Success

- PacketStatistics — Packet statistics grouped by source and destination IP
  - `bySource` PacketStatEntry[] — Statistics per source IP address
    - `ip` string, ipv6 — The IP address
    - `packetCount` integer — Number of packets routed
    - `byteCount` integer — Total bytes routed
  - `byDestination` PacketStatEntry[] — Statistics per destination IP address
    - `ip` string, ipv6 — The IP address
    - `packetCount` integer — Number of packets routed
    - `byteCount` integer — Total bytes routed

---

[API](https://skmtc.net/threefoldtech/apis/mycelium-management.md) · [All operations](https://skmtc.net/threefoldtech/apis/mycelium-management/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/threefoldtech/mycelium-management/versions/65042c1a7b84/schema)
