Merlin (Long Video Summarizer)

Merlin (Long Video Summarizer) · Actions GPT

Get YouTube Transcript Data

Retrieves YouTube Transcript Based on URL. It will do this in chunks if the video is too long.

  • POST /link-transcriberFetch YouTube Video Transcript

    Fetches the transcript of a given YouTube video.

Schéma original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "Get YouTube Transcript Data",
    "description": "Retrieves YouTube Transcript Based on URL. It will do this in chunks if the video is too long.",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://api.merlin.cx"
    }
  ],
  "paths": {
    "/link-transcriber": {
      "post": {
        "operationId": "fetchYoutubeTranscript",
        "summary": "Fetch YouTube Video Transcript",
        "description": "Fetches the transcript of a given YouTube video.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "linkUrl": {
                    "type": "string",
                    "format": "uri",
                    "description": "The URL of the YouTube video"
                  },
                  "index": {
                    "type": "number",
                    "default": 0,
                    "description": "The index of the transcript chunks array in order to return the corresponding chunk of the transcript. This defaults to 0, unless the previous response \"nextIndex\" parameter was not -1, in which case the client should pass the value of the previous response \"nextIndex\" parameter."
                  }
                },
                "required": [
                  "linkUrl",
                  "index"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response with the YouTube transcript",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "transcript": {
                      "type": "string",
                      "description": "The transcript of the YouTube video"
                    },
                    "totalChunks": {
                      "type": "number",
                      "description": "The total number of chunks in the transcript"
                    },
                    "nextIndex": {
                      "type": "number",
                      "description": "The index of the next chunk of the transcript that should be called by the client. If the value is -1, then the transcript is complete and there are no more chunks to fetch. If the index is any other integer, a further API call is to be made and the \"index\" parameter should be set to the value of this parameter in the next API call."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request, e.g., missing or invalid linkUrl"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "deprecated": false
      }
    }
  }
}