Generate viral content, analyze profiles, and get topic suggestions programmatically.
All requests require an API key via the Authorization header:
Authorization: Bearer vc_live_your_api_key_here
API keys are created in the admin panel. Each key has scoped access to specific endpoints.
All responses follow a consistent contract:
{ "ok": true, "data": {...}, "meta": {...} }{ "ok": false, "error": "message", "retryable": true }/api/v1/generatescope: generateGenerate a viral post for any platform and tone.
{
"topic": "why content strategy is dead",
"platform": "linkedin",
"tone": "authority",
"postType": "Caption"
}{
"ok": true,
"data": {
"content": "Full post body...",
"hook": "Opening hook line",
"cta": "Call to action",
"hashtags": { "core": [...], "discovery": [...], "longTail": [...] },
"viralScore": 84,
"hookScore": 91,
"clarityScore": 80
},
"meta": { "tokensUsed": 1100, "latencyMs": 8500 }
}/api/v1/analyzescope: analyzeAnalyze a social profile or bio for growth weaknesses.
{
"bio": "Founder & CTO | Building AI products | Former security engineer",
"platform": "linkedin"
}{
"ok": true,
"data": {
"overallScore": 52,
"clarityScore": 58,
"brandConsistencyScore": 45,
"contentOpportunityScore": 72,
"niche": "AI/SaaS",
"weaknesses": ["Bio reads like a resume..."],
"strengths": ["Clear technical authority..."],
"viralAngles": ["Behind-the-scenes breakdowns..."]
}
}/api/v1/improvescope: improveGet an improved version of any post with specific diff explanations.
{
"hook": "I built a product nobody wanted.",
"content": "Here's what I learned...",
"platform": "linkedin",
"tone": "authority"
}{
"ok": true,
"data": {
"improved": { "hook": "Better hook...", "content": "Better content...", "score": 88 },
"diff": ["Improvement 1", "Improvement 2", "Improvement 3"]
}
}/api/v1/topicsscope: topicsGet 3 ranked topic suggestions with confidence signals.
{
"platform": "linkedin",
"tone": "authority",
"niche": "SaaS growth"
}{
"ok": true,
"data": {
"topics": [
{ "title": "Why your bio is killing growth", "reason": "Addresses top weakness", "signal": "Fixes positioning" },
{ "title": "The one metric nobody tracks", "reason": "Curiosity gap format", "signal": "High engagement" },
{ "title": "I spent 6 months posting wrong", "reason": "Personal story performs well", "signal": "Save magnet" }
]
}
}/api/v1/feedscope: feedGet top-performing posts (anonymous, by viral score).
{
"ok": true,
"data": {
"items": [
{ "hook": "Post hook...", "score": 91, "hookScore": 88, "platform": "LINKEDIN", "tone": "AUTHORITY" }
],
"total": 20
}
}Base URL: https://viralclaw.app