Get aggregate campaign stats
GET
/analytics/campaigns/aggregate
Counters for the /causes stat tiles. The counts (total_campaigns, active, closed, the goals, the completion average and each top category's campaign_count) are 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. The money and the donors are over the counted campaigns (approved, public, not deleted) that match the same filters: total_raised_cents is the sum of their cards (net of the Stripe fee, tips excluded), so the causes and projects totals add up to the platform's raised.
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"
}
]
}