Video Summarizer

Video Summarizer · Acciones GPT

YouTube Transcript Service

Service to fetch YouTube video transcripts.

  • POST /transcriptGet YouTube video transcript

    Sends a YouTube video URL and a language code, and receives a transcript.

Esquema original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "YouTube Transcript Service",
    "version": "1.0.0",
    "description": "Service to fetch YouTube video transcripts."
  },
  "servers": [
    {
      "url": "https://tactiq-apps-prod.tactiq.io"
    }
  ],
  "paths": {
    "/transcript": {
      "post": {
        "summary": "Get YouTube video transcript",
        "description": "Sends a YouTube video URL and a language code, and receives a transcript.",
        "operationId": "getYouTubeTranscript",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "videoUrl": {
                    "type": "string",
                    "example": "https://youtube.com/shorts/B-hMpkTcFMM?si=qxtvtdmR5FhE9zq_"
                  },
                  "langCode": {
                    "type": "string",
                    "example": "en"
                  }
                },
                "required": [
                  "videoUrl",
                  "langCode"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "title": {
                      "type": "string"
                    },
                    "captions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "dur": {
                            "type": "string"
                          },
                          "start": {
                            "type": "string"
                          },
                          "text": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}