Batch analytics metrics
Authenticated account members only; administrators or a custom role with report_manage may read metrics and benchmarks. Ordinary agents/managers get 403; foreign or nonexistent accounts get 401. Reads are scoped through Current.account. At most 25 distinct ids. HTTP 200 contains metrics keyed by requested id, including partial failures: per-item 404 unknown metric, 422 invalid dimensions/grain, 503 unavailable, or 500 unexpected failure. Malformed shared dates/fields, duplicate ids and invalid list shapes fail the entire request with 422.
Authorizations
This token can be obtained by visiting the profile page or via rails console. Provides access to endpoints based on the user permissions levels. This token can be saved by an external system when user is created via API, to perform activities on behalf of the user.
Path Parameters
The numeric ID of the account
Body
Unique metric ids, 1–25 entries. Shared malformed fields fail the whole request; metric-specific errors affect that entry only.
1 - 25 elementsInclusive start date; default is 29 days before until.
Inclusive last date; defaults to today in timezone. Maximum range 366 days and 800 buckets.
Must be supported by each metric; defaults to day if supported, otherwise its first grain.
hour, day, week, month IANA time zone; default UTC.
Legacy basis flag, mutually exclusive with hours.
Hours basis; business/off require analytics_business_hours. Mutually exclusive with business_hours.
all, business, off Include aligned prior-window comparisons when supported.
Count main topic only (default) or all topic mentions.
main, all Response
Success.
One entry keyed by each requested id, including unknown ids. Successful, pending and failed entries may coexist.