Skip to content

Returns a gap-filled time series of posts, optionally narrowed to one space with space_id.

Despite sitting under the spaces analytics group this charts posts, not spaces — the activity key in the response reads posts.

Endpoint

  • Method: GET

  • Path: /analytics/spaces/activity

  • Edition: PRO

  • Controller: SpacesReportsController@activity

  • Route source: fluent-community-pro/app/Http/Routes/api.php:86

  • Controller source: fluent-community-pro/app/Http/Controllers/SpacesReportsController.php

  • Requires the FluentCommunity community-admin permission (or a WordPress super admin).

  • Requires FluentCommunity Pro.

Live sample

The request and response below were recorded against a running FluentCommunity install and then anonymised — member names, emails, avatars and post content are fictional, and long collections are trimmed to a few entries.

GET Get Space Activity Report

GET
/analytics/spaces/activity

Returns a gap-filled time series of posts, optionally narrowed to one space with space_id.

Controller: SpacesReportsController@activity
Route source: fluent-community-pro/app/Http/Routes/api.php:86

Authorizations

ApplicationPasswords

WordPress Application Passwords — use Basic auth with username:application_password.

Type
API Key (header: Authorization)

Parameters

Query Parameters

space_id

Space ID read via $request->getSafe() in activity().

Type
string
Default
"null"

Responses

Successful response

application/json
JSON
{
  
"data": {
  
  
"activity": "string",
  
  
"data": [
  
  
  
{
  
  
  
  
"data": 0,
  
  
  
  
"date": "string"
  
  
  
}
  
  
],
  
  
"title": "string"
  
}
}

Playground

Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation