{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/virlo-ai/json-schema/virlo-ai-start-creator-lookup-dto-schema.json",
  "title": "StartCreatorLookupDto",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/virlo-ai-openapi.json#/components/schemas/StartCreatorLookupDto",
  "type": "object",
  "properties": {
    "include": {
      "type": "string",
      "description": "Comma-separated list of optional fields to include: \"videos\", \"outliers\""
    },
    "cross_links": {
      "type": "boolean",
      "description": "Enable cross-platform link discovery. Finds the same creator on other platforms (YouTube, TikTok, Instagram, Twitter/X, Spotify).",
      "default": false
    },
    "max_videos": {
      "type": "number",
      "description": "Number of videos to fetch and analyze. More videos = better stats but slower response.",
      "minimum": 1,
      "maximum": 100,
      "default": 20
    },
    "outlier_threshold": {
      "type": "number",
      "description": "Multiplier for outlier detection. A video is an outlier if views > median_views * threshold. Only applies when include=outliers.",
      "default": 2
    },
    "audience_demographics": {
      "type": "boolean",
      "description": "Include inferred audience demographics (age + gender distributions). Returns a cached snapshot if one exists within freshness_days; otherwise dispatches an async snapshot job and returns { status: \"processing\", job_id } so you can poll via the dedicated audience endpoints, and adds an extra $0.50 surcharge on top of the base $0.50 creator-lookup cost. A cache hit within freshness_days is free. Off by default — only computed when explicitly requested.",
      "default": false
    },
    "audience_geography": {
      "type": "boolean",
      "description": "Include inferred audience geography (country + city distributions, with languages). Same caching and $0.50 surcharge behavior as audience_demographics — a cached snapshot within freshness_days is free. Off by default.",
      "default": false
    },
    "freshness_days": {
      "type": "number",
      "description": "Maximum age (in days) of an acceptable cached audience snapshot. Snapshots older than this trigger a new async job. Only relevant when audience_demographics or audience_geography is set.",
      "minimum": 0,
      "maximum": 365,
      "default": 30
    },
    "trend_analysis": {
      "type": "boolean",
      "description": "Run AI trend detection over this creator's body of work. Forces a deep fetch (max_videos is bumped to 100) so the model has enough signal, implicitly includes the videos[] payload, and adds an extra $0.50 surcharge on top of the base $0.50 creator-lookup cost. Trends are persisted with the run, so re-reading via GET /v1/satellite/runs/{run_id} is free. Returns the same trends shape as sound lookups: mechanically-derived time_windows[], resurged flag, and momentum metric.",
      "default": false
    },
    "data_intelligence": {
      "type": "boolean",
      "description": "Run Data Intelligence on this creator's videos — the same structured content analysis Virlo runs for Content Research Agents. Each analyzed video is enriched with its hook (opening line + type), content format, and visual treatment, and the run gets a grounded \"what's working\" analysis. Implicitly includes the videos[] payload (like trend_analysis) — the enrichment hangs off the video list, so you don't need include=videos. Enrichment runs ASYNCHRONOUSLY after the base lookup completes: poll status/:job_id for the base result, then re-read GET /v1/satellite/runs/:run_id — the `analysis` object and `intelligence_status` populate once processing finishes (typically 1-3 min). Adds an extra 25 credits ($0.25) on top of the base $0.50 creator-lookup cost. Off by default. A repeat lookup within 6 hours is served free from a cached run only when that run also had data_intelligence=true; otherwise it runs fresh and is charged.",
      "default": false
    },
    "context": {
      "type": "string",
      "description": "Optional free-text statement of what you're trying to learn from this creator (max 600 chars), e.g. \"which hooks drive their most-viewed videos\". When data_intelligence is enabled it grounds the \"what's working\" analysis on your goal. Ignored without data_intelligence.",
      "maxLength": 600
    },
    "slideshow_sort": {
      "type": "string",
      "description": "Which carousels get slide-captured + OCR'd when a creator has more slideshows than the per-run cap (100). \"popular\" (default) keeps the highest-engagement carousels; \"recent\" keeps the newest by publish date, so the latest carousels are guaranteed OCR'd even before they accrue engagement. Only meaningful with data_intelligence on carousel-heavy Instagram/TikTok creators. Note this is the CAPTURE selector; the read-side sort on GET /v1/satellite/runs/:run_id/videos only reorders what was already captured.",
      "enum": [
        "recent",
        "popular"
      ],
      "default": "popular"
    },
    "platform": {
      "type": "string",
      "enum": [
        "tiktok",
        "instagram",
        "youtube"
      ]
    },
    "handle": {
      "type": "string",
      "description": "Creator's handle, with or without a leading @."
    }
  },
  "required": [
    "platform",
    "handle"
  ]
}