---
title: "Get bandwidth usage breakdown by traffic source"
method: GET
path: "/metrics/bandwidth-sources"
tags: ["Metrics"]
---

# Get bandwidth usage breakdown by traffic source

`GET /metrics/bandwidth-sources`

Get bandwidth usage for one or more resources broken down by traffic source (HTTP, WebSocket, NAT, PrivateLink).

Returns hourly data points with traffic source breakdown. Traffic source data is available from March 9, 2025 onwards.
Queries for earlier dates will return a 400 Bad Request error.

## Response `200`

A successful response with traffic source breakdown

- object
  - `data` object[]
    - `labels` object
      - `resource` string
      - `trafficSource` 'total' | 'http' | 'websocket' | 'nat' | 'privatelink'
    - `values` object[]
      - `timestamp` integer
      - `value` number

## Other responses

- `400` — Bad request - invalid date range
- `500` — An unexpected server error has occurred.

---

[API](https://skmtc.dev/render/apis/render-public-api.md) · [All operations](https://skmtc.dev/render/apis/render-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/render/render-public-api/revisions/80e0ff74d033/schema)
