---
title: "Get number of requests by status code"
method: GET
path: "/stats/{socket_id}/bandwidth"
---

# Get number of requests by status code

`GET /stats/{socket_id}/bandwidth`

## Request

- Base URL: `https://api.border0.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.border0.com/stats/{socket_id}/bandwidth`
- Auth: API key in header `Authorization`

## Path parameters

- `socket_id` string, required

## Query parameters

- `start_time` integer
- `end_time` integer
- `direction` string

## Response `200`

OK

- StatsResult
  - `data` StatsData
    - `result` unknown
    - `resultType` string
  - `status` string

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/border0/apis/border0-api.md) - [All operations](https://skmtc.dev/border0/apis/border0-api/llms.txt) - [OpenAPI document](https://skmtc.dev/border0/apis/border0-api/revisions/f0ccef7418d8?raw)
