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
}
]
}Returns post/comment/reaction activity metrics for a community.
Modes:
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
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Community ID
Inclusive start date (YYYY-MM-DD). Defaults to 7 days before yesterday.
Inclusive end date (YYYY-MM-DD). Defaults to yesterday.
daily (default) or aggregate.
daily, aggregate