Get a space's analytics
Returns traffic analytics for one space over a bounded time window.
/v1/spaces/{spaceId}/analyticsAuthorizationBearer token · headerrequiredSpace key (sfc_…) for an unclaimed anonymous Space. Also the fragment of its claim URL and the token of its /__/<key> door. A publish without a credential returns it in claim with the claim link. With the key, getSpace extends the Space's expiry window, getSpaceVersion follows its publish, createSpaceOpenLink returns its reusable open link, and restoreSpace undoes a deleteSpace while the claim window remains open.
AuthorizationBearer token · headerrequiredBetter Auth session, OAuth access token, OAuth client-credentials token, or sfm_ Space machine credential.
spaceIdstringrequiredwindowstringAnalytics summary window. Defaults to "7d".
48h7d30dResponse for status 200
$schemastring<uri>Canonical JSON Schema URL for this response body. The server also sends it in the Link: rel="describedby" response header.
dataobjectrequiredShow propertiesHide properties
spaceIdstringrequiredThe space id the traffic was aggregated for.
windowstringrequiredResolved summary window.
48h7d30dsincestringrequiredWindow start (ISO 8601).
untilstringrequiredWindow end (ISO 8601).
granularitystringrequiredSeries bucket size: hourly for the 48h window, daily otherwise.
hourlydailyviewsnumberrequiredSuccessful non-crawler requests (status < 400, assets included) over the window.
bandwidthBytesnumberrequiredTotal response bytes in the window.
visitorsByDayobject[]requiredDaily unique-visitor estimates. Daily is the provider's finest uniques resolution, and uniques are never summed across days.
Show propertiesHide properties
objectdatestringrequiredUTC day (ISO 8601).
visitorsnumberrequiredtopPathsobject[]requiredMost-viewed paths, capped at 10.
Show propertiesHide properties
objectpathstringrequiredviewsnumberrequiredtopHostsobject[]requiredMost-viewed hostnames, capped at 10.
Show propertiesHide properties
objecthoststringrequiredviewsnumberrequiredseriesobject[]requiredTime series across the window.
Show propertiesHide properties
objectbucketstringrequiredBucket start (ISO 8601).
requestsnumberrequiredviewsnumberrequiredbandwidthBytesnumberrequiredProblem details (RFC 9457). Any 4xx/5xx response is one application/problem+json document.
$schemastring<uri>Canonical JSON Schema URL for this response body. The server also sends it in the Link: rel="describedby" response header.
typestringrequiredProblem type URI resolving to the error docs page. The server derives it mechanically from code against the docs origin.
titlestringrequiredShort human-readable summary of the problem type. The server derives it mechanically from code.
statusintegerrequiredHTTP status code of this response, repeated in the body.
detailstringrequiredHuman-readable failure explanation for this occurrence.
codestringrequiredStable snake_case error code naming the failed public contract.
pointerstringRFC 6901 JSON Pointer into the failing request field, for example "/files/37/path", on validation failures.
detailsobjectMachine-readable context for the error code.
fixstringOne sentence on what to do about this error code, the same text as the type page. Read it before retrying.
suggestionsstring[]Actionable recovery steps safe to show in dashboards, SDKs, and CLI output.
nextstring[]Copy-pasteable commands or API requests an agent can run next.
requestIdstringrequiredThe request id to quote when contacting support.