virlo-api
Skill3 starsChanged 10 days agoMITView on GitHub
Use when calling Virlo for short-form video research on TikTok, YouTube Shorts and Instagram Reels, over its API or MCP server, or when the user asks how to set up or connect Virlo, where to get a key, whether their key works, what their balance is, what a call costs, or why a Virlo call failed (401, 402, 429). Covers searching Virlo's analysed video and creator library, hooks, sounds, hashtags, Content Trends, Topic Trends, places, creator and video lookups, live posts, comments and transcripts, Meta ads, research agents and tracking. It is the data layer, setup guide, cost guide and research method that every other Virlo research skill uses; read it before any Virlo call. Checking the key and the balance is free.
- Reads credentials
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ad-watchSkill
- audience-voiceSkill
- brand-briefSkill
- competitor-watchSkill
- content-ideasSkill
- creator-finderSkill
- creator-teardownSkill
- hook-bankSkill
- launch-monitorSkill
- local-scoutSkill
- niche-breakoutsSkill
- niche-monitorSkill
- script-writerSkill
- sound-scoutSkill
- trend-radarSkill
- video-teardownSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 4 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Read these files in this skill's folder as you need them:
- Very specific: line 33
An API key is available: run bash <this skill's folder>/scripts/virlo.sh check (free).
- Distinctive: line 39
Never present the sample as live data, and never "fill in" the user's niche with made-up numbers.
- Very specific: line 49
API key: create one at https://dev.virlo.ai/dashboard/api-keys (it starts with virlo_tkn_), then export VIRLO_API_KEY=virlo_tkn_..., or put …
- Distinctive: line 53
Never ask the person to paste a key into the chat.
- Very specific: line 70
No bash?: Use the same request with curl: curl -sS "https://api.virlo.ai/v1/..." -H "Authorization: Bearer $VIRLO_API_KEY".
- Very specific: line 74
Topic alternatives: use at most 3 per item ("skin barrier|barrier repair|barrier cream").
- Very specific: line 75
If an input isn't in
references/endpoints.md,: read that path in the live spec: https://api.virlo.ai/openapi.json. - Very specific: line 107
Every other endpoint is in references/endpoints.md.
- Distinctive: line 129
Ask first: when a run will go over $1.00 (exactly $1.00 needs no ask), or creates anything that bills again by itself: agents with a …
- Very specific: line 153
Every error reply has a code.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Virlo API: TikTok, Instagram Reels and YouTube Shorts data for AI agents
Virlo has analysed 23M+ social videos across TikTok, YouTube Shorts and Instagram Reels. For each one it knows the format, the hook, the sound and the topic, and how big an outlier the video was for its creator. This skill is how an agent reads that data cheaply and correctly. The research skills in this pack (niche-breakouts, hook-bank, trend-radar and the rest) all go through it.
Read these files in this skill's folder as you need them:
references/house-rules.md: rules for every run (cost, grounding, output). Read it before the first call.references/method.md: how breakouts, patterns, ideas and thin results are measured.references/endpoints.md: every live endpoint, its inputs, cost and MCP tool. Generated from the live spec.references/fields.md: what the main responses contain.scripts/virlo.sh: makes one API call, saves the response and logs its cost.
Workflow skills are installed beside this one, so they call this folder ../virlo-api/ and its script $S = <this skill's folder>/../virlo-api/scripts/virlo.sh (the path only), always called as bash $S …. Run it from the user's project folder, never after a cd into a skill folder: the script writes virlo-research/ (reports, .cache/ and the spend log) under the folder it's run from, so that's where the user's research stays.
1. Pick the data path (in this order)
- Virlo MCP tools are available (tool names such as
find_videos,search_hooks,raw_creator_videos, any prefix): use them.- Check before any paid call:
get_credit_balance(free). The Claude Code plugin always registers the Virlo MCP server, even for someone with no account, so the tools being there proves nothing. - If the tools need a sign-in the person hasn't done, the balance check fails, or the balance is $0, try an API key (2); without one, use preview mode (3). Don't start a sign-in or a paid call to get past it.
- MCP replies don't show what a call cost. The balance before the first paid call and again at the end gives the spend.
- Check before any paid call:
- An API key is available: run
bash <this skill's folder>/scripts/virlo.sh check(free). It printsstatus=200 key=set balance=$… credits=…when ready.- The script finds the key in
$VIRLO_API_KEY,~/.config/virlo/envor./.envwithout printing it. status=no_keymeans there's no key: go to 3.status=401means the key is wrong: give the setup steps in §2.
- The script finds the key in
- Neither, or MCP not usable yet: preview mode. Make no paid calls.
- Show the sample report from the requesting skill's
samples/folder that's closest to the user's niche, and label it clearly: "Sample report (real data from<date>, not your niche, not live)". - Then give the short setup in §2, and say what the live run would cost for their ask (from the requesting skill's typical cost).
- Never present the sample as live data, and never "fill in" the user's niche with made-up numbers.
- Show the sample report from the requesting skill's
2. Setup (for the person, when there is no key)
Give this in short form. It takes about two minutes.
- Sign up at https://dev.virlo.ai/?via=skills&utm_source=github&utm_medium=skills&utm_campaign=social-media-skills and add API balance, from $10.
- The balance never expires and there's no subscription. A typical research run costs $0.01–$1; a full niche-breakouts run is about $0.25.
- Connect, one of two ways (both spend the same API balance):
- MCP, no key to copy (fastest in Claude Code):
claude mcp add --transport http virlo https://dev.virlo.ai/api/mcp/mcp, then sign in to Virlo when asked. Other apps: https://dev.virlo.ai/docs/mcp. - API key: create one at https://dev.virlo.ai/dashboard/api-keys (it starts with
virlo_tkn_), thenexport VIRLO_API_KEY=virlo_tkn_..., or put aVIRLO_API_KEY=line in~/.config/virlo/envso every session finds it.
- MCP, no key to copy (fastest in Claude Code):
- Check it:
bash <this skill's folder>/scripts/virlo.sh check(free), or ask "what's my Virlo balance?". - First useful answer: "set up my brand" (brand-brief, free), then "what's breaking out in
<your niche>?" (niche-breakouts, about $0.25).
Never ask the person to paste a key into the chat.
3. Making calls (HTTP)
S=<this skill's folder>/scripts/virlo.sh # run from the user's project folder: it writes ./virlo-research/
bash $S POST /v1/search/videos '{"scope":"virlo_library","topics":["skincare routine"],"posted_after":"2026-10-22","sort":"most_viral"}'
bash $S GET /v1/raw/tiktok/creator/somehandle/videos
bash $S GET /v1/hooks/search q="nobody talks about" platform=tiktok limit=20
bash $S spend 1763740800 # what this run spent, since a unix time- Each call prints one line:
status=200 cost=$0.05 credits=5 balance=... file=virlo-research/.cache/....json. Read the file for the data.- With
jq:jq '.data.videos[] | {url, views, virality_score, u: .author.username}' FILE. - Otherwise use the Read tool. Don't paste whole responses into the chat.
- With
- Note the start time first (
date +%s), sospend <start>reports this run only. - For GET calls, pass query inputs as
name=valuearguments; the script URL-encodes them. For POST and PUT, pass a JSON string or@file.json. - No bash? Use the same request with curl:
curl -sS "https://api.virlo.ai/v1/..." -H "Authorization: Bearer $VIRLO_API_KEY". Note theX-Costresponse header. - Video search needs
scopeon every first page (only acursorpage can leave it out):virlo_libraryfor the whole library ($0.05 a page),my_researchoragent(withagent_id) for the user's own research agents (free). Without it the call is refused. - List inputs are lists, marked
[]inreferences/endpoints.md:"topics":["a|b"],"platforms":["tiktok"],"near":["-37.81,144.96,5"](lat, lng and km in one string, inside a list). - Platforms in a search: one, or leave it out for all three. Two of three goes to
not_appliedand searches all. For two platforms, search all and filter the results byplatformyourself. - Topic alternatives: use at most 3 per item (
"skin barrier|barrier repair|barrier cream"). A 4th was dropped without a word in a live run, listed in neitherappliednornot_applied, so checkappliedfor every word you sent. - If an input isn't in
references/endpoints.md, read that path in the live spec:https://api.virlo.ai/openapi.json. Inputs the API doesn't know are often ignored silently, so checkappliedandnot_appliedin search replies.
4. Route by intent
| You want | MCP tool | HTTP | Cost |
| Videos in a niche, by topic, look, region, language, creator size, place | find_videos | POST /v1/search/videos | $0.05 / page of 25 |
| Creators in a niche, or by a word in their bio | find_creators | POST /v1/search/creators | $0.05 / page |
| A creator's latest posts, live (for the outlier baseline) | raw_creator_videos | GET /v1/raw/{platform}/creator/{handle}/videos | $0.01 / page |
| One creator's profile, live | raw_creator | GET /v1/raw/{platform}/creator/{handle} | $0.01 |
| One video's numbers now (a URL or a short share link) | raw_video | GET /v1/raw/{platform}/video | $0.01 |
| Comments / transcript of a video | raw_comments / raw_transcript | GET /v1/raw/{platform}/video/comments · /transcript | $0.01 / page |
| Live keyword or hashtag videos (not analysed) | raw_search / raw_hashtag | GET /v1/raw/{platform}/search · /hashtag/{hashtag} | $0.01 / page |
| Proven hooks by phrase or type / the best hooks right now | search_hooks | GET /v1/hooks/search · /v1/hooks/trending | $0.25 |
| Which hook styles win (stats) | search_hooks (types) | GET /v1/hooks/types | free |
| Formats creators are copying (Content Trends) | get_content_trends | GET /v1/content-trends | $0.25 |
| What people talk about today, by region (Topic Trends) | get_topic_trends | GET /v1/topic-trends/today · /emerging | $0.25 |
| Sounds breaking out / trending | get_trending_sounds | GET /v1/sounds/breakout · /trending | $0.25 |
| Videos using one sound | lookup_sound | GET /v1/sounds/{sound_id}/videos | $0.25 |
| Hashtag ranking / one hashtag's numbers | search_hashtags | GET /v1/hashtags · /{hashtag}/performance | $0.05 |
| Places tagged on posts (beta) | find_places | GET /v1/places · /{id}/videos | $0.05 |
| Why one video was an outlier | analyze_video | POST /v1/satellite/video → poll | $0.50 |
| Deep creator profile with analytics | lookup_creator | POST /v1/satellite/creator → poll | $0.50; +$0.25 Data Intelligence, +$0.50 trend analysis, +$0.50 audience (up to $1.75) |
Meta ads by keyword / one advertiser (pass country: the default is every country) | raw_ad_search / raw_advertiser_ads | GET /v1/raw/meta/ads/search · /advertisers/{page_id}/ads | $0.01 / page |
| Find an advertiser's page id | raw_advertiser_search | GET /v1/raw/meta/advertisers/search | $0.01 |
| Draft keywords for a research agent | none | POST /v1/agents/suggest-keywords | free |
| Fresh collection on a topic, once or on a schedule | create_research_agent | POST /v1/agents | $0.50 / run (asks first) |
| The user's existing research agents, and one agent's latest results | list_my_research / get_agent_report, get_agent_data | GET /v1/agents · /v1/agents/{id}/summary | free |
| Follow a creator or video over weeks | track_creator / track_video | POST /v1/tracking/creators · /videos | $0.25 / check (asks first) |
| Pause, change or delete an agent | update_agent / delete_agent | PUT · DELETE /v1/agents/{id} | free |
| Balance / a top-up checkout link | get_credit_balance / top_up_credits | GET /v1/account/balance · POST /v1/account/top-up | free |
Every other endpoint is in references/endpoints.md.
MCP inputs with no HTTP field of the same name (every other MCP input uses the HTTP field's name):
| Tool | Input | What it does |
search_hooks | view: types, trending or search | picks GET /v1/hooks/types, /trending or /search, at that route's price |
get_topic_trends | view: today or emerging | picks GET /v1/topic-trends/today or /emerging |
get_trending_sounds | view: breakout or trending | picks GET /v1/sounds/breakout or /trending ($0.25) |
get_trending_sounds | q (a sound title) | GET /v1/sounds/search ($0.10) |
lookup_sound | sound_id = the sound's id (Virlo's UUID from a breakout or search reply; never external_id or a raw video's sound.id, which start the $0.50 lookup below) with view: videos | GET /v1/sounds/{sound_id}/videos ($0.25). The same tool also covers GET /v1/sounds/{sound_id} ($0.05), /usage-history ($0.05) and GET /v1/sounds/by-creator/{platform}/{handle} ($0.25); the view names for those aren't documented here, so check the tool's own input list |
lookup_sound | a platform music id (a sound's external_id) | the async lookup, GET /v1/satellite/sounds/{platform}/{music_id} or POST /v1/satellite/sound: $0.50, $1.00 with trend analysis. Only on request; say the price first |
find_places | place_id | GET /v1/places/{id}/videos ($0.05) instead of the place search |
get_content_trends | id | GET /v1/content-trends/{id}, one trend in full ($0.05) instead of the list ($0.25) |
create_research_agent | user_approved | left out, it returns Virlo's proposal and price and creates nothing; true creates the agent and starts billing |
show_hooks | the hooks, each with its source_video | MCP only, free: shows a hook set with each source video's live numbers |
5. Cost
- 1 credit = $0.01. Failed calls are never billed. Empty library search pages are free. Raw calls are billed even when empty.
- Estimate before you start and say it to the user in one line, in a reply, before the first paid call. A library estimate is a ceiling ("at most $0.20"): empty pages are free.
- Raw pages hold fewer videos than a library page of 25 (a creator page is about 15) and cover one platform per call, so say how many pages a raw count needs.
- Ask first when a run will go over $1.00 (exactly $1.00 needs no ask), or creates anything that bills again by itself: agents with a cadence, tracking. Say what it costs per run and how to stop it.
- Report the spend at the end:
virlo.sh spend <start time>, or the balance difference with MCP. - Cheapest route to "N× outlier": one
rawcreator videos page ($0.01) per creator. Useanalyze_video($0.50) only when the person wants the full breakdown of one video.
6. Async jobs (lookups, agents, post collection)
- A start call returns a
job_id(lookups) or an agentid. - Poll the free status route (
.../status/{job_id}, orGET /v1/agents/{id}) every 10–15 seconds, or asretry_after_secondssays. - It's done when
finalized: true.completedcan still mean the AI report is being written.intelligence_status: "skipped"means that item was left out on purpose.
- Lookups take under a minute to about 3 minutes. An agent's first run and its report take about 10–25 minutes.
- Don't loop longer than about 3 minutes. Say it's still running, give the id, and say when to check back.
- Re-read a finished lookup for free:
GET /v1/satellite/runs/{run_id}.
7. Pagination
- Search: 25 per page. Pass
next_cursorback ascursor(it lasts 1 hour). Every page with results is billed. - Raw lists: pass
pagination.next_cursorascursor, with the same path and inputs, untilhas_moreis false. Every page is billed. - Hooks and sounds:
page/limit, untilhas_next_pageis false or a page is empty. - Agent lists (
GET /v1/agents): the reply isdata.limit,data.page,data.countanddata.agents, with nohas_next_page, andcountis only this page's size. Stop when a page returns fewer agents thanlimit.
8. Errors
Every error reply has a code; branch on it, not on the message. Errors are never billed.
| Status | code | Do |
| 400 | validation_error and others | Read the message (it often lists the valid values), fix the input, call once more |
| 400 | invalid_cursor | The cursor expired or the inputs changed. Start again from page 1 |
| 400 | creator_login_required / creator_not_found | The profile is private or the handle doesn't exist on that platform. Say so; check the handle and platform |
| 401 | missing_api_key / invalid_api_key | Give the setup steps (§2) |
| 402 | insufficient_credits | Quote required_credits and remaining_credits; top up at https://dev.virlo.ai/dashboard/billing?via=skills&utm_source=github&utm_medium=skills&utm_campaign=social-media-skills (MCP: top_up_credits gives a checkout link). Stop. |
| 404 | not_found | No such creator, video or id. Say so; check the handle and platform |
| 429 | rate_limit_exceeded | Wait Retry-After once; if it happens again, stop and say so |
| 502 / 503 / 504 | upstream_error / service_unavailable / request_timeout | The platform or Virlo didn't answer. Retry once, then say so |
virlo.sh exits 0 on success, 3 with no key, 4 on a 4xx and 5 on a 5xx or a network failure (status=000).
9. Reading results
virality_score: how far a video outran its creator's audience, comparable across sizes and platforms. 10 promising, 18 strong, 25 very strong, 35 exceptional. Rank by this, never by raw views across platforms.intelligence: what Virlo's analysis read for each video: topic, format, hook, hook type, setting, tone, summary. It's what explains why a video worked.overviewon every search page: counts across all matches (platforms, top creators, formats, hook types, posting weeks, median views). It's free and is the fastest read of a niche.thin: true(fewer than 10 matches) comes withnext_step: a prefilled research agent and its price. Offer it; never start it unasked.applied/not_applied: what the search used and what it couldn't use, in plain words. Pass the caveats on.- Search order is topic-first:
sort: most_viralranks the closest topic matches first, so a page's top isn't the niche's highest Virality Scores. Re-sort byvirality_scoreyourself before taking a top N, and useoutliers_only: trueto find the strongest. - Meta advertiser ads: the advertiser's total is
advertiser.platform_data.ad_count: ads matching your filters, as the Ad Library counts them (it stops at 50,001). - Raw lists:
stats.views,published_at,author.handle,urlare live counts at request time. Thumbnail and ad media links expire within days, so link the post, not the image.- A creator page that comes back with 0 posts is still billed. Say so, and count that creator as unmeasured.
- Videos for one sound (
GET /v1/sounds/{sound_id}/videos) carry views, likes, shares, comments, bookmarks, the publish date, hashtags, duet or stitch, the author with followers, and the tagged place. They have nointelligence,is_paid,durationor Virality Score: measure them with a creator page, and check paid reach by the like rate. - Videos for one place (
GET /v1/places/{id}/videos) come asdata.placeplusdata.videos, in the video-search item shape.
Then follow references/method.md for the analysis and references/house-rules.md for the answer.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

