> Markdown version of https://tuna.am/en/docs/api/tunnel-stats/. Documentation index: [llms.txt](https://tuna.am/en/llms.txt), full text in one file: [llms-full.txt](https://tuna.am/en/llms-full.txt). Any page is available as Markdown: append `.md` to its URL without the trailing slash.

# Tunnel statistics since connection

get`/v1/tunnels/{id}/stats`

Tunnel statistics since it connected: traffic, HTTP requests, and TCP connections. Nodes send data once a minute

## Request

### Authorization

* **Authorization**stringheaderrequired

  Key in the format `Bearer <API-key>`. Create a key on the [API keys](https://my.tuna.am/api_keys) page.

### Path Parameters

* **id** integer\<int64>required

### Response

200

application/json

* **bytes_in**integer\<int64>

  Bytes from visitors to the local service

  **Example:&#x20;**`10485760`

  **bytes_out**integer\<int64>

  Bytes from the local service to visitors

  **Example:&#x20;**`20971520`

  **requests**integer\<int64>

  HTTP requests

  **Example:&#x20;**`1500`

  **since**string\<date-time>

  Start of the stats period: when the tunnel connected

  **tcp_connections**integer\<int64>

  TCP connections

  **Example:&#x20;**`42`
