Reference / Reports and analytics

Get a community metric

get_metricocmgr analytics metricPOST /v1/analytics/metricREAD

Chart tested community metrics as tidy rows with typed columns, units, definition, caveats and SQL. Read describe_analytics first; prefer list_reports/run_report for saved definitions. Staff and classified bots excluded unless team=true. UTC date bounds; count series include zero buckets, unobserved medians stay null. Retention defaults to cohorts starting within the window; cohort_range=all widens. Only supported grain/group_by choices are accepted. Same analyst guard, five seconds and 10,000 rows as run_query.

Parameters

name"active_members" | "new_members" | "activity_by_source" | "retention" | "reactivation" | "responsiveness" | "contributor_funnel" | "organisation_coverage" | "source_mix" | "segment_movement" | "event_scorecard"REQUIRED
periodobjectREQUIRED

UTC dates: start inclusive, end exclusive; at most ten years.

startstring (date)REQUIRED
endstring (date)REQUIRED
grain"day" | "week" | "month"

Omit for a period total; retention uses month, segment movement and event scorecard use week by default.

group_by"source" | "organisation" | "segment" | "venue"

Only supported dimensions; source mix/activity always group by source, organisation coverage by organisation, movement by segment and events by venue.

cohort_range"window" | "all"

Retention only. Default window: cohorts whose UTC first-seen month is in the selected window (including its partial first month). All includes older cohorts. Membership always uses whole calendar months.

teambooleandefault false

Include staff and classified non-person bots. Default excludes both.

CLI flags

--start <date>REQUIRED

Inclusive UTC date

--end <date>REQUIRED

Exclusive UTC date

--grain <grain>

day, week or month where supported

--group-by <dimension>

Supported metric dimension

--cohort-range <range>

Retention cohorts: window (default) or all

--team

Include staff and classified bots

Also in Reports and analytics