> ## Documentation Index
> Fetch the complete documentation index at: https://docs.4r.sa/llms.txt
> Use this file to discover all available pages before exploring further.

# Get URL Statistics

> Get aggregated statistics for all your URLs

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET https://snip.sa/api/urls/stats \
    -H "X-API-Key: your_api_key_here"
  ```

  ```javascript JavaScript theme={null}
  const response = await axios.get('https://snip.sa/api/urls/stats', {
    headers: {
      'X-API-Key': 'your_api_key_here'
    }
  });
  ```

  ```python Python theme={null}
  response = requests.get(
      'https://snip.sa/api/urls/stats',
      headers={'X-API-Key': 'your_api_key_here'}
  )
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "success": true,
    "totalLinks": 45,
    "totalClicks": 1250,
    "customDomains": 2,
    "accountAge": "3 months",
    "plan": "Professional",
    "data": {
      "stats": {
        "totalUrls": 45,
        "activeUrls": 42,
        "totalClicks": 1250,
        "topUrls": [
          {
            "_id": "507f1f77bcf86cd799439011",
            "title": "Popular Link",
            "originalUrl": "https://example.com/page",
            "shortCode": "abc123",
            "clickCount": 350,
            "createdAt": "2024-01-15T10:30:00.000Z"
          }
        ]
      }
    }
  }
  ```
</ResponseExample>
