Yosu - YouTub Video Summarizer
Yosu - YouTub Video Summarizer · Ações GPT
Client-Server Interaction API
API for sending a string value to the server and displaying the response to the user.
POST /videoInfoSends a string value under the key 'url' to the server.
Esquema API original
{
"openapi": "3.1.0",
"info": {
"title": "Client-Server Interaction API",
"description": "API for sending a string value to the server and displaying the response to the user.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://yv8kj23s3b.execute-api.us-east-2.amazonaws.com"
}
],
"paths": {
"/videoInfo": {
"post": {
"operationId": "sendURL",
"summary": "Sends a string value under the key 'url' to the server.",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The string value to send to the server."
}
}
}
}
}
},
"responses": {
"200": {
"description": "Successful operation with transcript",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"video_id": {
"type": "string",
"description": "The YouTube video ID"
},
"title": {
"type": "string",
"description": "The title of the video"
},
"description": {
"type": "string",
"description": "Description of the video"
},
"language": {
"type": "string",
"description": "Language code of the video"
},
"transcript_language": {
"type": "string",
"description": "Language code of the transcript"
},
"transcript": {
"type": "string",
"description": "Transcript of the video"
}
}
}
}
}
},
"204": {
"description": "No transcript available",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"video_id": {
"type": "string",
"description": "The YouTube video ID"
},
"title": {
"type": "string",
"description": "The title of the video"
},
"description": {
"type": "string",
"description": "Description of the video"
},
"language": {
"type": "string",
"description": "Language code of the video"
},
"transcript_error": {
"type": "string",
"description": "Error message explaining why transcript could not be retrieved"
}
}
}
}
}
},
"400": {
"description": "Bad request",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Error message"
}
}
}
}
}
},
"404": {
"description": "Video not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Error message"
},
"video_id": {
"type": "string",
"description": "The YouTube video ID that was not found"
}
}
}
}
}
},
"422": {
"description": "Video ID mismatch",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Error message"
},
"requested_id": {
"type": "string",
"description": "The requested video ID"
},
"returned_id": {
"type": "string",
"description": "The returned video ID"
}
}
}
}
}
}
}
}
}
}
}