Developers

API & MCP

Ask your AI assistant “find winning ads for posture correctors and tear down the best one”. ViralOwl does the research with your account and credits.

Create an API key

Connect with MCP

Endpoint (Streamable HTTP): https://viralowl.app/api/mcp. ChatGPT and Claude sign in with OAuth, so you do not need a key. Other clients send a key as Authorization: Bearer adr_….

ChatGPT (Plus, Pro, Business)

  1. Settings → Apps & Connectors → Advanced settings → turn on Developer mode.
  2. Create connector: name it ViralOwl, paste https://viralowl.app/api/mcp, choose OAuth.
  3. Sign in to ViralOwl and click Allow. Then pick ViralOwl from the + menu in a chat.

Claude (claude.ai)

  1. Settings → Connectors → Add custom connector.
  2. Paste https://viralowl.app/api/mcp, then Connect, sign in to ViralOwl and click Allow.

Claude Desktop / Cursor (mcp.json)

{
  "mcpServers": {
    "viralowl": {
      "url": "https://viralowl.app/api/mcp",
      "headers": { "Authorization": "Bearer adr_YOUR_KEY" }
    }
  }
}

Claude Code

claude mcp add --transport http viralowl https://viralowl.app/api/mcp --header "Authorization: Bearer adr_YOUR_KEY"

Tools: search_ads_and_videos, teardown_item, list_teardowns, get_teardown, list_boards, get_board, analyze_landing_page, get_watchlist, get_credits.

REST API

curl -X POST https://viralowl.app/api/v1/search \
  -H "Authorization: Bearer adr_YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"query":"glow pajama","country":"US"}'
MethodPathWhat it does
GET/api/v1/mePlan and remaining credits
POST/api/v1/search{ query, country, limit? } → top results per source (default 20, max 50): Meta ads, TikTok ads, TikTok, Shorts and Reels (1 search credit unless cached)
GET/api/v1/teardownsYour and your team's teardowns (?id= for one)
POST/api/v1/teardowns{ itemId } → AI teardown (1 teardown credit)
POST/api/v1/landing{ url } → landing page analysis (1 teardown credit)
GET/api/v1/boardsYour and team boards
GET/api/v1/boards/:idItems on a board
GET/api/v1/boards/:id/exportBoard as CSV
GET/api/v1/watchlistTracked competitors and alerts

Errors return JSON { "error": "..." } with HTTP 401 (bad key), 402 (out of credits), 429 (daily limit). Keys can be revoked any time in settings.