{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vidcrawl-com/json-schema/vidcrawl-com-search-request-schema.json",
  "title": "SearchRequest",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vidcrawl-com-openapi.json#/components/schemas/SearchRequest",
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "platform": {
      "type": "string",
      "enum": [
        "youtube",
        "tiktok"
      ],
      "default": "youtube"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 20,
      "default": 5
    },
    "scrape": {
      "type": "boolean",
      "default": false
    },
    "lang": {
      "type": "string",
      "maxLength": 16,
      "pattern": "^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$",
      "default": "en"
    },
    "source": {
      "type": "string",
      "enum": [
        "live",
        "index"
      ],
      "default": "live"
    },
    "domain": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    }
  },
  "required": [
    "query"
  ]
}