---
raw: true
search:
  tags:
    - Activity
    - GET
seo:
  description: >-
    Returns traffic analytics for one space over a bounded time window.
    Reference for the GET /v1/spaces/{spaceId}/analytics endpoint in the
    Spacefast Partner API.
sidebar:
  label: Get a space's analytics
  badge: GET
title: Get a space's analytics
type: openapi-operation
---
Returns traffic analytics for one space over a bounded time window.

`GET /v1/spaces/{spaceId}/analytics`

**Responses**

- `200` — Response for status 200
- `default` — Problem details (RFC 9457). Any 4xx/5xx response is one \`application/problem+json\` document.

Response example, 200:

```json
{
  "$schema": "http://example.com",
  "data": {
    "spaceId": "string",
    "window": "48h",
    "since": "string",
    "until": "string",
    "granularity": "hourly",
    "views": 0,
    "bandwidthBytes": 0,
    "visitorsByDay": [
      {
        "date": "string",
        "visitors": 0
      }
    ],
    "topPaths": [
      {
        "path": "string",
        "views": 0
      }
    ],
    "topHosts": [
      {
        "host": "string",
        "views": 0
      }
    ],
    "series": [
      {
        "bucket": "string",
        "requests": 0,
        "views": 0,
        "bandwidthBytes": 0
      }
    ]
  }
}
```
