viralhunt-mcp
v1.1.38Trending content on 13 networks, best time, hashtags, templates, drafts and review, publish to 11.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
viralhunt_trending
Find trending/viral posts on a social network, ranked by viral score (engagement velocity). Sources: tiktok, instagram, x, facebook, pinterest, bluesky, douyin, reddit, mastodon, tumblr, hackernews, and rss (news articles from 230 feeds plus articles discovered through social links, each with Facebook/Reddit/Bluesky/Hacker News/comment signals). Each post carries growth_24h when we hold at least two readings of it: {from, to, delta, percent, hours, measured_at, samples}. Read it carefully: growth_24h null means 'we cannot say', NOT zero (Facebook and Pinterest never carry it); delta 0 with sam…
| Parameter | Type | Description |
|---|---|---|
source * | string | Which network to pull trending from. |
author | string | ONE page or account only (facebook page name, x handle or name, tiktok or instagram username; contains-match). 'The most viral posts of the page X in 2025' = source + author + time_range=1y. |
category | string | rss only: ONE news category, a name or id from viralhunt_news_categories (exact name, case-insensitive; unknown = 422 with the valid names). Technology and Artificial Intelligence are two categories:… |
keyword | string | Filter by keyword/niche (matched in title, text, hashtags or author). When it matches next to nothing the answer carries `searching`: our agents search it now; relay its message once and check viralhu… |
min_engagement | integer | Minimum engagement on the network's main metric. |
page | integer | Page number for more results. |
per_page | integer | How many results (max 100). |
sort | string | viral (default), engagement, newest, oldest, plus per network: most_liked, most_viewed, most_commented (accepted on every network that counts comments: the threads to comment in), most_retweeted, most… |
subreddit | string | reddit only: restrict to one subreddit (with or without r/). |
time_range | string | Time window on the post's own publish date: any number with a unit (24h, 7d, 30d, 2w, 3m, 1y), a bare number of days, or all (default 7d). An unknown value is a 422. Tumblr's corpus fills slowly: use… |
viralhunt_news_categories
The categories of the news corpus (source rss), with how many feeds carry each and how many articles arrived in the last 7 and 30 days. Read it once before asking for news on a subject, then pass a name as category on viralhunt_trending (source rss). Not the Editorial Board categories. Technology and Artificial Intelligence are separate categories.
viralhunt_account
Who this key is: plan (free/creator/studio/agency), requests per hour, whether it can publish, today's daily content-query quota (free plan: 24 shared across trending, search, best-time, hashtags, sounds, communities, calendar, quotes; templates, board context and news categories spend none), credits balance, and per-endpoint rules. Call it once at the start and again on a 429 or 402, and set expectations from it (free plan: trending is 72h delayed and numbers are withheld, never print 0). On the Free plan connecting accounts, publishing, scheduling and Review are not available, so never propo…
viralhunt_search
Search one keyword across every network at once (or a chosen subset) and get one merged, ranked list: each row normalized to platform, id, title, description, post_url, thumbnail_url, author_name, author_handle, engagement_score, stats, growth_24h, created_at, plus the network's full row under raw. sources[] says per network how many posts matched (total), so you can tell the user where the topic lives and where the corpus holds nothing (total 0 = say so, never invent posts). All words must appear, in any order. Use viralhunt_trending when the user wants ONE network with its own sorts and pagi…
| Parameter | Type | Description |
|---|---|---|
keyword * | string | The words to find (all must appear). |
min_engagement | integer | |
per_source | integer | Rows per network (default 10). |
sort | string | |
sources | string | all (default) or a comma list: pinterest,x,reddit,tiktok,instagram,facebook,bluesky,douyin,mastodon,tumblr,hackernews,rss. |
time_range | string | Window on the post's own date (default 30d): a number with a unit, a bare number of days, or all. |
viralhunt_search_requests
The keywords our agents (the always-on extension sweep) are searching for this organization because a search, by a person in the app or by an agent through viralhunt_search / viralhunt_trending, found next to nothing. Each request: status (queued: no network searched it yet; running: some did; done: all did, the email and webhooks go out within the hour; notified: sent), the networks with searched_at and new_posts, the total new posts, and `fetch`, the search call that reads what was found. Use it instead of asking the same keyword again. Not metered: it spends no search of the daily quota.
| Parameter | Type | Description |
|---|---|---|
keyword | string | One keyword (as it was searched). |
limit | integer | |
status | string | open = not notified yet; done = notified; all (default). |
viralhunt_targets
List the user's projects/brands and the connected social accounts you can publish to in each. Also returns needs_reconnect (expired connections: not targets until a person reconnects them in the app; name the network before publishing), media_limits per network (image bytes: bigger ones are re-encoded to fit; video bytes and seconds: a bigger or longer video is refused for that network only, with the numbers; text length), each project's lang and translates_to (linked projects in another language), and must_draft: '' = this token may publish directly; 'role' = a member or agent token: every po…
| Parameter | Type | Description |
|---|---|---|
project | string | Project name to scope the accounts to (optional). |
viralhunt_schedule
Publish now, schedule, or (default when the user did not ask to publish right now) leave a DRAFT of a post on a project's connected accounts. Ask the user before publishing or scheduling: it posts to real accounts. Verify content first: never fake news, copyrighted media or spam. Never use another page's text as the copy or its branded picture as the post's picture: the picture comes from the organization's templates (viralhunt_get_template), either rendered by you and passed in media, or passed as `design` with draft=true so the app renders it when a person approves. Returns {id, status, resu…
| Parameter | Type | Description |
|---|---|---|
allow_duplicate | boolean | Only when the user wants a second copy on purpose: the duplicate firewall otherwise refuses an account another post of the last 72 hours already carries the same text for (409 duplicate_post when ever… |
assigned_to | integer | The member who takes this post over (an id from viralhunt_members; agents count): its board card is assigned to them and they get the notification. Also on viralhunt_update_post. |
author_notes | string | For the reviewer, never published: the source link, the picture's origin, what you verified. Put the source link HERE, never in the body (the networks cut the reach). |
body | string | Caption/text. Optional if media or design is provided. |
card_id | integer | The Editorial Board card this post comes from (optional). |
carousel | boolean | Only when the user asked for a carousel: allows several pictures in media. Without it a second picture answers 422 multiple_pictures. |
design | object | ALWAYS when the picture was made from a ViralHunt template, even if you also rendered and uploaded the PNG (a PNG alone cannot be edited in the app; the design opens the editor on that template): {"te… |
draft | boolean | true = a working copy in Drafts you still mean to edit (viralhunt_update_post, then viralhunt_submit_draft). Every draft is also an Editorial Board card (card_id in the answer) that moves with the pos… |
first_comment | string | Optional first comment (link-in-comments). |
kind | string | What the post IS. The reviewer applies only that kind's rules (a meme is never asked for a source). A post from a card takes the card's category when omitted. |
media | array | Public image/video URLs. ONE picture per post (a post made on a template has exactly one, its render). Check media_limits (viralhunt_targets) before a big video. |
networks | array | Post to every account on these networks, e.g. ["instagram","facebook"]. |
overrides | object | Per network (or per account id), only what that account needs to differ: {"bluesky": {"body": "the 300-character version", "thread": [{"body": "part 2"}]}, "12": {"media": ["…"], "first_comment": "i… |
project | string | Project name — REQUIRED if the org has more than one project. |
project_id | integer | Project id — alternative to project name. |
scheduled_at | string | ISO-8601 UTC, e.g. 2026-08-01T15:30:00Z. Omit = publish now (or, with draft, the tentative time is 'when approved'). |
stage | string | Where the post lands, in one word: draft = a working copy (same as draft: true), review = complete and waiting for an owner or admin, even from a token that could send. |
target_account_ids | array | Exact account ids (from viralhunt_targets). Omit = all accounts in the project. |
viralhunt_drafts
List the posts not yet sent (this project, or every project with all=true): stage 'draft' = being worked on, 'review' = complete and dated, waiting for an owner or admin. Each carries stage, body, media, targets, scheduled_at, overrides, card_id, submitted_via (api = from an agent), design, lang, translated_from_id, assigned_to and assigned_to_name (the member it is assigned to), review {score, verdict, reviewed_at, entries[]}, needs_review (no verdict on its current content), valid_verdict, content_hash and updated_at.
| Parameter | Type | Description |
|---|---|---|
all | boolean | true = every project of the organization. |
assigned_to | integer | Only the posts assigned to this member (a user id from viralhunt_members). |
needs_review | boolean | true = only posts with no verdict on their current content (the reviewer's queue). |
project | string | Project name (default: the org's first project). |
project_id | integer | |
stage | string | One stage only (default: both). |
viralhunt_policy
The content rule a reviewer applies before any OK, kept on the platform so it changes without a release: what blocks a post (policy_* codes), what sends it back to Drafts (fix_* codes), the six scores (tos_risk, rights, fake_news, sensationalism, brand, grammar; 100 = clean) with the thresholds the server recalculates the verdict with, the extra readings every review carries (risk10 1 safe to 10 breaks a network's terms, image_match, ai_written), the kinds (fact, meme, quote, opinion, promo: a meme or a quote never gets a source or DOI demand), what changes per network, and the server rules an…
viralhunt_review_queue
The reviewer's queue: posts in Review, every project, with no verdict on their current content (never reviewed, or edited after the last verdict). Same rows as viralhunt_drafts. Read viralhunt_policy first, then one viralhunt_review_draft per post.
| Parameter | Type | Description |
|---|---|---|
project_id | integer | One project only (default: every project). |
viralhunt_review_stats
Flags per collaborator (owner, admin, or a reviewer marked 'Their OK publishes'): for the last days (7 = week, 14 = fortnight, 30 = month), per person or agent who authored posts: reviews, ok / fix / block, flags (a fix or block, or any policy_* / fix_* warning), codes (how many of each rule, e.g. fix_doi), avg_risk10 and last_flag_at. The Team page shows the same table.
| Parameter | Type | Description |
|---|---|---|
days | integer | 7, 14 or 30 (default 30). |
viralhunt_submit_draft
Move a draft to Review once it is complete (a body or media, and at least one account): it waits there for an owner or admin to authorize it. now=true clears the time (it goes out when authorized); scheduled_at sets one; neither keeps the draft's own. Nothing is sent. On the Free plan Review is not available (403 upgrade_required): the draft stays saved and editable in the app.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The draft id. |
now | boolean | |
scheduled_at | string | ISO-8601 UTC. |
viralhunt_review_draft
Append your review to a post in Review: verdict ok|fix|block, a score 0-100, per-topic scores (tos_risk, rights, fake_news, sensationalism, brand, grammar; 100 = clean) plus risk10 (1 safe to 10 breaks a network's terms), image_match and ai_written (0-100), one warning per issue with the policy's code (policy_* / fix_*), the network it concerns and the severity, and a short note on how to fix it, in the post's language. Judge against viralhunt_policy (read it first), network by network; verify claims with viralhunt_search / trending rss. `fix` sends the post back to Drafts with your note (retu…
| Parameter | Type | Description |
|---|---|---|
id * | integer | The draft id. |
verdict * | string | |
content_hash | string | The content_hash of the drafts row when you read the post. Always send it. |
note | string | How to fix it, and the source you verified against. |
score | integer | |
scores | object | {"tos_risk": 90, "fake_news": 70, "sensationalism": 80, "grammar": 95, "risk10": 3, "image_match": 85, "ai_written": 40} |
warnings | array |
viralhunt_approve_draft
Send a draft (owner or admin token only, and never without the user's explicit yes). A draft blocked by its last review cannot be approved until it is fixed and reviewed again. `translations` makes the translated draft in each linked project in the same call (see viralhunt_translate_post). Returns {status, results, warnings, translations[]}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The draft id. |
allow_duplicate | boolean | Only when the user wants a second copy on purpose: the duplicate firewall otherwise refuses an account another post of the last 72 hours already carries the same text for (409 duplicate_post when ever… |
translations | array |
viralhunt_translate_post
Make the translated draft of a post (a draft or one already sent) in a linked project that publishes in another language. The app adapts the copy, the first comment, the per-network copies, the thread and the TEXT variables of a design (hashtags in the new language; links, mentions, numbers and names kept): do not translate yourself. A design keeps its picture and the answer carries needs_png=true with render {html, css, format}: render it, store the PNG with viralhunt_update_post {id, png}, then approve if wanted. A plain picture (no template) stays unless `image` hands the translated one. Th…
| Parameter | Type | Description |
|---|---|---|
id * | integer | The source post id. |
project_id * | integer | The target project (from translates_to on viralhunt_targets). |
account_ids | array | Accounts of the target project (default: all postable). |
image | string | https URL of the translated picture, for a post whose picture is not a template. |
lang | string | Override the target language (es, en, pt, fr, de, it…). |
send_mode | string | draft (default) waits in the target project; send (owner/admin) goes out at once when there is nothing to render. |
viralhunt_edit_log
What people changed in drafts after an agent left them: one row per field (body, media, targets, scheduled_at, first_comment, overrides, thread, design) with before, after, who and when, plus by_field counts. Drafts with submitted_via=api came from an agent: those edits are what the person did not like. Read it at the start of each batch and apply the pattern (shorter captions, another picture, another hour).
| Parameter | Type | Description |
|---|---|---|
id | integer | Only one draft's changes. |
limit | integer | |
since | string | ISO-8601: only changes after this moment. |
viralhunt_sync_post
Refresh the status of this organization's posts from the networks (call before viralhunt_get_post when the answer matters). Returns how many rows were re-read.
viralhunt_get_post
Get the current status and per-network results (incl. permalinks) of a post you created. Also events[] (the delivery log: created, accepted by PostProxy, published with its link, refused with the reason, retried, canceled, reviewed, approved) and support_text, the text to hand the user when they ask what happened to a post. Statuses: scheduled (queued), processing (handed to the networks, or a target being retried), published (every target live), partial (some refused: each failed results[account].error carries the network's own words and error_message sums it up), failed, draft, canceled. The…
| Parameter | Type | Description |
|---|---|---|
id * | integer | The post id returned by viralhunt_schedule. |
viralhunt_render_preview
SEE THE FINAL PICTURE of a post before you hand it over: returns the image the post will publish (its rendered template PNG or its uploaded photo) as an image you can look at, reduced to about 1000 px. Use it on every draft you make or edit, to check the photo shows what the text says, the headline fits, the coloured words are the right ones and nothing covers the logo; fix and look again before telling the person it is ready. It never creates or changes anything. A template design that was never rendered has no picture yet (409 not_rendered): it renders when the person saves it in the app edi…
| Parameter | Type | Description |
|---|---|---|
id * | integer | The post id (a draft, a post in review or a sent one). |
max | integer | Long side in px (default 1000). Ask for more only to read small text. |
viralhunt_fetch_image
Look at a picture by its public URL: the server downloads it and returns it as an image you can see (about 1000 px). You cannot open URLs yourself, so use this before putting any photo into a template: check it really shows what the post says, has no watermark or other brand's logo, and survives the template's crop (portrait feed 4:5, story 9:16). http(s) only; private, local and non-image addresses are refused with the reason. Read only.
| Parameter | Type | Description |
|---|---|---|
url * | string | The picture's public http(s) URL (for example image_url from viralhunt_search_images). |
max | integer | Long side in px (default 1000). |
viralhunt_search_images
Find a licensed photo for a post: searches Wikimedia Commons and returns each result with a small thumbnail you can see, plus title, author, license, license_url, attribution_required, a ready credit line, size, the file page and image_url (put image_url in the template's image variable). The license comes from Commons itself: never use a result whose license is null, and credit the author (credit) when attribution_required is true. Look at the thumbnails, open the best one at full size with viralhunt_fetch_image, then build the post. Read only; spends no daily query.
| Parameter | Type | Description |
|---|---|---|
query * | string | What the photo should show, in plain words (a place, a person, an object). English names find more. |
limit | integer | How many results (default 6, max 10). |
viralhunt_upload_media
Upload a picture or video you made (or a logo) and get its public URL, to use in a post's media or in a template variable. Send it as base64 or a data: URL with a filename that carries its extension (jpg, png, gif, webp, mp4, mov). purpose='brand' is for a logo or picture placed INSIDE a design (PNG, JPG or WebP, 2 MB). The server checks the bytes match the extension. Writes a file; creates no post. One call carries about 5 MB (a picture, a rendered card); a video goes through the API in parts (POST schedule.php?action=upload_chunk, see the docs) or as a public URL in a post's media.
| Parameter | Type | Description |
|---|---|---|
data * | string | The file as base64, or a data: URL (data:image/png;base64,...). |
filename | string | Name with extension, e.g. card.png (needed unless data is a data: URL). |
purpose | string | 'brand' for a logo or a picture placed inside a design. |
viralhunt_update_post
Edit a post. A DRAFT can be changed freely by its author, an owner or an admin (body, media, overrides, first_comment, targets, scheduled_at, design, and png: the a reviewer marked 'Their OK publishes' may change only overrides (a per-account short copy), kind, and the texts inside the image (design_fields {variable key: text}, never a picture variable or caption; with its png) on someone else's post). design_fields works on posts made on a template only (a flat picture answers no_design); without png the old render leaves (needs_png + render in the answer). overrides is MERGED per account: se…
| Parameter | Type | Description |
|---|---|---|
id * | integer | The post id. |
assigned_to | Drafts and posts in review: the member who takes it over (a user id from viralhunt_members; agents count); null unassigns. Their board card, their notification. A trusted reviewer may assign on someon… | |
author_notes | string | Drafts: notes for the reviewer, never published (the source link goes here). |
body | string | New caption. |
carousel | boolean | Only when the user asked for a carousel: allows several pictures in media. Without it a second picture answers 422 multiple_pictures. A post made on a template always has ONE picture, its render. |
design | object | The filled template of this post (see viralhunt_schedule): send it to repair a post that went out with a PNG only, so its image becomes editable. |
design_fields | object | Drafts made on a template: {variable key: corrected text} for the texts inside the image (text variables only, never caption). Send the new png with it when you can render. |
first_comment | string | Drafts: the first comment. |
kind | string | Drafts: what the post is. |
media | array | New media URLs (replaces the set). |
networks | array | New network set (adds/removes targets). |
overrides | object | Per account id (or network): body, media, first_comment, thread. Merged per key; null removes one. On a scheduled post, only that account's network is patched. |
png | string | Drafts: data:image/png;base64,… of the rendered design; stored as the post's ONE picture (it replaces any picture the post had). |
scheduled_at | string | New ISO-8601 UTC time (must be in the future). |
target_account_ids | array | New exact account-id set. |
thread | array | The post's thread (X/Threads natively, Mastodon as a reply chain). On a scheduled post a changed thread makes the X/Threads post again. |
viralhunt_stats
Engagement of the published posts as the networks report it back: by_network, by_project and top_posts (with permalinks). ready=false means nothing collected yet. Use it to answer 'what worked' and to find more like the winners (viralhunt_search on the winning topic); never invent a number.
| Parameter | Type | Description |
|---|---|---|
days | integer | Window in days (default 30). |
limit | integer | |
network | string | |
project | string | |
project_id | integer |
viralhunt_calendar
The calendar base: the international days (UN, UNESCO, WHO) and the anniversaries of science, technology, space, health, the environment and civilization in a window of days, each with `why` (what is celebrated or what happened, and why it matters: write the caption FROM it, never from memory), kind (observance repeats every year; event, birth, death carry year and years_ago), category, origin, importance (3 = most brands can post about it, 2 = worth it inside its category, 1 = niche), image_url (a free Wikipedia thumbnail when there is one), source_url. Use days=7 or 31 to plan ahead; post on…
| Parameter | Type | Description |
|---|---|---|
calendar_id | integer | |
category | string | One or several: science,technology,space,health,environment,humanity,civilization,education,culture,economy. |
date | string | YYYY-MM-DD or today (default today, UTC). |
days | integer | How many days from date (default 1). |
kind | string | |
lang | string | |
mark_used | boolean | true with calendar_id = record that you posted about it this year. |
min_importance | integer | 3 = the big days only, 2 = worth a post (recommended), 1 = everything. |
note | string | |
q | string | Keyword in the title, the text or the tags. |
stats | boolean | true = how many rows per category and kind instead of the rows. |
unused | boolean | true = leave out what this organization already posted about this year. |
viralhunt_quotes
Quotes ranked by our popularity score, for daily-quote series: text, author, author_context (description, born, died), work, categories, rights, popularity high|medium|low and author_image (portrait url, licence, credit). Default rights=public_domain (authors dead more than 70 years): keep it unless the user asks for a modern author, and with rights=any tell the user a quote is restricted before scheduling it under their brand. Write the caption's context FROM author_context and work, never from memory. categories_list=true lists the categories held. unused=true leaves out what this organizati…
| Parameter | Type | Description |
|---|---|---|
author | string | Part of an author's name. |
categories | string | Several mixed: stoicism,leadership. |
categories_list | boolean | true = list the categories instead of quotes. |
category | string | One category, e.g. stoicism. |
lang | string | Language of the quote (default en). |
max_chars | integer | Default 180: what the quote templates fit. |
page | integer | |
per_page | integer | |
rights | string | |
sort | string | |
unused | boolean |
viralhunt_mark_quote_used
After scheduling a quote, mark it used for this organization so the next pick (unused=true) is a different one.
| Parameter | Type | Description |
|---|---|---|
quote_id * | integer | |
note | string | e.g. 'scheduled 2026-09-20 09:00 instagram'. |
viralhunt_recipes
The standing orders of a brand, saved by a person in the app: each recipe says what to post from (source quotes|trending|manual with source_params, and source_call = the exact request that fetches the content), which template (template.slug for viralhunt_get_template), format, networks, cadence (daily|weekdays|weekly|manual), post_time in the project's timezone (null = the network's best time), caption_brief and last_run_at. Nothing runs on the server: you do the loop (fetch, fill, render, schedule, mark the quote used, then viralhunt_recipe_ran). daily with last_run_at older than today = due.…
| Parameter | Type | Description |
|---|---|---|
active | boolean | |
project_id | integer | One brand (default: every active recipe of the organization). |
viralhunt_recipe_ran
Stamp a recipe run so the person sees in the app that it happened.
| Parameter | Type | Description |
|---|---|---|
recipe_id * | integer | |
note | string |
viralhunt_brand_status
Every brand (project) of the organization and whether it is being watched: keywords count, category, webhook set, alerts in the last 7 days, and per network when the extension (or the Reddit cron) last searched its keywords (last_run, never_run, found). keywords: 0 = not watched, offer to set them; never_run with an old last_run = the always-on machine is off, tell the owner.
| Parameter | Type | Description |
|---|---|---|
project_id | integer | One brand only (default: all). |
viralhunt_brand_keywords
Read a brand's keywords (what the always-on extension searches on X, Quora, Pinterest, Instagram, TikTok, Facebook, and the server on Reddit), or REPLACE the list (owner/admin token): keywords = product names, ingredients, the problems its buyers search for, #hashtags; up to the plan's number (max in the answer: Free 5, Creator 10, Studio 20, Agency 30, Lifetime 10); every keyword is machine time on every network. The answer carries the sweep state per network.
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | The brand (project). |
category | string | The brand's niche, e.g. Hair care. |
keywords | array | Send to REPLACE the whole list (owner/admin). Omit to read. |
networks | array | With keywords: x, quora, pinterest, reddit, instagram, tiktok, facebook (default: the server's set). |
run | boolean | true = 'search now' (owner/admin): every keyword of the brand is marked asked; the always-on machine picks them up within five minutes, Reddit within 30. The answer's machine.extension_alive says whet… |
viralhunt_brand_hot
The discussions about a brand heating up RIGHT NOW: posts of the last window that mention one of its keywords and whose comments grew by delta in the last hours (or were born loud), each with title, url, author, comments, comments_from/to, delta, hours, rising, alerted_at. The answer to 'where should I comment today': hand the user the biggest deltas with their links and a proposed comment. all=true adds what is most commented even when not climbing (rising false, delta null = one reading), rising first: the app's dashboard list. When it comes back empty read machine in the answer: extension_a…
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
all | boolean | true = every matching post of the window, rising first then most commented (default: only the rising ones). |
hours | integer | The span the comments grew in (default 8). |
limit | integer | With all: how many rows (default 40, up to 100). |
min_delta | integer | Minimum comments gained (default 10). |
networks | array | reddit, quora, x, instagram, tiktok, bluesky (default: all). |
window | integer | How far back a post may be, in hours (default 24). |
viralhunt_brand_alerts
What a brand was alerted about (each thread once), newest first; or, with mark_read_ids, mark alerts as taken so unread=true shows only what is left. Poll with since = your last read every 10 to 30 minutes, or set a webhook with viralhunt_brand_webhook.
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
limit | integer | |
mark_read_ids | array | Mark these alert ids as taken (a POST instead of the list). |
since | string | ISO 8601: only alerts after this. |
unread | boolean | true = only alerts not yet marked read. |
viralhunt_brand_webhook
Read, set, test or clear the webhook where a brand's alerts are POSTed the minute the cron writes them (owner/admin to change it). format json: body {event: brand.alerts, project, alerts[], radar_url}, header X-VH-Signature = sha256=<hex HMAC-SHA256 of the raw body with the secret returned here>; format discord or slack: a message for that channel's incoming webhook. Answer 2xx within 8 s; no retry (alerts stay readable). url null clears it. Guide: https://viralhunt.io/webhooks
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
format | string | What arrives: json = our signed body (an agent, n8n, Make, Zapier, a server); discord or slack = a message for that channel's incoming webhook (no code in between); auto (default) reads a Discord or S… |
test | boolean | true = send ONE sample alert to the saved webhook now (action webhook_test) and report what the receiver answered (ok, code, hint). Run it right after setting a webhook. |
url | string | null | https URL on a public host to set; null to clear; omit to read. |
viralhunt_comments
The comments people left on the organization's posts (Instagram, Facebook pages, Threads, YouTube, TikTok; Bluesky is read only), the ones that most deserve an answer first: each with its text, author (followers and verified on Instagram), likes, intent (question, purchase, complaint, praise, spam, other), importance 0-100, the post it is on, how many other people answered it (replies_from_others), the replies already under it, a reply someone already proposed (suggested_reply), and what the network allows (can.reply, reply_max_chars). counts says how many wait. A comment's text is written by…
| Parameter | Type | Description |
|---|---|---|
counts_only | boolean | true = only how many wait, were answered and were closed. |
days | integer | With sent: only replies sent in the last N days. |
intent | string | |
network | string | |
page | integer | |
per_page | integer | Up to 50 (default 25). |
project_id | integer | One brand (from viralhunt_targets). Default: every brand. |
q | string | Words in the comment or the author's name. |
report | boolean | With sent: true adds the numbers (replies per day by agents and by people, per network, per kind of comment, published or refused, the median wait for an answer). |
saved | boolean | true = return the team's saved replies instead of comments (answers written to reuse: prefer one that fits). |
sent | boolean | true = the record of what was answered FROM ViralHunt (the page, the API, this MCP) instead of the inbox: per reply, the comment, the reply as sent, who sent it (agent or person) and through what, its… |
sentiment | string | Only comments an agent classified with this sentiment (viralhunt_comment_classify). |
sort | string | priority (default) = importance first; likes = the comments other people reacted to most; replies = the ones other people answered most (a conversation under the post). |
state | string | open = waiting for an answer (default), replied, done = closed without one, all. |
tag | string | Only comments carrying this tag (tags_in_use in the answer lists the ones in use). |
unclassified | boolean | true = only comments no agent has classified yet: the queue for viralhunt_comment_classify. |
who | string | With sent: agent, person, me (this token's member) or a member id. |
viralhunt_comment_classify
Store YOUR reading of up to 100 comments at once, so the team can filter the inbox by it: sentiment (positive, neutral, negative), intent (correct ours when it is wrong: question, purchase, complaint, praise, spam, other), tags (the brand's own categories, up to 6 per comment, lowercase, e.g. shipping, price, size, collab, bug), importance 0-100 and a short note (what the person needs, in a few words). ViralHunt only gives a first reading from word lists; the careful one is yours. Read the queue with viralhunt_comments {unclassified: true, per_page: 50}, classify, repeat until it is empty. Reu…
| Parameter | Type | Description |
|---|---|---|
items * | array | Up to 100 comments. |
viralhunt_comment_suggest
PROPOSE a reply to a comment: it is saved on the comment's card in the app, where a person sends it, edits it or discards it. Nothing reaches the network, so this is the default way to answer. Write in the language of the comment and in the brand's voice (viralhunt_targets → voice), one or two sentences, within reply_max_chars, no link unless the voice allows it, never an invented fact, price or promise: when the answer needs something you do not know, say what the team should check instead. An empty body withdraws your proposal. Works only on an open comment.
| Parameter | Type | Description |
|---|---|---|
body * | string | The reply you propose ("" withdraws it). |
id * | integer | The comment's id, from viralhunt_comments. |
viralhunt_comment_reply
SEND a public reply to a comment from the account the post is on. This writes on the network under the brand's name and cannot be taken back from here: use it only when the user asked you to send (not to draft) and named or approved the reply, and only with a token that has permission to publish (otherwise 403 insufficient_scope: use viralhunt_comment_suggest). One reply per comment. The answer carries status (pending, then published); a reply the network refuses puts the comment back as open with reply_error.
| Parameter | Type | Description |
|---|---|---|
body * | string | The reply, within reply_max_chars of that network. |
id * | integer | The comment's id, from viralhunt_comments. |
viralhunt_comment_manage
Close comments that need no answer (done), bring them back (reopen), or act on the network itself: hide, unhide, like, unlike (only where can.hide / can.like is true; these need permission to publish). done and reopen take up to 200 ids. Close praise, emoji and spam in bulk so the list keeps only what a person should answer; never hide a complaint or a criticism unless the user asked for it.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
ids * | array | Comment ids (hide, unhide, like and unlike take the first one). |
viralhunt_agent_tasks
The tasks people asked THIS token's agent from ViralHunt's composer: read them (claimed as you read; peek=true reads without claiming) or answer one. Each task carries the post as it is on the screen (body, first_comment, author_notes, kind, media, thread, accounts with text_limit and the per-account overrides), the project's voice and lang, the limits per network, a reply_schema and expires_at (15 minutes). Answer with reply_id plus what you change: text (what you tell the person), fields {body, first_comment ('' = none), author_notes, kind, overrides {account_id: {body, first_comment?, threa…
| Parameter | Type | Description |
|---|---|---|
error | string | You cannot do it: the task is closed as failed with this reason. |
fields | object | What changes on the screen: body, first_comment, author_notes, kind, overrides, thread, media_add, media_replace. |
image | object | One picture you made: {url} or {base64, mime, mode?: 'replace'|'add'}. |
peek | boolean | true = read without claiming the queued tasks. |
progress | string | A progress line: the task stays open (status working). |
reply_id | integer | Answer this task instead of reading the list. |
text | string | What you tell the person (markdown-light). |
warnings | array | [{code, text, network?}] what you found. |
viralhunt_repurpose
Repurpose: turn ONE source (a link to an article, a video page or a post, or pasted text) into a thread and a carousel in a brand's voice, saved as drafts. You are the writer. Flow: (1) action=status shows this month's allowance and the brands; (2) action=create {url or text, project_id, instructions?, want?} reads the source (text and pictures) and counts one source of the month; the answer carries write_it_yourself: write the plan from write_it_yourself.source following write_it_yourself.rules, in the shape it shows; (3) action=save {id, plan} stores it (picture numbers from the source becom…
| Parameter | Type | Description |
|---|---|---|
action * | string | status | list | get | create | save | render_slide | send |
account_ids | array | send: the accounts. Omit for every account of the brand on a network that takes that format. |
body | string | render_slide: the slide's text, when not read from the plan. |
format | string | render_slide: feed | square | story. |
id | integer | The repurpose job (get, save, render_slide, send). |
instructions | string | create: what the person asked for (angle, tone, length), kept with the job. |
lang | string | create: language of the pieces (en, es, …). Default: the brand's language. |
media | array | send (carousel): the slide PNG urls, in order. |
plan | object | save: {summary, pieces: [{type: 'thread', title, posts: [{text, images: [1]}]}, {type: 'carousel', title, caption, first_comment, slides: [{title, body, image: 2}]}]}. Picture numbers are the ones lis… |
project_id | integer | create: the brand (from status or viralhunt_targets). send: only when the job has none. |
slide | integer | render_slide: the slide's position in the plan's carousel, from 0. Its title, body and picture are read from the plan. |
template | string | render_slide: a slide template slug or id (studio-slide-photo, studio-slide-bold, studio-slide-full, or the brand's own). |
text | string | create: the source as pasted text, instead of a link. |
title | string | render_slide: the slide's title, when not read from the plan. |
type | string | send: which piece of the plan. |
url | string | create: the public link to repurpose. |
want | array | create: the pieces to make. Default: thread and carousel. |
viralhunt_list_templates
List ViralHunt content templates (layouts you fill and render yourself), favourites first, each with what it suits. Lean by design (no html/css), so use viralhunt_get_template for the one you'll actually render. Available on the Free plan and spends no daily query: with viralhunt_get_template preview true it is how a free user sees a viral post in their niche as their own post.
| Parameter | Type | Description |
|---|---|---|
assigned | boolean | true = only the templates assigned to project_id. |
category | string | image | quote | video | top3 | … |
favorites | boolean | true = only the templates the brand starred. Favourites come first in every list: prefer them when several fit. |
media_type | string | Filter by what it renders to. |
network | string | Only templates suited to this network. |
page | integer | |
per_page | integer | Page size (default 20). The answer's meta says total and has_more. |
project_id | integer | With assigned=true, the project whose allowed templates you want. |
q | string | Search name/description. |
scope | string | org = only the organization's own templates (they also come first in every list), global = only the library. |
viralhunt_template_gallery
SHOW THE TEMPLATE GALLERY as a picture: one image with up to 12 templates in a 3-column grid, each drawn with its example values and numbered, with its name and slug under it, plus items[] in the same order. Use it whenever the person wants to see the templates, pick one or decide which to copy: show the image, never a table. Same filters as viralhunt_list_templates; page through with page (has_more). A template not drawn yet shows a neutral tile: it is drawn the first time someone in the organization opens the Templates page. Read only.
| Parameter | Type | Description |
|---|---|---|
assigned | boolean | true = only the templates assigned to project_id. |
category | string | image | quote | stat | tip | … |
favorites | boolean | true = only the templates the brand starred. |
page | integer | |
per_page | integer | Templates per image (default 12, max 12). |
project_id | integer | With assigned=true, the project whose allowed templates you want. |
q | string | Search name/description. |
scope | string | org = only the organization's own templates, global = only the library. |
viralhunt_get_template
Get one template's full spec: html, css, the variable manifest (with hard rules per variable), formats, palette tokens, embedded fonts, render_tech, plus what is `static` (the owner fixed it: logo, frame, signature, fixed texts; never move, cover or restyle it), what is `dynamic` (the variables you fill: the picture, the headline, the caption that is the post body), what it `suits` (news, photo, quote, number, tip, on_this_day, meme, any) and the owner's `instructions` (they override any general rule). Fill every dynamic {{variable}}, then render with headless Chrome at the chosen format's siz…
| Parameter | Type | Description |
|---|---|---|
format | string | With preview: feed (default), story, square… |
id | integer | Template id — alternative to slug. |
preview | boolean | true = how it looks: preview.document is a full HTML page with the example values filled (yours with `variables`). |
slug | string | Template slug, e.g. vh-image-card. |
variables | object | With preview: your own values, {"text": "…", "highlight": "…"}; the rest take the manifest examples. |
viralhunt_upsert_template
Create or edit a content template (layout HTML/CSS + variable manifest). Editing a curated/global template CLONES it into the org's own copy — the global is never modified. Every {{placeholder}} in the html must be declared in variables, or the call is rejected. Owners and admins, or a member/agent the owner ticked 'Creates templates' (they edit only the templates they created). A template is html, css and images, never code: scripts, iframes, forms, event handlers and javascript: URLs are removed and listed in `removed`; data:font/ and data:image/ are accepted. Coloured words and a headline…
| Parameter | Type | Description |
|---|---|---|
slug * | string | Stable kebab-case id for the template, e.g. my-quote-card. |
action | string | create (default), update (send only what changes) or archive (retire one of your organization's templates; id or slug_ref). |
aspect | string | Default format's aspect, e.g. 4:5. |
canvas_h | integer | |
canvas_w | integer | |
category | string | image | quote | video | top3 | … |
content_source | object | Optional curated-bank binding instead of generating values. |
css | string | Styles; reference palette tokens via CSS vars. Max 256KB. |
description | string | |
fonts | array | [{family,weight,style,url_woff2}] — fonts must travel with the template. |
formats | array | [{name,w,h,aspect?,networks?,default?}] — the sizes this one layout ships. |
html | string | Layout with {{variable}} placeholders. Max 256KB. |
id | integer | On update: the template id to edit. |
is_active | boolean | |
media_type | string | |
name | string | Human-readable name. |
network | string | Network it suits, or omit for any. |
palette | object | Design tokens → hex, e.g. {"cyan":"#1edbee"}. |
render_tech | string | How the agent turns this into a file. |
slug_ref | string | On update: the slug to edit, if you don't have the id. |
variables | array | The manifest: [{key,label,type,description,rules,example,fallback,required}]. |
viralhunt_assign_template
Assign (or unassign) a content template to a project, so that project's agents see it via viralhunt_list_templates with assigned=true. Owner/admin only.
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | Project id (from viralhunt_targets). |
template_id * | integer | Template id (from viralhunt_list_templates). |
action | string | add (default) or remove. |
viralhunt_cancel_post
Cancel the not-yet-published targets of a scheduled post, or with account_id stop ONE network (a pending retry, a timed-out create, a not-yet-published PostProxy post). A published target answers 409: use viralhunt_delete_post.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The post id. |
account_id | integer | One connected account to stop; omit for the whole post. |
viralhunt_list_posts
What went out and what did not: posts of the project (or the organization with all) by status, newest first, each target with status, PostProxy id, permalink, error, will_retry, timed_out (may be live), reconciled.
| Parameter | Type | Description |
|---|---|---|
account_id | integer | |
all | boolean | |
id | string | One post id or a csv: those posts whatever their status. |
limit | integer | |
offset | integer | |
project_id | integer | |
since | string | |
status | string | csv of draft, review, scheduled, processing, published, partial, failed, canceled; default published,partial,failed,processing,scheduled |
viralhunt_delete_post
Owner, admin or a member marked 'Their OK publishes': take a PUBLISHED target down from its network through PostProxy (the cleanup of a duplicate). Confirm on the network afterwards. Without account_id every published target of the post goes.
| Parameter | Type | Description |
|---|---|---|
id * | integer | |
account_id | integer |
viralhunt_best_time
Best time to post on a network, measured on the posts that went viral there in the last 365 days (their OWN publish time). Returns best_slots (weekday + hour, ranked by average engagement, each with its sample size and hit_rate_pct = share of that slot's posts that reached the network's top 10%), worst_slot, today's best hours, by_hour and by_weekday tables, proof_posts, and sample {posts, window, from, to}. Read `confidence` (high >= 500 posts, medium >= 200, low) before quoting an hour. Hours are rotated to `timezone`; weekday aggregates stay UTC. With `keyword`, slots are recomputed on post…
| Parameter | Type | Description |
|---|---|---|
network * | string | Which network. |
keyword | string | Optional niche word; slots recomputed on posts whose caption contains it (falls back when thin). |
timezone | string | IANA zone to express hours in, e.g. America/Mexico_City (default UTC). |
viralhunt_top_hashtags
Top hashtags from the captions of the posts we hold, per network or across all, optionally filtered to tags containing a word. Each row carries posts (sample size), total_engagement and per_post (the number to compare: a tag used less but hitting harder). `window` is all-time over the corpus with updated_at (there is no per-day hashtag history; say so if asked for 'this week'). Pass `hashtag` to get one tag broken down by network with its top posts.
| Parameter | Type | Description |
|---|---|---|
hashtag | string | One hashtag (with or without #) for its per-network breakdown. |
min_posts | integer | Minimum posts a tag needs to be listed (default 3). |
network | string | One network, or omit for all networks summed. |
page | integer | |
per_page | integer | |
q | string | Only hashtags containing this word (niche filter). |
sort | string | Ranking (default engagement). |
viralhunt_trending_sounds
Trending sounds/audio on TikTok, Instagram Reels and Douyin, ranked by the engagement of the posts that used them, cross-network sounds first. A sound is listed only when several different accounts used it (one account's audio is a voiceover, not a trend). Each sound carries networks{tiktok|instagram|douyin: posts, creators, eng, per_post}, cross (on more than one network) and stronger (tiktok|instagram|even, per post) when both sides are measured. Pass `slug` for one sound with the posts that used it. Window is all-time over the corpus.
| Parameter | Type | Description |
|---|---|---|
cross_only | boolean | Only sounds trending on more than one network. |
network | string | One network or all (default all). |
page | integer | |
per_page | integer | |
q | string | Filter by words in the title or artist. |
slug | string | One sound's slug (from a previous result) for its detail and posts. |
viralhunt_best_communities
Where to post a topic: the best subreddits (network=reddit) or Bluesky custom feeds (network=bluesky) from our own measurements. Reddit rows are ranked by peak_per_1k, the best score we hold per 1,000 members (upside relative to size); no average score is published because a swept community's sample is its greatest hits. Each row carries members, sample.posts and the window of post dates. Pass `subreddit` for one community: timing (best UTC hours/day the climbing posts were posted), pace, flairs, type mix, top posts and similar communities. Bluesky rows carry posts, authors, avg_likes; pass `f…
| Parameter | Type | Description |
|---|---|---|
feed | string | bluesky: one feed by slug for its full detail. |
max_members | integer | reddit: only communities with at most this many members (smaller rooms are easier to climb). |
min_members | integer | reddit: only communities with at least this many members. |
network | string | reddit (default) or bluesky. |
page | integer | |
per_page | integer | |
q | string | Topic words matched against the community name (and, on Bluesky, the feed description). |
sort | string | reddit: upside (default), members, peak, posts. bluesky: posts (default), avg_likes, top_likes, feed_likes. |
subreddit | string | reddit: one community by name for its full detail. |
viralhunt_board_context
The team's Editorial Board in one call: organization, members (people and agents, with ids to assign cards to), columns (with is_default / is_done flags) and categories. Call this before creating or moving cards.
viralhunt_create_card
Create a card on the Editorial Board: a piece of content to curate, with an optional post URL (title/description/image are filled from the URL's metadata when omitted), assignee, priority, due date, category and column. Returns the card with its id. Use it to hand a trending post to a teammate instead of publishing it directly.
| Parameter | Type | Description |
|---|---|---|
assigned_to | Who takes the card: a member id from viralhunt_board_context, the member's name as the Team page shows it, or their email. The answer carries assigned_to_user_id and assigned_to_name read back from th… | |
assigned_to_user_id | integer | Same as assigned_to, by id. |
board_column_id | integer | Target column (default: the board's default column). |
card_type | string | Post, Note, Article, Video… (the org's card types). |
category_id | integer | |
description | string | |
due_date | string | YYYY-MM-DD. |
image_url | string | |
notes | string | |
platform | string | tiktok, instagram, x, facebook, pinterest, rss… (detected from post_url when omitted). |
post_url | string | The post/article this card is about; metadata is fetched when title/image are missing. |
priority | string | |
title | string | Card title (required unless post_url is given). |
viralhunt_move_card
Move a card to another column (moving into the column flagged is_done completes it; a 'done' comment does not).
| Parameter | Type | Description |
|---|---|---|
board_column_id * | integer | Target column id from viralhunt_board_context. |
card_id * | integer | |
position | integer | Position inside the column (0 = top). |
viralhunt_assign_card
Hand a card to a member (id, name as the Team page shows it, or email); null unassigns. The member is notified. The answer carries the card with assigned_to_user_id and assigned_to_name read back.
| Parameter | Type | Description |
|---|---|---|
assigned_to * | Member id, name or email; null to unassign. | |
card_id * | integer |
viralhunt_get_card
One card of the Editorial Board: title, column (name, is_done), status, assignee (id and name), priority, due date, notes, archived.
| Parameter | Type | Description |
|---|---|---|
card_id * | integer |
viralhunt_list_cards
The organization's cards, newest first (up to 200): filter by column, status, assignee (id, name or email), unassigned or archived.
| Parameter | Type | Description |
|---|---|---|
archived | boolean | |
assigned_to | ||
board_column_id | integer | |
limit | integer | |
status | string | |
unassigned | boolean |
viralhunt_archive_card
Take a card off the board (archive). Nothing is deleted: a person restores it from the board's Archived view.
| Parameter | Type | Description |
|---|---|---|
card_id * | integer |
viralhunt_my_cards
Cards assigned to the authenticated token's member (your own workload when you are an agent member of the team). Optional status filter.
| Parameter | Type | Description |
|---|---|---|
page | integer | |
per_page | integer | |
project | string | Restrict to one project/brand by name. |
status | string |
viralhunt_card_comments
Read the comments on a card, or add one (comment set). New comments notify the assignee and appear in the team chat's #board channel.
| Parameter | Type | Description |
|---|---|---|
card_id * | integer | |
comment | string | When given, posts this comment; when omitted, lists the card's comments. |