유튜브 쇼츠 전문가 📝
유튜브 쇼츠 전문가 📝 · Acciones GPT
YouTube Transcript API
This API allows you to retrieve the transcript of a YouTube video. The script is optionally returned with time timestamp information (start time and duration).
GET /yttranscriptGet YouTube video transcriptsReturns the script and time information for the given YouTube video ID.
Esquema original API
{
"openapi": "3.1.0",
"info": {
"title": "YouTube Transcript API",
"description": "This API allows you to retrieve the transcript of a YouTube video. The script is optionally returned with time timestamp information (start time and duration).",
"version": "1.0.0"
},
"servers": [
{
"url": "https://apis.sjgpts.com"
}
],
"components": {
"securitySchemes": {
"ApiKeyAuth": {
"type": "apiKey",
"in": "header",
"name": "x-api-key"
}
},
"schemas": {}
},
"security": [
{
"ApiKeyAuth": []
}
],
"paths": {
"/yttranscript": {
"get": {
"summary": "Get YouTube video transcripts",
"description": "Returns the script and time information for the given YouTube video ID.",
"operationId": "getYouTubeTranscript",
"parameters": [
{
"name": "video_id",
"in": "query",
"required": true,
"schema": {
"type": "string",
"description": "The ID of the YouTube video."
}
}
],
"responses": {
"200": {
"description": "성공적으로 스크립트를 조회했습니다.",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "스크립트의 텍스트 부분입니다."
},
"start": {
"type": "number",
"format": "float",
"description": "스크립트 텍스트가 시작하는 시간(초)입니다."
},
"duration": {
"type": "number",
"format": "float",
"description": "스크립트 텍스트의 지속 시간(초)입니다."
}
}
},
"description": "스크립트와 관련된 정보가 포함된 배열입니다."
}
}
}
},
"400": {
"description": "잘못된 요청입니다. 요청 본문을 확인해주세요."
},
"404": {
"description": "주어진 ID의 유튜브 영상을 찾을 수 없습니다."
},
"500": {
"description": "서버 내부 오류입니다."
}
}
}
}
}
}