Viral Ads Script
Viral Ads Script · GPT アクション
Retrieve Video Transcripts
Retrieves transcripts for videos from various platforms.
GET /transcriptsget_video_transcriptsRetrieves the transcripts of a video. The response includes the video's subtitles if available. In case of no subtitles, an error message is returned.
元の API スキーマ
{
"openapi": "3.1.0",
"info": {
"title": "Retrieve Video Transcripts",
"description": "Retrieves transcripts for videos from various platforms.",
"version": "v1.0.0"
},
"servers": [
{
"url": "https://tt.tokbackup.com"
}
],
"paths": {
"/transcripts": {
"get": {
"description": "Retrieves the transcripts of a video. The response includes the video's subtitles if available. In case of no subtitles, an error message is returned.",
"operationId": "get_video_transcripts",
"parameters": [
{
"name": "video",
"in": "query",
"description": "The URL of the video to retrieve transcripts for",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Subtitles retrieved successfully",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string",
"example": "Subtitles retrieved"
},
"subtitles": {
"type": "string",
"example": "\n00:00:00.011 --> 00:00:00.891\nHere's the strategy..."
}
}
}
}
}
},
"400": {
"description": "Error in retrieving subtitles",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "boolean",
"example": true
},
"message": {
"type": "string",
"example": "The video has no subtitles."
}
}
}
}
}
}
}
}
}
}
}