Skip to content
Navigation

Summarize mentions

GET
https://whyviral.ai/api/v1/mentions/summary

How often a tracker was mentioned over a period: the count against the period before, views, creators, the splits and a per-day series. It counts the mentions WhyViral found, not every mention. Free.

Authorization

  • bearer
    optional
    HTTP Bearer

    Authorization: Bearer <token>

  • apiKeyHeader
    optional
    API key in header

    x-api-key: <token>

Query parameters

  • project
    optional
    string

    A project’s id or exact name; case is ignored. Leave it out for the project active in the app.

  • tracker
    optional
    string

    A tracker’s id or exact name, such as a competitor’s or #yourtag. Leave it out for the project’s own brand.

  • days
    optional
    7
    or
    30
    or
    90

    The period in days, ending now.

    default: 7
  • platform
    optional
    tiktok
    or
    instagram
    or
    youtube
    or
    x

    Only this platform.

  • kind
    optional
    organic
    or
    sponsored
    or
    own

    Only this kind. own is counted only when asked for.

  • where
    optional
    said
    or
    shown
    or
    written

    Only mentions said, shown or written.

  • source
    optional
    search
    or
    watch

    Only mentions found by search, or only by watching.

Returns

200

The summary.

JSON
  • object
    string
    required

    "mention_summary".

  • project
    object
    required
    • id
      string
      required

      The project’s id.

    • name
      string
      required

      Its name.

  • tracker
    object
    required
    • id
      string
      required

      The tracker’s id.

    • kind
      brand
      or
      competitor
      or
      topic
      or
      hashtag
      or
      campaign_tag
      required

      brand (the project’s own), competitor, topic, hashtag or campaign_tag.

    • name
      string
      required

      Its name; a hashtag’s is the tag with its #.

    • own
      boolean
      required

      True for the project’s own brand.

  • period
    object
    required
    • days
      integer
      required
    • from
      required

      Any of the following:

      • string
      • null
    • to
      required

      Any of the following:

      • string
      • null
  • mentions
    integer
    required

    Mentions found in the period under your filters. The brand’s own posts are left out unless kind is own.

    minimum: 0
  • previous_mentions
    integer
    required

    The same count for the period before.

    minimum: 0
  • change_pct
    required

    Whole percent against the period before; null when that one had fewer than 10 mentions.

    Any of the following:

    • integer
    • null
  • change
    required

    The same difference as a plain count; null when the period before had no mentions.

    Any of the following:

    • integer
    • null
  • views
    integer
    required

    Views on the posts counted in mentions.

    minimum: 0
  • creators
    integer
    required

    Creators with an organic or sponsored mention in the period. Only platform narrows it.

    minimum: 0
  • by_where
    object
    required

    {said, shown, written}: the count for each, whatever where you sent.

    • said
      integer
      required
      minimum: 0
    • shown
      integer
      required
      minimum: 0
    • written
      integer
      required
      minimum: 0
  • by_source
    object
    required

    {search, watch}, whatever source you sent.

    • search
      integer
      required
      minimum: 0
    • watch
      integer
      required
      minimum: 0
  • by_kind
    object
    required

    {organic, sponsored, own}, whatever kind you sent.

    • organic
      integer
      required
      minimum: 0
    • sponsored
      integer
      required
      minimum: 0
    • own
      integer
      required
      minimum: 0
  • by_platform
    array of
    object
    required

    [{platform, mentions}], whatever platform you sent.

    • platform
      tiktok
      or
      instagram
      or
      youtube
      or
      x
      required
    • mentions
      integer
      required
      minimum: 0
  • sentiments
    object
    required

    {positive, neutral, negative}: the mentions read for it, of a brand or a competitor. The rest weren’t read.

    • positive
      integer
      required
      minimum: 0
    • neutral
      integer
      required
      minimum: 0
    • negative
      integer
      required
      minimum: 0
  • series
    array of
    object
    required

    [{day, organic, sponsored, own}], each kind as {mentions, views}: one entry per UTC day, oldest first.

    • day
      string
      required
      format: date
    • organic
      object
      required
      • mentions
        integer
        required
        minimum: 0
      • views
        integer
        required
        minimum: 0
    • sponsored
      object
      required
      • mentions
        integer
        required
        minimum: 0
      • views
        integer
        required
        minimum: 0
    • own
      object
      required
      • mentions
        integer
        required
        minimum: 0
      • views
        integer
        required
        minimum: 0
  • posts_read
    integer
    required

    Posts the project’s searches read in the period, whatever the filters.

    minimum: 0
  • videos_watched
    integer
    required

    Videos its watches read in the period, whatever the filters.

    minimum: 0

400

INVALID_REQUEST: The body isn’t JSON, its url is missing or too long, or a parameter has a value it doesn’t take. INVALID_PERIOD: days isn’t a period this endpoint takes; days in the answer lists the ones it does. AMBIGUOUS_PROJECT: Several of your projects share the name you sent; pass the project’s id.
JSON
  • error
    object
    required

    Some codes add details, such as cap, required or balance.

    • code
      string
      ·
      one of 16 values
      required
      Allowed values: INVALID_REQUEST, UNSUPPORTED_LINK, INVALID_PERIOD, AMBIGUOUS_PROJECT, INVALID_REPORT, CREATOR_NOT_SAVED, TOO_MANY_REPORTS, INVALID_API_KEY, INSUFFICIENT_CREDITS, ACCOUNT_DISABLED, NOT_FOUND, TRACKER_NOT_FOUND, MONTHLY_LIMIT, RATE_LIMITED, INTERNAL, SEARCH_UNAVAILABLE
    • message
      string
      required

      What went wrong, in words.

401

INVALID_API_KEY: The key is missing, mistyped or revoked.
JSON
  • error
    object
    required

    Some codes add details, such as cap, required or balance.

    • code
      string
      ·
      one of 16 values
      required
      Allowed values: INVALID_REQUEST, UNSUPPORTED_LINK, INVALID_PERIOD, AMBIGUOUS_PROJECT, INVALID_REPORT, CREATOR_NOT_SAVED, TOO_MANY_REPORTS, INVALID_API_KEY, INSUFFICIENT_CREDITS, ACCOUNT_DISABLED, NOT_FOUND, TRACKER_NOT_FOUND, MONTHLY_LIMIT, RATE_LIMITED, INTERNAL, SEARCH_UNAVAILABLE
    • message
      string
      required

      What went wrong, in words.

403

ACCOUNT_DISABLED: The key’s account is disabled.
JSON
  • error
    object
    required

    Some codes add details, such as cap, required or balance.

    • code
      string
      ·
      one of 16 values
      required
      Allowed values: INVALID_REQUEST, UNSUPPORTED_LINK, INVALID_PERIOD, AMBIGUOUS_PROJECT, INVALID_REPORT, CREATOR_NOT_SAVED, TOO_MANY_REPORTS, INVALID_API_KEY, INSUFFICIENT_CREDITS, ACCOUNT_DISABLED, NOT_FOUND, TRACKER_NOT_FOUND, MONTHLY_LIMIT, RATE_LIMITED, INTERNAL, SEARCH_UNAVAILABLE
    • message
      string
      required

      What went wrong, in words.

404

NOT_FOUND: No read, project, creator, campaign or report like this on your account. TRACKER_NOT_FOUND: tracker isn’t the id or exact name of anything the project tracks.
JSON
  • error
    object
    required

    Some codes add details, such as cap, required or balance.

    • code
      string
      ·
      one of 16 values
      required
      Allowed values: INVALID_REQUEST, UNSUPPORTED_LINK, INVALID_PERIOD, AMBIGUOUS_PROJECT, INVALID_REPORT, CREATOR_NOT_SAVED, TOO_MANY_REPORTS, INVALID_API_KEY, INSUFFICIENT_CREDITS, ACCOUNT_DISABLED, NOT_FOUND, TRACKER_NOT_FOUND, MONTHLY_LIMIT, RATE_LIMITED, INTERNAL, SEARCH_UNAVAILABLE
    • message
      string
      required

      What went wrong, in words.

429

RATE_LIMITED: Too many new reads, data requests, searches or report links; wait the Retry-After header’s seconds.
JSON
  • error
    object
    required

    Some codes add details, such as cap, required or balance.

    • code
      string
      ·
      one of 16 values
      required
      Allowed values: INVALID_REQUEST, UNSUPPORTED_LINK, INVALID_PERIOD, AMBIGUOUS_PROJECT, INVALID_REPORT, CREATOR_NOT_SAVED, TOO_MANY_REPORTS, INVALID_API_KEY, INSUFFICIENT_CREDITS, ACCOUNT_DISABLED, NOT_FOUND, TRACKER_NOT_FOUND, MONTHLY_LIMIT, RATE_LIMITED, INTERNAL, SEARCH_UNAVAILABLE
    • message
      string
      required

      What went wrong, in words.

500

INTERNAL: Something broke on our side; try again.
JSON
  • error
    object
    required

    Some codes add details, such as cap, required or balance.

    • code
      string
      ·
      one of 16 values
      required
      Allowed values: INVALID_REQUEST, UNSUPPORTED_LINK, INVALID_PERIOD, AMBIGUOUS_PROJECT, INVALID_REPORT, CREATOR_NOT_SAVED, TOO_MANY_REPORTS, INVALID_API_KEY, INSUFFICIENT_CREDITS, ACCOUNT_DISABLED, NOT_FOUND, TRACKER_NOT_FOUND, MONTHLY_LIMIT, RATE_LIMITED, INTERNAL, SEARCH_UNAVAILABLE
    • message
      string
      required

      What went wrong, in words.

Type to search…

↑↓ navigate↵ selectEsc close