Aggregate post performance for an organization across a date range, optionally filtered by channel or tag
get_aggregated_post_metricsAggregate post performance metrics across a date range for an organization, with optional channel or tag filters, to analyze trends in one request.
Instructions
Aggregate post performance for an organization across a date range, optionally filtered by channel or tag. Current Buffer GraphQL aggregatedPostMetrics. One request, no automatic pagination. Use upstream fields to bound data; provider errors are failures even with HTTP 200.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | ||
| fields | No | Upstream field paths relative to the result, as in official CLI --fields. Default fields are bounded. Use items.id for connection nodes; pageInfo.endCursor for cursors. | |
| account | No | Private account profile name. Selects credentials only; an organization default does not restrict provider token permissions. | |
| payload | No | Complete native input object instead of individual input fields. | |
| channelIds | No | Optional list of channel IDs to filter by. When omitted (null), the aggregate spans every channel in the organization the actor has insights access to. When set to an empty array, no channels match and the result is empty. | |
| endDateTime | No | End of the aggregation window. Consumers typically pass UTC midnight of the last calendar day in the window (the backend treats the range as inclusive of that day), for example `2026-01-31T00:00:00Z`. Date range is capped to 365 days. | |
| payload_file | No | Regular local JSON input file, no symlink, at most 1 MiB; cannot mix with payload or individual input fields. | |
| startDateTime | No | Start of the aggregation window. Consumers typically pass UTC midnight of the first calendar day in the window, for example `2026-01-01T00:00:00Z`. | |
| organizationId | No | The organization ID |