Skip to content

Returns a gap-filled time series of one activity type across the community, ready to plot without client-side interpolation.

activity selects the series and accepts posts (the default), comments, members or spaces; any other value raises an unhandled error rather than a validation message. Bucket size switches automatically with the range — daily up to 62 days, weekly to 92, monthly beyond — and the date label format changes with it, which the response does not signal.

Endpoint

  • Method: GET

  • Path: /analytics/overview/activity

  • Edition: PRO

  • Controller: ReportsController@activityReport

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

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

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

  • Requires FluentCommunity Pro. Weekly and monthly grouping has no year component, so a range spanning a year boundary merges buckets.

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 Overview Activity Report

GET
/analytics/overview/activity

Returns a gap-filled time series of one activity type across the community, ready to plot without client-side interpolation.

Controller: ReportsController@activityReport
Route source: fluent-community-pro/app/Http/Routes/api.php:72

Authorizations

ApplicationPasswords

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

Type
API Key (header: Authorization)

Parameters

Query Parameters

activity

Activity read via $request->getSafe() in activityReport().

Type
string
Default
"posts"

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