curl --request GET \
--url https://api.peakmetrics.com/workspaces/{workspaceId}/analytics/distribution \
--header 'Authorization: Bearer <token>'{
"groupBy": "channels",
"totalCount": 125000,
"groups": [
{
"key": "twitter",
"name": "X (Twitter)",
"count": 31440,
"percentage": 25.15
}
]
}Returns mention counts broken down by a specified dimension. Use the
group_by parameter to select which dimension to distribute by (e.g.,
channels, authors, domains, or languages).
All standard mention filters can be applied to narrow the results.
curl --request GET \
--url https://api.peakmetrics.com/workspaces/{workspaceId}/analytics/distribution \
--header 'Authorization: Bearer <token>'{
"groupBy": "channels",
"totalCount": 125000,
"groups": [
{
"key": "twitter",
"name": "X (Twitter)",
"count": 31440,
"percentage": 25.15
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The unique identifier for the workspace.
x >= 1The minimum published date of the mentions to return.
The maximum published date of the mentions to return.
The dimension to distribute mention counts by. The value must be a
valid filter key as returned by
GET /workspaces/{workspaceId}/available-filters, or one of the following
built-in dimensions:
channels — Mention counts by channelauthors — Top authors by mention countdomains — Top domains by mention countlanguages — Mention counts by detected languagebot_ratings — Mention counts by bot detection confidencepublisher_geography.source_country — Mention counts by publisher countrypublisher_geography.source_region — Mention counts by publisher regionpublisher_geography.source_sub_region — Mention counts by publisher subregionFor Smart Categories, use the format smart_category_enrichment_id:{enrichment_id} where
enrichment_id is the Smart Category model ID (e.g., smart_category_enrichment_id:244)
as returned by GET /workspaces/{workspaceId}/available-filters under
smart_categories.models[].enrichment_id.
Filter the returned results to those that are part of the provided narrative IDs.
Filter to mentions that are part of the provided channel.
blogsdiscussions, bluesky, facebook, instagram, news, reddit, redditComment, telegram, threads, tiktok, twitter, vk, weibo, youtube A keyword search string applied against mention content. Supports
Boolean operators (AND, OR, NOT) and quoted phrases for exact matching.
Field-scoped expressions are also supported (e.g., title:word or text:phrase).
This filter is applied in addition to the workspace query and any other filters. Use this for ad-hoc keyword narrowing without modifying the workspace configuration.
Filter to mentions published on the provided domains. Multiple values are combined with OR logic.
Filter to mentions attributed to the provided authors. Multiple values are combined with OR logic.
Filter to mentions in the provided languages, specified as two-letter ISO 639-1 codes. Multiple values are combined with OR logic.
Filter by bot detection confidence level. Bot detection analyzes social media accounts to identify automated or coordinated inauthentic behavior. Multiple values are combined with OR logic.
none, further_investigation, very_unlikely, unlikely, potential, likely, very_likely, almost_certain Filter by Smart Category classification results. Smart Categories are custom AI-powered classifiers configured per workspace (e.g., sentiment models, topic classifiers, violent rhetoric detection).
Each value is a composite string in the format {enrichmentId}:{categoryKey},
where enrichmentId identifies the Smart Category model and categoryKey
identifies the classification label (e.g., c0, c1, c2).
Available enrichment IDs and their category key mappings can be discovered
via GET /workspaces/{workspaceId}/available-filters. Multiple values are combined with OR logic.
Filter by social media post type. Use the values returned by
GET /workspaces/{workspaceId}/available-filters under
mention_type.social_media.options. Multiple values from the same sub-filter are combined with OR logic.
original_posts, reposts, comments, quoting_posts Filter to news mention type. Use the values returned by
GET /workspaces/{workspaceId}/available-filters under
mention_type.news.options. Multiple values are combined with OR logic.
news Filter to podcast mention types. Use the values returned by
GET /workspaces/{workspaceId}/available-filters under
mention_type.podcasts.options. Multiple values are combined with OR logic.
podcasts Filter by the publisher's country of origin. Primarily applicable to
news mentions. Country names should match the values returned by
GET /workspaces/{workspaceId}/available-filters. Multiple values are combined with OR logic.
Filter by the publisher's geographic region. Primarily applicable to news mentions. Multiple values are combined with OR logic.
Africa, Americas, Asia, Europe, Oceania Filter by the publisher's geographic subregion. Primarily applicable to news mentions. Multiple values are combined with OR logic.
Australia and New Zealand, Caribbean, Central America, Central Asia, Eastern Africa, Eastern Asia, Eastern Europe, Melanesia, Micronesia, Middle Africa, Northern Africa, Northern America, Northern Europe, Polynesia, South America, South-Eastern Asia, Southern Africa, Southern Asia, Southern Europe, Western Africa, Western Asia, Western Europe A JSON object containing the mention count distribution.
The dimension used for this distribution.
"channels"
Total count of all mentions matching the filters. This may be larger than the sum of group counts if the dimension has many distinct values.
x >= 0125000
Mention counts for each value within the specified dimension, sorted by count descending.
Show child attributes
Was this page helpful?