These endpoints return what a project holds about creators and campaigns, as the key’s owner, and create report links. They are free. None of them starts a creator check, a watch or a campaign: those start in the app.
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.
Creators
Every creator comes with the same public fields.
| Field | What it holds |
|---|---|
id | The creator’s id, which /creators/{id} and a report take. |
platform | The platform the account is on. |
handle | Their handle, without @. |
name | Their display name. |
profile_url | Their profile on the platform. |
avatar_url | A public avatar image WhyViral hosts. |
followers | Their follower count, when the platform shows it. |
country | The country their profile states, as written. |
country_code | That country as an ISO 3166-1 alpha-2 code, when WhyViral recognizes it. |
A profile says what a creator’s posts show, never who the person is. A creator WhyViral removed at their request appears in no answer.
Saved creators
GET /creators/saved lists a project’s saved creators, newest first.
| Field | What it holds |
|---|---|
object | "saved_creator". |
typical_views | The views their videos usually get, from the posts WhyViral holds. |
median_views | Median views of their recent posts: from their profile, else their last check. |
engagement_rate | A fraction: 0.03 is 3%. Per view, or per follower on Instagram. |
status | new, contacted, agreed or rejected. |
saved_at | When they were saved. |
fit | {verdict, summary, reasons, concerns, checked_at} once a creator check ran; verdict is strong, possible or weak. It is a read of their public posts against the project’s brief, not a fact about the person. |
findings | What their posts show about the project’s competitors; see the table below. |
conflict | {state, competitors, not_found, found, posts_read, videos_watched, from, to}: whether their posts name a competitor. state is clear, named, sponsored or not_checked; each of found is {competitor, kind, posts, last_at, places}, and kind says who likely paid: sponsored, likely_hidden, unclear, organic or own. |
criteria | [{requirement, level, verdict, reason, by, evidence}]: the project’s criteria as answered. verdict is met, not_met or not_shown; not_shown means nothing read answers it, never that it is unmet. by is numbers, quick, deep or null, and each piece of evidence is {kind, text, at, unit, post_url}. |
depth | What answered the criteria: free from stored data alone, quick once a check read the profile, deep once videos were watched for it. |
lists | The names of the project’s lists they are in. |
vetted_at | When the owner marked them vetted, else null. |
findings says whether the project’s competitors appear in the creator’s stored posts and the videos WhyViral watched. No finding means none in what was read, which posts_read and videos_watched count.
| Field | What it holds |
|---|---|
state | found, clear, or not_checked when nothing of theirs was read or the project lists no competitor. |
competitors | Competitors the project lists. |
found | How many of them appear in what was read. |
posts_read | Their stored posts that were searched. |
videos_watched | Their posts WhyViral watched. |
finding | The newest finding: {competitor, where, quote, at, unit, post_url, posted_at, views}. |
flag | The strongest brand-safety flag of their watched posts: {key, level, severity, at, unit, evidence}. |
criteria answers the project’s must-haves and nice-to-haves from what WhyViral read: stored numbers and posts, a creator check, then watched videos. not_shown means nothing read answers one; it is never a no.
Search
GET /creators/search searches the creators WhyViral has profiled, not everyone on a platform. q is a sentence about what they post, up to 300 characters, matched by meaning; numbers, a platform and countries it states become filters, which understood reports back.
curl -G "https://whyviral.ai/api/v1/creators/search" \
-H "Authorization: Bearer $WHYVIRAL_API_KEY" \
--data-urlencode "q=home bakers who show their pricing, over 50k followers" \
-d "sort=median_views"| Field | What it holds |
|---|---|
object | "creator". |
description | What their posts show, in a sentence or two. Never who the person is. |
tags | Short labels for what they post. |
account_type | creator, group, brand or faceless. |
language | The language they post in, as an ISO 639-1 code. |
numbers | {followers, median_views, engagement_rate, engagement_per_view, engagement_per_follower, posts_per_week, posts_per_month, last_post_at, paid_share, sample_size, as_of}, worked out from the sample_size posts held at as_of. |
promoted | Brands their recent posts promoted. |
posts | [{url, posted_at, views, cover_url}]: a few of their recent posts. |
findings | What their posts show about the project’s competitors. |
read | False for a creator in the project’s results whose posts WhyViral hasn’t read: the numbers are what a search gave. |
followers_growth | {d30, d90, d180}: growth of their followers over the days, as a fraction; null without a read that old. |
languages | [{code, from, posts}]: the languages their captions are written in or watched posts speak, as ISO 639-1 codes. |
countries | [{code, from, posts, text}]: countries the platform’s own field (profile), their bio or their captions show, and the words that do. Never guessed from a name, a face or a language. |
why | [{type, name, posts, mention}]: why they are in the project’s results, strongest first, type being brand, competitor, hashtag, campaign, topic or search. Empty outside them. |
conflict | {state, competitors, not_found, found, posts_read, videos_watched, from, to}: whether their posts name a competitor. state is clear, named, sponsored or not_checked; each of found is {competitor, kind, posts, last_at, places}, and kind says who likely paid: sponsored, likely_hidden, unclear, organic or own. |
criteria | [{requirement, level, verdict, reason, by, evidence}]: the project’s criteria as answered. verdict is met, not_met or not_shown; not_shown means nothing read answers it, never that it is unmet. by is numbers, quick, deep or null, and each piece of evidence is {kind, text, at, unit, post_url}. |
open_criteria | Criteria nothing has answered yet: what a creator check adds. |
saved | True when the project already saved them. |
score | How close they are to your sentence, 0 to 1; null without a sentence. |
scope=results searches only the creators in the project’s results: the ones behind its mentions, its topic videos, its own searches and its campaigns. why says which of those put each one there. Pages follow next_offset.
sort | Order |
|---|---|
match | Closest to the sentence first; the default. |
followers | Most followers first. |
median_views | Highest median views first. |
engagement_rate | Highest engagement rate first. |
posts_per_month | Most posts a month first. |
last_post | Most recent post first. |
follower_growth | Fastest follower growth over 90 days first. |
mentions | Most mentions in the project’s results first. |
Searches are limited per account, together with the searches made in the app; see Limits.
One creator
GET /creators/{id} returns one creator with what the project found in their posts. Each finding and flag carries its position (at, counted in unit) and the post’s link.
| Field | What it holds |
|---|---|
object | "creator_report". |
project | {id, name}: the project the findings are for. |
saved | True when the project saved them. |
profile | {description, tags, account_type, language, numbers, read_at}: what their posts show, never who the person is. Null until WhyViral has profiled them. |
posts_read | Their stored posts that were searched. |
videos_watched | Their posts WhyViral watched. |
competitors | {total, found, findings}: each finding is {competitor, where, quote, at, unit, post_url, posted_at, views}. |
brands | [{name, label, type, posts, last_at, competitor}]: brands their posts promoted. label is disclosed, likely_hidden, unclear or mention; competitor marks one of the project’s. |
safety | [{key, level, severity, posts, mild, strong, items}]: brand-safety flags of their watched posts and how many posts raise each mildly or strongly, each item {at, unit, evidence, post_url}. |
post_topics | [{key, posts, items}]: watched posts about politics and social issues or religion. They are facts about those posts, never said of the creator. |
conflict | {state, competitors, not_found, found, posts_read, videos_watched, from, to}: whether their posts name a competitor. state is clear, named, sponsored or not_checked; each of found is {competitor, kind, posts, last_at, places}, and kind says who likely paid: sponsored, likely_hidden, unclear, organic or own. |
fit | {depth, summary, criteria, watched_videos, watching}: every criterion of the project with its answer. summary is {must, nice}, each {total, met, not_met, not_shown}. |
collaborations | [{name, competitor, own_brand, posts, sponsored, likely_hidden, unclear, organic, first_at, last_at, post_list}]: every brand their read and watched posts name, newest first, with the posts behind it. |
history | {points, followers_growth, views_growth}: their numbers over time, oldest first, one point a week and then one a month. |
paid | {paid_posts, paid_median_views, other_posts, other_median_views}: posts with the platform’s paid label beside the rest. |
languages | [{code, from, posts}]: the languages their captions are written in or watched posts speak, as ISO 639-1 codes. |
countries | [{code, from, posts, text}]: countries the platform’s own field (profile), their bio or their captions show, and the words that do. Never guessed from a name, a face or a language. |
other_accounts | [{platform, handle, url}]: accounts their own bio or link names. |
last_read_at | When WhyViral last read their posts. |
in_project | {lists, vetted_at, campaigns, own_mentions, own_sponsored, own_last_at}: the project’s lists and campaigns they are in, and their mentions of its brand. |
requirements | {videos, pending, items}: the answers to the project’s own requirements, from the owner’s watch of their videos. Null without one. |
posts | [{url, kind, posted_at, views, likes, comments, shares, cover_url, watched, competitors}]: recent posts the account may see. |
A fit verdict, a finding and a brand-safety flag are automated reads of public posts. They can be wrong, and none of them is a fact about the person.
Campaigns
A campaign is creators a project hired, whose public posts WhyViral reads once a day while it is active. GET /campaigns lists them, GET /campaigns/{id} adds each creator’s totals and the posts that raised an alert, and GET /campaigns/{id}/posts pages through the posts with next_cursor.
| Field | What it holds |
|---|---|
id | The campaign’s id. |
object | "campaign". |
name | Its name. |
status | active or ended. |
required_terms | The tags and handles a campaign post must carry. |
flag_undisclosed | Whether a campaign post without an ad disclosure raises an alert. |
flag_competitors | Whether a post that names a competitor does. |
start_at | The instant the campaign starts: midnight of start_day in its owner’s timezone. Posts since then are read. |
start_day | The start as the calendar day its owner picked, YYYY-MM-DD. Show this one: the UTC date of start_at can be the day before. |
ended_at | When it was ended, else null. |
end_day | Its last day, YYYY-MM-DD in its owner’s timezone; it ends by itself after a last read. Null without one. |
expected_posts | Campaign posts each creator owes; null when none are expected. |
creators_done | Creators with that many campaign posts; null when none are expected. |
created_at | When it was made. |
creators | Creators in the campaign. |
creators_posted | How many of them have a campaign post. |
posts | Campaign posts found. |
views | Their views at the last read. |
all_posts | Every post the creators published since the start. |
alerts | Posts that raised an alert. |
last_read_at | When the creators’ posts were last read. |
next_read_at | When they are read next; null once it ended. |
| Field | What it holds |
|---|---|
id | The post’s id in the campaign. |
object | "campaign_post". |
url | The post’s link. |
kind | video, slides or text. |
text | Its caption or text. |
cover_url | A public cover image WhyViral hosts. |
platform | The platform it is on. |
posted_at | When it was published. |
views | Its views at the last read. |
likes | Its likes. |
campaign | True for a campaign post: it meets the required terms or names the brand, or the owner added or moved it there. |
names_brand | Whether it names the project’s brand. |
disclosure | {how, text, at_sec}: the ad disclosure found, by label, hashtag, said or shown. |
terms_met | Whether every required term is present. |
missing_terms | The required terms it lacks. |
used_terms | [{term, where}]: where each required term it carries was found; where is caption, shown or said. |
moved | The owner’s own word on whether it is a campaign post; null while its terms decide. |
added | True when its owner added it by its link. |
competitor | {name, where, quote, at, unit}: a competitor it names. |
alerts | undisclosed, missing_terms and competitor; see the table below. |
watched | True when WhyViral watched it, not only read its text. |
creator | The creator’s fields. |
alerts | What raised it |
|---|---|
undisclosed | A campaign post with no ad disclosure, when the campaign flags that. |
missing_terms | A campaign post that lacks a required term; missing_terms lists them. |
competitor | A post since the start that names a competitor; competitor quotes it. |
Reports
A report is a page frozen when it is made, with a link to send to someone else. Anyone who has the link can open it with no account, so share it with care. GET /reports lists a project’s reports and POST /reports makes one.
curl -X POST https://whyviral.ai/api/v1/reports \
-H "Authorization: Bearer $WHYVIRAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"kind": "mentions", "days": 30, "prepared_by": "Northlight Social"}'kind | Also send | What the page shows |
|---|---|---|
mentions | days (7 or 30); creator_check, one saved creator’s id, to add their check | The brand’s mentions and ranking over the period. |
creators | creators: 1 to 10 saved creators’ ids | The creators side by side: numbers, what their posts show, findings and flags. |
campaign | campaign: a campaign’s id | The campaign’s totals, creators and posts. |
| Field | What it holds |
|---|---|
id | The report’s id. |
object | "report". |
kind | mentions, creators or campaign. |
title | The page’s title. |
prepared_by | The name the page shows as “Prepared by”; empty for none. |
url | The page’s link. Anyone who has it can open it with no account; null once revoked or expired. |
period_from | The start of what the report covers. |
period_to | The end of what it covers. |
hidden | Sections its owner hid on the page. |
created_at | When it was made. |
revoked_at | When its link was revoked, else null. |
expires_at | When its link stops opening; null while it has no end. |
An account can create 100 reports a day through the API, whichever of its keys asks. Revoking or deleting a report happens in the app; a revoked one keeps its row and its url becomes null.