{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/virlo-ai/json-schema/virlo-ai-search-videos-dto-schema.json",
  "title": "SearchVideosDto",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/virlo-ai-openapi.json#/components/schemas/SearchVideosDto",
  "type": "object",
  "properties": {
    "scope": {
      "type": "string",
      "enum": [
        "virlo_library",
        "my_research",
        "agent"
      ],
      "description": "Where to search. `virlo_library`: every video Virlo has analysed, plus tagged videos not analysed yet when you search by `places` or `near` with no topic or look ($0.05 per page of up to 25, nothing charged for an empty page). `my_research`: the videos your team's research agents collected (free). `agent`: one of your agents' videos, named by `agent_id` (free). Required unless you pass `cursor`."
    },
    "cursor": {
      "type": "string",
      "description": "Opaque cursor from `next_cursor` (or `cursor`) of an earlier answer: serves that page of the same search in the same order, with no repeats or gaps, without running the search again. Send it alone (add `page` to jump within the same search); other fields must be left out or match the original search. Cursors last 1 hour; an expired or unknown one is 400 `invalid_cursor` (not billed): run the search again without it. Billing per page is unchanged."
    },
    "agent_id": {
      "type": "string",
      "description": "The agent to search when `scope` is `agent`. Must be one of your team's agents."
    },
    "topics": {
      "description": "What the videos are about. Each item is one idea; write alternatives for the same idea with \"|\" (\"skin barrier|barrier repair\"). Every item must match. Optional: a region- or creator-only search works too.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "looks_like": {
      "type": "string",
      "description": "What is on screen or how the video is made, in plain words (\"faceless\", \"talking head\", \"UGC\", \"no AI\", \"girl dancing in her bedroom\"). Virlo matches it to what its video analysis can see; `applied` says what it used and `not_applied` what it could not."
    },
    "platforms": {
      "type": "array",
      "description": "One platform, or all three (the default). Two of three is reported in `not_applied` and searches all.",
      "items": {
        "type": "string",
        "enum": [
          "tiktok",
          "youtube",
          "instagram"
        ]
      }
    },
    "posted_after": {
      "type": "string",
      "description": "Posted on or after this date (ISO 8601, YYYY-MM-DD)."
    },
    "posted_before": {
      "type": "string",
      "description": "Posted on or before this date (ISO 8601, YYYY-MM-DD)."
    },
    "creator_followers_min": {
      "type": "number",
      "description": "Creator's followers, at least."
    },
    "creator_followers_max": {
      "type": "number",
      "description": "Creator's followers, at most."
    },
    "views_min": {
      "type": "number",
      "description": "Views, at least."
    },
    "views_max": {
      "type": "number",
      "description": "Views, at most."
    },
    "likes_min": {
      "type": "number",
      "description": "Likes, at least."
    },
    "engagement_rate_min": {
      "type": "number",
      "description": "Engagement rate floor, in percent ((likes + comments + shares) / views x 100). 5 = 5%."
    },
    "engagement_rate_max": {
      "type": "number",
      "description": "Engagement rate ceiling, in percent."
    },
    "virality_min": {
      "type": "number",
      "description": "Virality Score floor (10 promising, 18 strong, 25 very strong, 35 exceptional)."
    },
    "outliers_only": {
      "type": "boolean",
      "description": "Only outliers: videos that far outperformed their creator's follower count."
    },
    "regions": {
      "description": "Where the video was posted from: ISO 3166 alpha-2 codes (US, GB, BR), any of them.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "places": {
      "description": "Beta. Only videos whose creator TAGGED one of these places on the post (a TikTok or Instagram location tag), any of them. Each item is a venue or area name, a suburb or city, a council area or a postcode, as you would write it: `[\"chadstone\"]`, `[\"bondi\", \"manly\"]`, `[\"3000\"]`. A name matches as a phrase inside the place name (\"chadstone\" matches \"Chadstone Shopping Centre\"); a suburb, area or postcode matches exactly, case-insensitive. `[\"*\"]` = any video with a tagged place. A tag is the location the creator chose, and about 7% of TikTok and Instagram videos carry one (YouTube none), so results are tagged videos. With no topic, `looks_like` or other analysis filter, results include tagged videos Virlo has not analysed yet (`intelligence` null, `intelligence_status` skipped). For a country alone use `regions`. Find place names with `GET /v1/places`.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "near": {
      "description": "Beta. Only videos whose tagged place lies within a distance of a map point, any of them. Each item is `\"lat,lng,km\"`: latitude, longitude and a radius in km from 0.1 to 200, for example `[\"-37.8136,144.9631,5\"]` (5 km around central Melbourne). It reads the tagged place’s own map point, so only tagged videos can match (about 7% of TikTok and Instagram videos, YouTube none), and a tag is the location the creator chose. Take a point from `GET /v1/places` (`lat`, `lng`) or your own geocoder. Combine with `places` to require both. With no topic, `looks_like` or other analysis filter, results include tagged videos Virlo has not analysed yet.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "languages": {
      "description": "Spoken or written language: ISO 639-1 codes (en, es, pt), any of them.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "creator_type": {
      "type": "string",
      "enum": [
        "individual",
        "brand"
      ],
      "description": "Who posts: an individual person or a brand account."
    },
    "sort": {
      "type": "string",
      "enum": [
        "most_viral",
        "most_views",
        "newest",
        "rising"
      ],
      "default": "most_viral",
      "description": "most_viral (Virality Score, the default), most_views, newest, rising (gaining views fastest right now)."
    },
    "content_types": {
      "type": "array",
      "default": [
        "video"
      ],
      "description": "What to return: `video` (the default), `slideshow` (photo carousels, as a separate `slideshows` list beside `videos`), or both. Leave it out and the answer is exactly as before. With `slideshow`, `data.slideshows` holds up to 25 slideshows a page, in their own order, with their own `total`, the sort they were ranked by (`sort_used`) and the filters a slideshow cannot answer (`not_applied`, e.g. duration). Without `video`, `videos` is an empty list and `total` is 0. Same price: a `virlo_library` page that holds results (videos or slideshows) is $0.05 (5 credits), an empty page is free, `my_research` and `agent` are free.",
      "items": {
        "type": "string",
        "enum": [
          "video",
          "slideshow"
        ]
      }
    },
    "page": {
      "type": "number",
      "default": 1,
      "minimum": 1,
      "maximum": 40,
      "description": "Page number, 25 videos a page. Each library page that holds results is billed."
    }
  }
}