AutoExpert (Video)

AutoExpert (Video) · GPT-Aktionen

LLM Imagineers - YouTube Transcript

  • GET /fetchYouTubeTranscriptRetrieve YouTube video transcript

    This endpoint allows clients to obtain the transcript of a specified YouTube video.

Ursprüngliches API-Schema
{
  "openapi": "3.0.0",
  "info": {
    "title": "LLM Imagineers - YouTube Transcript",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.llmimagineers.com",
      "description": ""
    }
  ],
  "paths": {
    "/fetchYouTubeTranscript": {
      "get": {
        "summary": "Retrieve YouTube video transcript",
        "operationId": "getFetchyoutubetranscript",
        "description": "This endpoint allows clients to obtain the transcript of a specified YouTube video.",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "description": "URL for YouTube Video",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with the video transcript.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "title": {
                      "type": "string",
                      "description": "The name of the video's creator"
                    },
                    "creator": {
                      "type": "string",
                      "description": "The creator of the video"
                    },
                    "thumbnail": {
                      "type": "string",
                      "description": "The URL of the video's thumbnail"
                    },
                    "transcript_text": {
                      "type": "string",
                      "description": "The text of the video transcript"
                    },
                    "transcript_json": {
                      "type": "object",
                      "description": "An array of lines from the video transcript"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Transcripts are disabled for this video.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Transcripts are disabled for this video."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Video transcript could not be found for this video.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Video transcript could not be found for this video."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal server error indicating a failure in processing the request.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Another error occurred: Message here"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {},
    "responses": {},
    "parameters": {},
    "examples": {},
    "requestBodies": {},
    "headers": {},
    "securitySchemes": {},
    "links": {},
    "callbacks": {}
  }
}