> For the complete documentation index, see [llms.txt](https://docs.cloudeka.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudeka.ai/cloudeka-api/deka-cdn/get-cdn-stats-aggregate.md).

# Get CDN stats (aggregate)

Retrieve aggregate statistics for a specific CDN instance

```json
{"openapi":"3.1.1","info":{"title":"Cloudeka AI - API Documentation","version":"1.0.0"},"tags":[{"name":"Deka CDN","description":"API endpoints for Deka CDN (base: /core/cdn)"}],"servers":[{"url":"https://ai.cloudeka.id/"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"description":"Type 'Bearer ' followed by your JWT token. Example: \"Bearer eyJhbGciOi...\"","type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"ai_cdn__cdn_use_case.StatDataName":{"type":"object","properties":{"hit_percentage":{"type":"number"},"hit_total":{"type":"integer"},"miss_total":{"type":"integer"},"request_total":{"type":"integer"},"server_name":{"type":"string"},"session_connection":{"type":"integer"}}}}},"paths":{"/core/cdn/v1/cdn/{id}/stats":{"get":{"description":"Retrieve aggregate statistics for a specific CDN instance","tags":["Deka CDN","CDN"],"summary":"Get CDN stats (aggregate)","parameters":[{"schema":{"type":"string"},"description":"CDN ID (UUID format)","name":"id","in":"path","required":true},{"schema":{"type":"string"},"description":"Relative window start. Accepts offsets like '1d', '2mo', '1y' or clock values 'SS', 'MM:SS', 'HH:MM:SS' counted back from now","name":"from","in":"query"},{"schema":{"type":"string"},"description":"IANA timezone (e.g., Asia/Jakarta); default Asia/Jakarta","name":"timezone","in":"query"},{"schema":{"type":"string"},"description":"Comma-separated metric names (client_req_count, client_hit_count, client_miss_count, default.conn)","name":"names","in":"query"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ai_cdn__cdn_use_case.StatDataName"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}}}}}}
```
