Get aggregate campaign stats
GET
/analytics/campaigns/aggregate
Counters for the /causes stat tiles, over public, non-deleted campaigns in active or ended status, filtered the same way as the listing. "Closed" means ended, or active with a past end_date. Every figure, total_donors and topCategories included, covers the same filtered set.
Counts and sums are returned as numeric strings.
No authentication.
Parameters
Query Parameters
is_project
Type
string
Valid values
"true""false""1""0"category
Category slug, id or name.
Type
string
Responses
The aggregates (bare object)
application/json
JSON
{
"total_campaigns": "128",
"active_campaigns": "string",
"closed_campaigns": "string",
"total_raised_cents": "string",
"total_goal": "string",
"avg_completion_percent": "string",
"total_donors": "string",
"topCategories": [
{
"id": 0,
"name": "string",
"campaign_count": "string",
"total_raised_cents": "string"
}
]
}