{ "$defs": { "YouTubeSearchFilters": { "additionalProperties": false, "description": "Optional YouTube search filters, including feature flags.", "properties": { "duration": { "anyOf": [ { "enum": [ "<4", "4-20", ">20" ], "type": "string" }, { "type": "null" } ], "default": null, "title": "Duration" }, "sort_by": { "anyOf": [ { "enum": [ "rating", "relevance", "view_count", "upload_date" ], "type": "string" }, { "type": "null" } ], "default": null, "title": "Sort By" }, "type": { "anyOf": [ { "enum": [ "video", "channel", "playlist", "movie" ], "type": "string" }, { "type": "null" } ], "default": null, "title": "Type" }, "upload_date": { "anyOf": [ { "enum": [ "today", "last_hour", "this_week", "this_month", "this_year" ], "type": "string" }, { "type": "null" } ], "default": null, "title": "Upload Date" }, "360": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "360" }, "3d": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "3D" }, "4k": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "4K" }, "creative_commons": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "Creative Commons" }, "hd": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "Hd" }, "hdr": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "Hdr" }, "live": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "Live" }, "location": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "Location" }, "purchased": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "Purchased" }, "subtitles": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "Subtitles" }, "vr180": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "Vr180" } }, "title": "YouTubeSearchFilters", "type": "object" } }, "additionalProperties": false, "description": "YouTube video search parameters.", "properties": { "query": { "description": "YouTube search query, between 1 and 2,000 characters.", "maxLength": 2000, "minLength": 1, "title": "Query", "type": "string" }, "max_results": { "default": 10, "description": "Requested number of videos.", "maximum": 20, "minimum": 1, "title": "Max Results", "type": "integer" }, "filters": { "anyOf": [ { "$ref": "#/$defs/YouTubeSearchFilters" }, { "type": "null" } ], "default": null } }, "required": [ "query" ], "title": "YouTubeSearchInput", "type": "object" }