Skip to content

Count by Keyword ​

POST/v2/organizations/{organizationId}/keywords/{keywordId}/mentions/count

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

100 req/60s

Parameters ​

Path Parameters

organizationIdinteger (int64)requiredpath

The unique identifier of the organization.

keywordIdinteger (int64)requiredpath

The unique identifier of the keyword to count mentions for.

Request Body ​

The request body contains a query object of type FeedsSearchQueryRequest. It is required: a request without it returns 400. Its 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. Set this, publishedTime, or both.
query.publishedTimeobjectTime range filter based on when the mention was published. Same structure as feedTime. Set this, feedTime, or both.
query.mentionFilterobjectFilter criteria for narrowing mentions.

A query needs a time range: one of feedTime and publishedTime is required. A query with neither returns 400 with a plain-text body:

text
Must provide either 'feedTime' or 'publishedTime' in query

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, THREADS
sentimentFilterClauseFilter by sentiment. Values: POSITIVE, NEUTRAL, NEGATIVE, UNDEFINED

Try it ​

Parameters

Organization ID

Keyword 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 keyword
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