Reference / Reports and analytics

Query analytics

run_queryocmgr analytics queryPOST /v1/analytics/queryREAD

Run one read-only SELECT over analytics views. Positional $1 parameters use params keys "1", "2". Standard metrics filter is_team=false. Maximum 10,000 rows and five seconds.

Parameters

include_non_personsbooleandefault false

Include classified bots; standard community queries leave this false.

sqlstringup to 32000 charsREQUIRED

Read-only SELECT over the views from describe_analytics. Bind positional parameters with $1, $2, …; params keys are "1", "2", ….

paramsobjectdefault {}

Values for positional SQL parameters; use $1, $2, … in sql and keys "1", "2", … in params. Values are bound, never interpolated.

limitinteger1–10000default 10000

Maximum result rows; truncated reports whether the result exceeded this limit.

CLI flags

--param <k=v...>

--include-non-persons

Include classified bots

--limit <n>default 10000

Maximum rows

--format <format>default table

json, csv or table

Also in Reports and analytics