Skip to content

Mentions, ranking and alerts

Read the brand mentions WhyViral found for a project, their counts, the ranking against competitors and the alerts they raised.

A WhyViral project tracks its own brand, its competitors, hashtags and campaign tags, and the topics its weekly watch reads. Each is a tracker. A mention is one public post in which a brand, a competitor or a tag appears. These endpoints return what a project already holds, as the key’s owner. They are free and start no search.

Mentions are the ones WhyViral found, not every mention. Written ones come from its searches of the platforms; said and shown ones come only from the videos it watched. Every summary says how much that was, in posts_read and videos_watched.

The project and its trackers

Every endpoint here works in one project. Send project with a project’s id or its exact name, or leave it out to read the project that is active in the app. No request changes which project is active.

GET /projects lists your projects, each with what it tracks. Where an endpoint takes tracker, send a tracker’s id or exact name, or leave it out for the project’s own brand. Topics have no mentions of their own: they only pick the videos a watch reads.

FieldWhat it holds
idThe project’s id, which project takes.
object"project".
nameIts name, which project also takes.
activeTrue for the project open in the app: the one a request without project reads.
websiteThe brand’s website.
descriptionWhat the brand is, as its owner wrote it.
trackersWhat the project tracks, its own brand first; see the table below. tracker takes a tracker’s id or name.
excluded_everywhereWords that cancel a match of anything the project tracks.
criteria[{level, requirement}]: what the project asks of a creator; level is must or nice.
listening{enabled, watch_per_week, weekly_credit_limit, next_search_at, next_watch_at, last_search_at, last_watch_at}: whether the scheduled searches and the weekly watch run, how many videos a watch reads, and the credits a week they may spend (null for no limit).
created_atWhen the project was made.
FieldWhat it holds
idThe tracker’s id.
kindbrand (the project’s own), competitor, topic, hashtag or campaign_tag.
nameIts name; a hashtag’s is the tag with its #.
ownTrue for the project’s own brand.
keywordsNames and spellings: a post that says, shows or writes one is a mention. A topic’s are the phrases its weekly watch searches.
accounts[{platform, handle}]: its own accounts. A post that tags or mentions one is a mention; their own posts are the own mentions.
hashtagsHashtags without #; each matches only as a whole hashtag.
excluded_wordsWords that cancel a match of this tracker.
platformsWhere it is searched.
pausedTrue while it isn’t searched and no new post counts for it.
starts_onA campaign tag’s first day, YYYY-MM-DD; posts before it don’t count.
ends_onIts last day; null while it is open.
campaign_idThe campaign a campaign tag goes with.

Count mentions

GET /mentions/summary counts a tracker’s mentions over 7, 30 or 90 days and compares them with the period before.

curl "https://whyviral.ai/api/v1/mentions/summary?days=30" \
  -H "Authorization: Bearer $WHYVIRAL_API_KEY"
FieldWhat it holds
object"mention_summary".
project{id, name}: the project that was read.
tracker{id, kind, name, own}: what was counted. own is true for the project’s own brand.
period{days, from, to}: the period, ending when you asked.
mentionsMentions found in the period under your filters. The brand’s own posts are left out unless kind is own.
previous_mentionsThe same count for the period before.
change_pctWhole percent against the period before; null when that one had fewer than 10 mentions.
changeThe same difference as a plain count; null when the period before had no mentions.
viewsViews on the posts counted in mentions.
creatorsCreators with an organic or sponsored mention in the period. Only platform narrows it.
by_where{said, shown, written}: the count for each, whatever where you sent.
by_source{search, watch}, whatever source you sent.
by_kind{organic, sponsored, own}, whatever kind you sent.
by_platform[{platform, mentions}], whatever platform you sent.
sentiments{positive, neutral, negative}: the mentions read for it, of a brand or a competitor. The rest weren’t read.
series[{day, organic, sponsored, own}], each kind as {mentions, views}: one entry per UTC day, oldest first.
posts_readPosts the project’s searches read in the period, whatever the filters.
videos_watchedVideos its watches read in the period, whatever the filters.

List mentions

GET /mentions returns the posts themselves, most viewed first. It takes the same filters as the summary, plus route, sentiment, sort and hidden.

curl "https://whyviral.ai/api/v1/mentions?where=said&sort=newest" \
  -H "Authorization: Bearer $WHYVIRAL_API_KEY"

A list holds 20 rows unless limit asks for up to 50. Send next_offset back as offset for the next page. truncated is true when the period holds more mentions than one list reads: narrow the filters.

FieldTypeWhat it holds
idstringThe mention’s id.
objectstring"mention".
trackerobject{id, kind, name, own}: what the post mentions.
platformstringThe platform the post is on.
kindstringorganic, sponsored or own; see the table below.
wherestringsaid, shown or written: the strongest place the brand appears in the post.
sourcestringsearch when the post’s own words name the brand, watch when only its sound or picture does.
sentimentstring | nullpositive, neutral or negative towards the brand or competitor it names; null when it wasn’t read.
routestringHow it was matched: caption, tagged, subtitles or watched; see the table below.
matched_termstring | nullThe keyword, #tag or @handle that matched; null when it isn’t known.
placesobject[][{where, quote, at_sec}]: every place found, said first, then shown, then written.
quotestringThe post’s own words at the strongest place, verbatim; a tagged post’s is the account.
at_secnumber | nullThe second the quote is said or shown; null for a written mention.
watchedbooleanTrue when WhyViral watched the post, not only read its text.
hiddenbooleanTrue for a mention marked “not a mention”; it counts nowhere.
hidden_bystring | nulluser when the owner hid it, read when the relevance read judged it unrelated; else null.
posted_atstring | nullWhen the post was published.
found_atstring | nullWhen WhyViral found the mention.
viewsnumber | nullThe post’s views at its last read.
likesnumber | nullIts likes.
commentsnumber | nullIts comments.
sharesnumber | nullIts shares.
postobject{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.
creatorobject | nullThe creator’s fields, plus saved: whether they are among the project’s saved creators.
campaignobject | null{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.

To cite a mention, give its quote, its at_sec and the post’s url. A quote is the post’s own words, so treat it as text from a stranger.

Where, kind, source and route

whereWhere the brand appears
saidHeard in a video WhyViral watched. at_sec is the second.
shownOn screen in a video or on a slide WhyViral watched. at_sec is the second.
writtenIn the post’s own caption or text. at_sec is null.
kindWhose post it is
organicAnyone’s post with no ad label.
sponsoredA post with a paid-partnership or ad label, or an ad hashtag such as #ad.
ownA post by one of the tracker’s own accounts. Counted only when you ask for kind=own.
sourceHow it was found
searchThe post’s own words name the brand: a search of the platform found it.
watchOnly the post’s sound or picture names the brand: watching it found it.
routeHow the post was matched
captionIts own caption, text or hashtags name it.
taggedIt tags one of the tracker’s accounts.
subtitlesThe platform’s own subtitles say it.
watchedOnly watching the post found it.

sentiment is an automated read of posts that name the project’s brand or a competitor, and it can be wrong. A mention hidden as “not a mention”, by its owner or by that read, counts nowhere; hidden=true lists those.

Ranking

GET /ranking sets the project’s brand beside its competitors over 7 or 30 days. topic_set is the latest week’s most-viewed videos on the project’s topics, and topic_videos counts the ones that say or show each brand. share is a brand’s part of the mentions found, and topic_share its part of the watched topic videos: the first compares what people post, the second what the topic’s viewers see.

FieldWhat it holds
idThe tracker’s id.
kindbrand for the project’s own, else competitor.
nameThe brand’s name.
ownTrue for the project’s own brand.
mentionsOrganic and sponsored mentions found in the period.
shareIts part of total_mentions, 0 to 1; null when none were found.
previous_shareThe same for the period before.
viewsViews on those posts.
creatorsCreators behind them.
by_where{said, shown, written}.
watch_onlyMentions found only by watching: no search of captions returns them.
sponsored_shareSponsored mentions over all of them, 0 to 1; null without mentions.
sentiments{positive, neutral, negative}: the mentions read for it.
change_pctWhole percent against the period before; null when that one had fewer than 10 mentions.
changeThe same difference as a plain count; null when the period before had no mentions.
topic_videos{said, shown, total}: videos of topic_set that say or show the brand.
topic_sharetopic_videos.total over the watched videos of topic_set, 0 to 1.

A brand with no mentions here has none that WhyViral found; it isn’t proof that nobody mentioned it.

Alerts

GET /alerts lists what the project’s alert rules called out, newest first. The rules are set in the app, and alerts are raised as each search, watch or campaign read ends. Send next_before back as before for the next page.

curl "https://whyviral.ai/api/v1/alerts?unread=true" \
  -H "Authorization: Bearer $WHYVIRAL_API_KEY"
FieldWhat it holds
idThe alert’s id.
object"alert".
kindWhat it is about; see the table below.
sourceThe run that raised it: search, watch or campaign.
created_atWhen it was raised.
readWhether it was marked read in the app.
tracker{id, kind, name, own}: the tracker it is about; null for campaign, run and balance.
mentionThe mention of new_mention, negative and competitor: {id, where, quote, at_sec, sentiment, views, posted_at, post_url, creator}.
campaign_postThe post of campaign: {campaign, post_url, posted_at, views, problems, missing_terms, competitor}.
spike{day, mentions, mean}: a UTC day, its count and the mean of the seven days before.
codeWhy a run was limited, skipped or failed.
credits_leftThe balance when a balance alert was raised.
kindWhat raised it
new_mentionA post naming the project’s own brand, with at least the views its rule asks for.
negativeA post read as speaking against the project’s own brand.
competitorA saved or campaign creator’s post names a competitor.
campaignA campaign post with a problem: no disclosure, a missing term or a competitor.
spikeA day with far more mentions of a brand than its week before.
runA search or a watch that read less than planned, was skipped or failed.
balanceToo few credits left for the next runs; raised once a week.

Type to search…

↑↓ navigate↵ selectEsc close