Skip to content
Navigation

List mentions

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

One page of the posts in which WhyViral found a tracker mentioned, each with its quote, the second it is said or shown and the post’s link. 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.

  • route
    optional
    caption
    or
    tagged
    or
    subtitles
    or
    watched

    Only mentions matched this way.

  • sentiment
    optional
    positive
    or
    neutral
    or
    negative

    Only mentions read as this.

  • sort
    optional
    views
    or
    newest

    Most viewed first, or newest first.

    default: "views"
  • hidden
    optional
    boolean

    true lists the mentions marked “not a mention” instead of the live ones.

    default: false
  • offset
    optional
    integer

    Rows to skip: the last answer’s next_offset.

    minimum: 0 · default: 0
  • limit
    optional
    integer

    How many rows, 1 to 50.

    maximum: 50 · minimum: 1 · default: 20

Returns

200

The mentions.

JSON
  • object
    string
    required
  • 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.

  • total
    integer
    required

    Mentions under the filters, in every page.

    minimum: 0
  • creators
    integer
    required

    Distinct creators behind them.

    minimum: 0
  • next_offset
    required

    Any of the following:

    • integer
      The `offset` of the next page; null on the last.
    • null
  • truncated
    boolean
    required

    True when the period holds more mentions than one list reads; narrow the filters.

  • data
    array of
    object
    required
    • id
      string
      required

      The mention’s id.

    • object
      string
      required

      "mention".

    • 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.

    • platform
      tiktok
      or
      instagram
      or
      youtube
      or
      x
      required

      The platform the post is on.

    • kind
      organic
      or
      sponsored
      or
      own
      required

      organic, sponsored or own; see the table below.

    • where
      said
      or
      shown
      or
      written
      required

      said, shown or written: the strongest place the brand appears in the post.

    • source
      search
      or
      watch
      required

      search when the post’s own words name the brand, watch when only its sound or picture does.

    • route
      caption
      or
      tagged
      or
      subtitles
      or
      watched
      required

      How it was matched: caption, tagged, subtitles or watched; see the table below.

    • matched_term
      required

      The keyword, #tag or @handle that matched; null when it isn’t known.

      Any of the following:

      • string
      • null
    • sentiment
      required

      positive, neutral or negative towards the brand or competitor it names; null when it wasn’t read.

      Any of the following:

      • string
        positive
        or
        neutral
        or
        negative
      • null
    • quote
      string
      required

      The post’s own words at the strongest place, verbatim; a tagged post’s is the account.

    • at_sec
      required

      The second the quote is said or shown; null for a written mention.

      Any of the following:

      • number
      • null
    • places
      array of
      object
      required

      [{where, quote, at_sec}]: every place found, said first, then shown, then written.

      • where
        said
        or
        shown
        or
        written
        required
      • quote
        string
        required
      • at_sec
        required

        Any of the following:

        • number
        • null
    • watched
      boolean
      required

      True when WhyViral watched the post, not only read its text.

    • hidden
      boolean
      required

      True for a mention marked “not a mention”; it counts nowhere.

    • hidden_by
      required

      user when the owner hid it, read when the relevance read judged it unrelated; else null.

      Any of the following:

      • string
        user
        or
        read
      • null
    • posted_at
      required

      When the post was published.

      Any of the following:

      • string
      • null
    • found_at
      required

      When WhyViral found the mention.

      Any of the following:

      • string
      • null
    • views
      required

      The post’s views at its last read.

      Any of the following:

      • integer
      • null
    • likes
      required

      Its likes.

      Any of the following:

      • integer
      • null
    • comments
      required

      Its comments.

      Any of the following:

      • integer
      • null
    • shares
      required

      Its shares.

      Any of the following:

      • integer
      • null
    • post
      object
      required

      {url, kind, text, cover_url, duration_sec}: the post’s link, its type (video, slides or text), its caption or text, a public cover image and a video’s length.

      • url
        string
        required
        format: uri
      • kind
        video
        or
        slides
        or
        text
        required
      • text
        string
        required
      • cover_url
        required

        Any of the following:

        • string
        • null
      • duration_sec
        required

        Any of the following:

        • number
        • null
    • creator
      required

      The creator’s fields, plus saved: whether they are among the project’s saved creators.

      Any of the following:

      • object
        • id
          string
          required

          The creator’s id, which /creators/{id} and a report take.

        • platform
          tiktok
          or
          instagram
          or
          youtube
          or
          x
          required

          The platform the account is on.

        • handle
          string
          required

          Their handle, without @.

        • name
          required

          Their display name.

          Any of the following:

          • string
          • null
        • profile_url
          string
          required

          Their profile on the platform.

          format: uri
        • avatar_url
          required

          A public avatar image WhyViral hosts.

          Any of the following:

          • string
          • null
        • followers
          required

          Their follower count, when the platform shows it.

          Any of the following:

          • integer
          • null
        • country
          required

          The country their profile states, as written.

          Any of the following:

          • string
          • null
        • country_code
          required

          That country as an ISO 3166-1 alpha-2 code, when WhyViral recognizes it.

          Any of the following:

          • string
          • null
        • saved
          boolean
          required
      • null
    • campaign
      required

      {id, name, undisclosed, used_terms, missing_terms} when the post is a campaign post of one of the project’s campaigns, else null. undisclosed is true when that campaign flagged the post as missing an ad disclosure.

      Any of the following:

      • object
        • id
          string
          required

          The campaign’s id.

        • name
          string
          required

          Its name.

        • undisclosed
          boolean
          required

          True when the campaign flagged the post as missing an ad disclosure.

        • used_terms
          array of
          string
          required
        • missing_terms
          array of
          string
          required
      • null

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