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.
| Field | What it holds |
|---|---|
id | The project’s id, which project takes. |
object | "project". |
name | Its name, which project also takes. |
active | True for the project open in the app: the one a request without project reads. |
website | The brand’s website. |
description | What the brand is, as its owner wrote it. |
trackers | What the project tracks, its own brand first; see the table below. tracker takes a tracker’s id or name. |
excluded_everywhere | Words 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_at | When the project was made. |
| Field | What it holds |
|---|---|
id | The tracker’s id. |
kind | brand (the project’s own), competitor, topic, hashtag or campaign_tag. |
name | Its name; a hashtag’s is the tag with its #. |
own | True for the project’s own brand. |
keywords | Names 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. |
hashtags | Hashtags without #; each matches only as a whole hashtag. |
excluded_words | Words that cancel a match of this tracker. |
platforms | Where it is searched. |
paused | True while it isn’t searched and no new post counts for it. |
starts_on | A campaign tag’s first day, YYYY-MM-DD; posts before it don’t count. |
ends_on | Its last day; null while it is open. |
campaign_id | The 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"| Field | What 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. |
mentions | Mentions found in the period under your filters. The brand’s own posts are left out unless kind is own. |
previous_mentions | The same count for the period before. |
change_pct | Whole percent against the period before; null when that one had fewer than 10 mentions. |
change | The same difference as a plain count; null when the period before had no mentions. |
views | Views on the posts counted in mentions. |
creators | Creators 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_read | Posts the project’s searches read in the period, whatever the filters. |
videos_watched | Videos 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.
| Field | Type | What it holds |
|---|---|---|
id | string | The mention’s id. |
object | string | "mention". |
tracker | object | {id, kind, name, own}: what the post mentions. |
platform | string | The platform the post is on. |
kind | string | organic, sponsored or own; see the table below. |
where | string | said, shown or written: the strongest place the brand appears in the post. |
source | string | search when the post’s own words name the brand, watch when only its sound or picture does. |
sentiment | string | null | positive, neutral or negative towards the brand or competitor it names; null when it wasn’t read. |
route | string | How it was matched: caption, tagged, subtitles or watched; see the table below. |
matched_term | string | null | The keyword, #tag or @handle that matched; null when it isn’t known. |
places | object[] | [{where, quote, at_sec}]: every place found, said first, then shown, then written. |
quote | string | The post’s own words at the strongest place, verbatim; a tagged post’s is the account. |
at_sec | number | null | The second the quote is said or shown; null for a written mention. |
watched | boolean | True when WhyViral watched the post, not only read its text. |
hidden | boolean | True for a mention marked “not a mention”; it counts nowhere. |
hidden_by | string | null | user when the owner hid it, read when the relevance read judged it unrelated; else null. |
posted_at | string | null | When the post was published. |
found_at | string | null | When WhyViral found the mention. |
views | number | null | The post’s views at its last read. |
likes | number | null | Its likes. |
comments | number | null | Its comments. |
shares | number | null | Its shares. |
post | object | {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. |
creator | object | null | The creator’s fields, plus saved: whether they are among the project’s saved creators. |
campaign | object | 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
where | Where the brand appears |
|---|---|
said | Heard in a video WhyViral watched. at_sec is the second. |
shown | On screen in a video or on a slide WhyViral watched. at_sec is the second. |
written | In the post’s own caption or text. at_sec is null. |
kind | Whose post it is |
|---|---|
organic | Anyone’s post with no ad label. |
sponsored | A post with a paid-partnership or ad label, or an ad hashtag such as #ad. |
own | A post by one of the tracker’s own accounts. Counted only when you ask for kind=own. |
source | How it was found |
|---|---|
search | The post’s own words name the brand: a search of the platform found it. |
watch | Only the post’s sound or picture names the brand: watching it found it. |
route | How the post was matched |
|---|---|
caption | Its own caption, text or hashtags name it. |
tagged | It tags one of the tracker’s accounts. |
subtitles | The platform’s own subtitles say it. |
watched | Only 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.
| Field | What it holds |
|---|---|
id | The tracker’s id. |
kind | brand for the project’s own, else competitor. |
name | The brand’s name. |
own | True for the project’s own brand. |
mentions | Organic and sponsored mentions found in the period. |
share | Its part of total_mentions, 0 to 1; null when none were found. |
previous_share | The same for the period before. |
views | Views on those posts. |
creators | Creators behind them. |
by_where | {said, shown, written}. |
watch_only | Mentions found only by watching: no search of captions returns them. |
sponsored_share | Sponsored mentions over all of them, 0 to 1; null without mentions. |
sentiments | {positive, neutral, negative}: the mentions read for it. |
change_pct | Whole percent against the period before; null when that one had fewer than 10 mentions. |
change | The 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_share | topic_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"| Field | What it holds |
|---|---|
id | The alert’s id. |
object | "alert". |
kind | What it is about; see the table below. |
source | The run that raised it: search, watch or campaign. |
created_at | When it was raised. |
read | Whether it was marked read in the app. |
tracker | {id, kind, name, own}: the tracker it is about; null for campaign, run and balance. |
mention | The mention of new_mention, negative and competitor: {id, where, quote, at_sec, sentiment, views, posted_at, post_url, creator}. |
campaign_post | The 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. |
code | Why a run was limited, skipped or failed. |
credits_left | The balance when a balance alert was raised. |
kind | What raised it |
|---|---|
new_mention | A post naming the project’s own brand, with at least the views its rule asks for. |
negative | A post read as speaking against the project’s own brand. |
competitor | A saved or campaign creator’s post names a competitor. |
campaign | A campaign post with a problem: no disclosure, a missing term or a competitor. |
spike | A day with far more mentions of a brand than its week before. |
run | A search or a watch that read less than planned, was skipped or failed. |
balance | Too few credits left for the next runs; raised once a week. |