Skip to content

Count by Group

POST/v2/organizations/{organizationId}/groups/{groupId}/mentions/count

Returns the total number of mentions for a specific group, broken down by source type. Use this endpoint when you need mention counts scoped to a single group rather than the entire organization.

100 req/60s

Parameters

Path Parameters

organizationIdinteger (int64)requiredpath

The unique identifier of the organization.

groupIdinteger (int64)requiredpath

The unique identifier of the group to count mentions for.

Request Body

The request body contains a query object of type FeedsSearchQueryRequest with the following structure:

FieldTypeDescription
query.feedsarrayArray of feed objects with groupId (int64) and keywordId (int64) to scope the search. Optional -- omit to search all feeds.
query.feedTimeobjectTime range filter based on when the mention entered the feed. Use relative (enum) for preset ranges, or from/to (ISO datetime) for custom ranges.
query.publishedTimeobjectTime range filter based on when the mention was published. Same structure as feedTime.
query.mentionFilterobjectFilter criteria for narrowing mentions.

Relative Time Period Values

TODAY, YESTERDAY, LAST_24_HOURS, LAST_7_DAYS, LAST_30_DAYS, LAST_90_DAYS, THIS_MONTH, THIS_WEEK, LAST_WEEK, LAST_MONTH

Mention Filters

Each filter field uses a FilterClause pattern with optional any, all, must, and not sub-fields:

Filter FieldTypeDescription
mentionTypeFilterClauseFilter by source type. Values: WEB, FACEBOOK, TWITTER, FORUM, COMMENT, YOUTUBE, INSTAGRAM, REDDIT, TIKTOK, PRINT, RADIO, TV, BLUESKY
sentimentFilterClauseFilter by sentiment. Values: POSITIVE, NEUTRAL, NEGATIVE, UNDEFINED

Try it

Parameters

Organization ID

Group ID

Time Range

Filters

Filter by source type

Filter by sentiment

Response

json
{
  "count": 1523,
  "typeToCount": {
    "WEB": 890,
    "TWITTER": 423,
    "FACEBOOK": 210
  }
}

Response Fields

FieldTypeDescription
countinteger (int64)Total number of mentions matching the query for this group
typeToCountobjectBreakdown of mention counts by source type. Keys are source type strings (e.g. WEB, TWITTER), values are counts.

Built by Determ — Media Monitoring & Analytics