---
description: Show statistics of your websocket usage
---

# Usage Statistics

GET `/ws-api/stats`&#x20;

{% hint style="info" %}
This endpoint does not cost credits
{% endhint %}

```json
{
    "success": true,
    "websocket_stats": {
        "period_days": 7,
        "daily_stats": [
            {
                "date": "2025-06-12T00:00:00.000Z",
                "total_connections": 5,
                "unique_sessions": 5,
                "avg_duration_seconds": 3437.253585
            },
            {
                "date": "2025-06-11T00:00:00.000Z",
                "total_connections": 30,
                "unique_sessions": 30,
                "avg_duration_seconds": 1057.8719520333334
            },
            {
                "date": "2025-06-10T00:00:00.000Z",
                "total_connections": 29,
                "unique_sessions": 29,
                "avg_duration_seconds": 1679.803089137931
            },
            {
                "date": "2025-06-08T00:00:00.000Z",
                "total_connections": 4,
                "unique_sessions": 4,
                "avg_duration_seconds": 6372.495568
            },
            {
                "date": "2025-06-07T00:00:00.000Z",
                "total_connections": 1,
                "unique_sessions": 1,
                "avg_duration_seconds": 36508.35451
            },
            {
                "date": "2025-06-06T00:00:00.000Z",
                "total_connections": 5,
                "unique_sessions": 5,
                "avg_duration_seconds": 8937.016898
            },
            {
                "date": "2025-06-05T00:00:00.000Z",
                "total_connections": 57,
                "unique_sessions": 57,
                "avg_duration_seconds": 352.2598242631579
            }
        ],
        "stream_subscriptions": [
            {
                "stream_name": "kol-feed",
                "subscription_count": 18
            },
            {
                "stream_name": "fresh-wallet-feed",
                "subscription_count": 15
            },
            {
                "stream_name": "tokens-graduating",
                "subscription_count": 10
            },
            {
                "stream_name": "pumpfun-amm-swaps",
                "subscription_count": 9
            },
            {
                "stream_name": "tokens-graduated",
                "subscription_count": 4
            },
            {
                "stream_name": "tokens-launched",
                "subscription_count": 4
            },
            {
                "stream_name": "wallet-transactions",
                "subscription_count": 3
            },
            {
                "stream_name": "jupiter-amm-swaps",
                "subscription_count": 2
            },
            {
                "stream_name": "token-changes",
                "subscription_count": 2
            },
            {
                "stream_name": "token-holders",
                "subscription_count": 2
            },
            {
                "stream_name": "token-transactions",
                "subscription_count": 2
            },
            {
                "stream_name": "jupiter-dca-orders",
                "subscription_count": 2
            },
            {
                "stream_name": "price-updates",
                "subscription_count": 2
            },
            {
                "stream_name": "pool-changes",
                "subscription_count": 2
            },
            {
                "stream_name": "token-metadata",
                "subscription_count": 1
            }
        ],
        "summary": {
            "total_connections": 131,
            "total_unique_sessions": 131,
            "most_popular_stream": "kol-feed"
        }
    }
}
```
