Skip to main content
GET
/
api
/
v1
/
analytics
/
community-metrics
/
{communityId}
/
activities
Query community activity metrics
curl --request GET \
  --url https://apix.us.amity.co/api/v1/analytics/community-metrics/{communityId}/activities \
  --header 'Authorization: Bearer <token>'
{ "granularity": "daily", "from": "2024-05-01", "to": "2024-05-05", "data": [ { "date": "2024-05-01", "total_posts": 1, "total_comments": 0, "total_reactions": 2 }, { "date": "2024-05-02", "total_posts": 0, "total_comments": 0, "total_reactions": 0 }, { "date": "2024-05-03", "total_posts": 5, "total_comments": 2, "total_reactions": 1 }, { "date": "2024-05-04", "total_posts": 0, "total_comments": 0, "total_reactions": 0 }, { "date": "2024-05-05", "total_posts": 2, "total_comments": 1, "total_reactions": 3 } ] }

Documentation Index

Fetch the complete documentation index at: https://learn.social.plus/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

communityId
string
required

Community ID

Query Parameters

from
string<date>

Inclusive start date (YYYY-MM-DD). Defaults to 7 days before yesterday.

to
string<date>

Inclusive end date (YYYY-MM-DD). Defaults to yesterday.

granularity
enum<string>

daily (default) or aggregate.

Available options:
daily,
aggregate

Response

Successful activities metrics response

granularity
enum<string>
required
Available options:
daily
from
string<date>
required
to
string<date>
required
data
object[]
required