API Documentation

    Integrate ViralVideoSearch into your apps, workflows, and automations.

    The ViralVideoSearch API (Agency plan, $149/mo) returns English-language viral TikToks, Reels and Shorts by niche — each measured against its creator's own usual views — plus frame-by-frame analyses and step-by-step recreation plans. Prefer an AI assistant? Use the MCP for Claude and ChatGPT, or compare plans.

    Getting Started

    1. Get an API key

    Create an API key from your API Keys dashboard (sign in required). Keys start with vvs_.

    2. Base URL

    https://hjiellrqkxqlhpzwlfns.supabase.co/functions/v1/public-api/v1

    3. Authentication

    Pass your API key in the X-API-Key header with every request.

    Example
    curl -H "X-API-Key: vvs_YOUR_KEY" \
      "https://hjiellrqkxqlhpzwlfns.supabase.co/functions/v1/public-api/v1/videos?limit=5"

    Errors & Limits

    Rate Limits

    API requests are rate-limited to 100 requests per minute per API key. Exceeding this returns 429 Too Many Requests.

    Error Format

    {
      "error": "Description of the error"
    }
    StatusMeaning
    200Success
    400Bad request — missing or invalid parameters
    401Unauthorized — missing or invalid API key
    404Resource not found
    429Rate limit exceeded
    500Internal server error

    Endpoints

    All endpoints require authentication via the X-API-Key header.

    Videos

    GET
    /v1/videos

    List your saved viral videos, sorted by most recent.

    Parameters

    NameTypeRequiredDescription
    platformstringOptionalFilter by platform (tiktok, instagram, youtube)
    limitintegerOptionalMax results (1–50, default 20)
    offsetintegerOptionalPagination offset (default 0)
    Request
    curl -H "X-API-Key: vvs_YOUR_KEY" \
      "https://hjiellrqkxqlhpzwlfns.supabase.co/functions/v1/public-api/v1/videos?platform=tiktok&limit=10"
    GET
    /v1/videos/search

    Search your saved videos by caption text.

    Parameters

    NameTypeRequiredDescription
    qstring
    Required
    Search query
    platformstringOptionalFilter by platform
    limitintegerOptionalMax results (1–50, default 20)
    Request
    curl -H "X-API-Key: vvs_YOUR_KEY" \
      "https://hjiellrqkxqlhpzwlfns.supabase.co/functions/v1/public-api/v1/videos/search?q=fitness&platform=tiktok"
    GET
    /v1/videos/:id

    Get a single video by its ID. Returns all available fields.

    Request
    curl -H "X-API-Key: vvs_YOUR_KEY" \
      "https://hjiellrqkxqlhpzwlfns.supabase.co/functions/v1/public-api/v1/videos/abc-123"
    GET
    /v1/videos/:id/analysis

    Get the AI analysis for a specific video.

    Request
    curl -H "X-API-Key: vvs_YOUR_KEY" \
      "https://hjiellrqkxqlhpzwlfns.supabase.co/functions/v1/public-api/v1/videos/abc-123/analysis"

    Analyses

    GET
    /v1/analyses

    List all your AI analyses, sorted by most recent.

    Parameters

    NameTypeRequiredDescription
    limitintegerOptionalMax results (1–50, default 20)
    offsetintegerOptionalPagination offset (default 0)
    Request
    curl -H "X-API-Key: vvs_YOUR_KEY" \
      "https://hjiellrqkxqlhpzwlfns.supabase.co/functions/v1/public-api/v1/analyses?limit=5"
    GET
    /v1/analyses/:id

    Get a single analysis by its ID.

    Request
    curl -H "X-API-Key: vvs_YOUR_KEY" \
      "https://hjiellrqkxqlhpzwlfns.supabase.co/functions/v1/public-api/v1/analyses/ana-789"

    Niche intelligence

    The curated layer: the niches we scrape every day, their ranked feeds with acceleration scores, and pattern aggregates computed from analysed videos. These endpoints never return private libraries, user identifiers or transcripts.

    GET
    /v1/niches

    List the active curated niches.

    Request
    curl -H "X-API-Key: vvs_YOUR_KEY" \
      "https://hjiellrqkxqlhpzwlfns.supabase.co/functions/v1/public-api/v1/niches"
    GET
    /v1/niches/:slug/feed

    Recent videos captured for a niche, with rank, velocity score, platform-wide and niche-scoped percentiles, and the flags behind the score.

    Parameters

    NameTypeRequiredDescription
    daysintegerOptionalLook-back window in days (1–90, default 7)
    fromdateOptionalStart date YYYY-MM-DD (overrides days)
    todateOptionalEnd date YYYY-MM-DD
    limitintegerOptionalMax results (1–100, default 25)
    offsetintegerOptionalPagination offset (default 0)
    Request
    curl -H "X-API-Key: vvs_YOUR_KEY" \
      "https://hjiellrqkxqlhpzwlfns.supabase.co/functions/v1/public-api/v1/niches/manifestation/feed?days=7&limit=25"
    GET
    /v1/niches/:slug/patterns

    Aggregated pattern intelligence for a niche over a date range — hook style, format, pacing and psychological pattern distributions from real analyses, plus engagement rate, follower, caption length and hashtag distributions.

    Parameters

    NameTypeRequiredDescription
    daysintegerOptionalLook-back window in days (1–180, default 30)
    fromdateOptionalStart date YYYY-MM-DD (overrides days)
    todateOptionalEnd date YYYY-MM-DD
    min_percentileintegerOptionalPercentile floor for the hashtag set (50–99, default 80)
    Request
    curl -H "X-API-Key: vvs_YOUR_KEY" \
      "https://hjiellrqkxqlhpzwlfns.supabase.co/functions/v1/public-api/v1/niches/manifestation/patterns?days=30"
    GET
    /v1/analyses/public

    Published analyses — the derived layer only (hook style, format, pacing, scene count, psychological pattern, pattern lesson). Transcripts and recreation prompts are not returned.

    Parameters

    NameTypeRequiredDescription
    limitintegerOptionalMax results (1–100, default 25)
    offsetintegerOptionalPagination offset (default 0)
    Request
    curl -H "X-API-Key: vvs_YOUR_KEY" \
      "https://hjiellrqkxqlhpzwlfns.supabase.co/functions/v1/public-api/v1/analyses/public?limit=25"

    Ready to integrate?

    Create your first API key to get started.

    Sign up for an API key

    Frequently asked questions

    Is there a TikTok MCP for Claude or ChatGPT?
    Yes. The ViralVideoSearch MCP connects Claude, ChatGPT, Cursor and other MCP clients to our collection of English-language TikToks, Instagram Reels and YouTube Shorts, so your assistant can find outliers by niche, list winning hooks and pull recreation plans.
    Is there a TikTok trends or viral video API?
    Yes. The ViralVideoSearch REST API returns viral short videos by niche, each measured against its creator’s own usual views, plus frame-by-frame analyses and recreation plans.
    Which plan includes the API and MCP?
    Agency ($149/month) includes API and MCP access. Free accounts can connect the MCP and get the top 5 public-corpus results. Try 3 searches and 1 free recreation plan from our analyzed library, no account. Free account: 10 searches a day + 2 free AI breakdowns from our analyzed library. No card.
    Is this TikTok’s official API?
    No. ViralVideoSearch is an independent service and is not affiliated with TikTok, Instagram or YouTube. We link to every original video we cite.