🧪 Skills
Viral App
Use the viral.app API from an agent with a local CLI for account analytics, tracked videos/accounts, projects, creator hub, and live data operations.
v0.1.0
Description
name: viral-app description: Use the viral.app API from an agent with a local CLI for account analytics, tracked videos/accounts, projects, creator hub, and live data operations. metadata: {"homepage":"https://github.com/fmd-labs/viral-app-skills"}
viral-app
Use this skill when you need to read or manage data through the viral.app API.
When to use
- Query analytics (accounts, videos, KPIs, exports).
- Manage tracked entities (accounts, videos, exclusions, refresh runs).
- Manage projects and creator hub resources.
- Pull live platform data (TikTok, Instagram, YouTube).
Quick start
- Ensure
viral-appCLI is installed and available inPATH.
viral-app --help
- Set API key:
export VIRAL_API_KEY="..."
Get this key from viral.app dashboard at Settings -> API Keys.
- Verify access:
viral-app accounts-list --per-page 1
The wrapper injects x-api-key automatically from VIRAL_API_KEY unless a header is already passed.
Inputs to collect first
- Task type: read/report or mutate/manage resources.
- Org-scoped IDs:
orgacc_*,orgproj_*, creator/campaign/payout IDs when relevant. - Platform and entity identifiers (
tiktok|instagram|youtube, platform account/video IDs). - Time bounds (
--date-range[from],--date-range[to]) for analytics tasks. - Pagination/scope (
--per-page, filters) to keep output focused.
Command cookbook
Discover available operations:
viral-app --help
viral-app <command> --help
Common reads:
viral-app accounts-list --per-page 10
viral-app videos-list --per-page 10
viral-app analytics-get-kpis
viral-app analytics-top-videos --per-page 10
viral-app integrations-apps-list
Common mutations:
viral-app projects-create --body '{"name":"My Project"}'
viral-app accounts-tracked-refresh --body '{"accounts":["orgacc_..."]}'
viral-app projects-add-to-account --body '{"projectId":"orgproj_...","accountId":"orgacc_..."}'
Safety rules
- Confirm intent before
POST,PUT,PATCH, orDELETEunless the user explicitly asked for that mutation. - Run
<command> --helpbefore mutations to verify required flags and body schema. - Prefer narrow queries first (
--per-page, filters, date ranges) before broad exports. - Keep output machine-readable by default; only switch format when requested.
Troubleshooting
401 UNAUTHORIZED: missing/invalid API key; verifyVIRAL_API_KEYor-H "x-api-key: ..."value.401can also happen with expired/revoked keys or wrong org context.429or retry hints: back off and retry later; inspect response headers such asRetry-After.- Empty
dataarrays: validate filters, project/account IDs, and date range constraints. - Never expose API keys in commits; rotate keys after sharing for tests.
Agent defaults
- Output defaults to JSON (
RSH_OUTPUT_FORMAT=jsonunless overridden). - Auto-pagination defaults to disabled (
RSH_NO_PAGINATE=true) for predictable scripted behavior. - Summarize key metrics after reads and explicitly call out write-side effects after mutations.
Reviews (0)
Sign in to write a review.
No reviews yet. Be the first to review!
Comments (0)
No comments yet. Be the first to share your thoughts!