Video Genius

Video Genius · Actions GPT

Get youtube transcript

Get youtube transcript for user's question

  • POST /api/agents/youtube/transcriptGetScript

    Get youtube transcript

Schéma original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "Get youtube transcript",
    "description": "Get youtube transcript for user's question",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://server.tilnote.io"
    }
  ],
  "paths": {
    "/api/agents/youtube/transcript": {
      "post": {
        "description": "Get youtube transcript",
        "operationId": "GetScript",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "videoId": {
                    "type": "string",
                    "description": "Unique identifier for the video"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Response message"
                    },
                    "title": {
                      "type": "string",
                      "description": "Title of the YouTube video"
                    },
                    "transcript": {
                      "type": "string",
                      "description": "Transcript of the YouTube video"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "Error message"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "components": {
    "schemas": {}
  }
}