{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/transcriptapi-com/json-schema/transcriptapi-com-search-response-schema.json",
  "title": "SearchResponse",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/transcriptapi-com-openapi.json#/components/schemas/SearchResponse",
  "properties": {
    "results": {
      "items": {
        "oneOf": [
          {
            "$ref": "#/$defs/VideoResult"
          },
          {
            "$ref": "#/$defs/ChannelResult"
          },
          {
            "$ref": "#/$defs/SearchPlaylistResult"
          }
        ]
      },
      "type": "array",
      "title": "Results"
    },
    "result_count": {
      "type": "integer",
      "title": "Result Count",
      "default": 0
    },
    "continuation_token": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Continuation Token"
    },
    "has_more": {
      "type": "boolean",
      "title": "Has More",
      "default": false
    }
  },
  "type": "object",
  "$defs": {
    "ChannelResult": {
      "properties": {
        "type": {
          "type": "string",
          "const": "channel",
          "title": "Type",
          "default": "channel"
        },
        "channelId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Channelid"
        },
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Title"
        },
        "handle": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Handle"
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Url"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "subscriberCount": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Subscribercount"
        },
        "verified": {
          "type": "boolean",
          "title": "Verified",
          "default": false
        },
        "rssUrl": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rssurl"
        },
        "thumbnails": {
          "items": {
            "$ref": "#/$defs/Thumbnail"
          },
          "type": "array",
          "title": "Thumbnails"
        }
      },
      "type": "object",
      "title": "ChannelResult"
    },
    "SearchPlaylistResult": {
      "properties": {
        "type": {
          "type": "string",
          "const": "playlist",
          "title": "Type",
          "default": "playlist"
        },
        "playlistId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Playlistid"
        },
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Title"
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Url"
        },
        "videoCountText": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Videocounttext"
        },
        "thumbnails": {
          "items": {
            "$ref": "#/$defs/Thumbnail"
          },
          "type": "array",
          "title": "Thumbnails"
        }
      },
      "type": "object",
      "title": "SearchPlaylistResult"
    },
    "Thumbnail": {
      "properties": {
        "url": {
          "type": "string",
          "title": "Url"
        },
        "width": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Width"
        },
        "height": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Height"
        }
      },
      "type": "object",
      "required": [
        "url"
      ],
      "title": "Thumbnail"
    },
    "VideoResult": {
      "properties": {
        "type": {
          "type": "string",
          "const": "video",
          "title": "Type",
          "default": "video"
        },
        "videoId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Videoid"
        },
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Title"
        },
        "channelId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Channelid"
        },
        "channelTitle": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Channeltitle"
        },
        "channelHandle": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Channelhandle"
        },
        "channelVerified": {
          "type": "boolean",
          "title": "Channelverified",
          "default": false
        },
        "lengthText": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Lengthtext"
        },
        "viewCountText": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Viewcounttext"
        },
        "publishedTimeText": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Publishedtimetext"
        },
        "hasCaptions": {
          "type": "boolean",
          "title": "Hascaptions",
          "default": false
        },
        "descriptionSnippet": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Descriptionsnippet"
        },
        "isLive": {
          "type": "boolean",
          "title": "Islive",
          "default": false
        },
        "is4k": {
          "type": "boolean",
          "title": "Is4K",
          "default": false
        },
        "thumbnails": {
          "items": {
            "$ref": "#/$defs/Thumbnail"
          },
          "type": "array",
          "title": "Thumbnails"
        }
      },
      "type": "object",
      "title": "VideoResult"
    }
  }
}