のYouTube Video Summarizer ✏️ のYouTube Unaffiliated
のYouTube Video Summarizer ✏️ のYouTube Unaffiliated · GPT-Aktionen
Transcript API
API for fetching transcript data for videos.
POST /c_tra_to_en/own_lo_p_get_captions/Get CaptionsRetrieves YouTube video captions for a given video ID and section index.
POST /c_tra_to_en/own_lo_freemium_hours_minutes_left/Get Remaining Booster Hours and Minutes for a particular user and their current subscription period end dateGET /c_tra_to_en/own_subscription_management_and_cancellationEndpoint for cases when a user ask to cancel or renew or manage user's subscription. It returns Stripe billing portal url.GET /c_tra_to_en/own_get_wemtos_urlGenerates an wemtos URL for the current user.
Ursprüngliches API-Schema
{
"openapi": "3.1.0",
"info": {
"title": "Transcript API",
"version": "1.0.0",
"description": "API for fetching transcript data for videos.\n"
},
"servers": [
{
"url": "https://videosummarizer.co"
}
],
"paths": {
"/c_tra_to_en/own_lo_p_get_captions/": {
"post": {
"summary": "Get Captions",
"description": "Retrieves YouTube video captions for a given video ID and section index.",
"operationId": "own_lo_p_get_captions",
"x-openai-isConsequential": false,
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VideoIdRequest"
}
}
}
},
"responses": {
"200": {
"description": "Successfully retrieved captions and boost information.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TranscriptResponse"
}
}
}
},
"400": {
"description": "Bad Request - Invalid input data.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized - Invalid or missing token.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden - Authentication failed.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found - Transcript not found for the given video_id.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"408": {
"description": "Request timeout.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"422": {
"description": "Unprocessable Entity - Invalid data format.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"429": {
"description": "Too Many Requests.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error - Failed to process the request.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
},
"/c_tra_to_en/own_lo_freemium_hours_minutes_left/": {
"post": {
"summary": "Get Remaining Booster Hours and Minutes for a particular user and their current subscription period end date",
"operationId": "own_lo_hours_minutes_left",
"x-openai-isConsequential": false,
"security": [
{
"bearerAuth": []
}
],
"responses": {
"200": {
"description": "Hours and minutes left and subscription end date.",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
},
"default": {
"description": "Unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
},
"/c_tra_to_en/own_subscription_management_and_cancellation": {
"get": {
"summary": "Endpoint for cases when a user ask to cancel or renew or manage user's subscription. It returns Stripe billing portal url.",
"operationId": "getSubscriptionManagementUrl",
"x-openai-isConsequential": false,
"security": [
{
"bearerAuth": []
}
],
"responses": {
"200": {
"description": "Stripe billing portal url",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"subscription_management_and_cancellation_url": {
"type": "string",
"format": "uri"
}
}
}
}
}
},
"401": {
"description": "The Bearer token is missing, expired or invalid."
},
"403": {
"description": "User does not have active subscription"
}
}
}
},
"/c_tra_to_en/own_get_wemtos_url": {
"get": {
"summary": "Generates an wemtos URL for the current user.",
"operationId": "getWemtosUrl",
"x-openai-isConsequential": false,
"security": [
{
"bearerAuth": []
}
],
"responses": {
"200": {
"description": "wemtos url",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"wemtos_url"
],
"properties": {
"wemtos_url": {
"type": "string",
"format": "uri"
}
}
}
}
}
},
"401": {
"description": "The Bearer token is missing, expired or invalid."
}
}
}
}
},
"components": {
"schemas": {
"TranscriptResponse": {
"type": "object",
"properties": {
"video_id": {
"type": "string",
"description": "The ID of the video."
},
"video_title": {
"type": "string",
"description": "Title of the video."
},
"index": {
"type": "integer",
"description": "Current index of the section."
},
"min_index": {
"type": "integer",
"description": "Minimum index of sections. Is equal to 0."
},
"max_index": {
"type": "integer",
"description": "Maximum index of sections."
},
"video_section_length_in_minutes": {
"type": "integer",
"description": "Length of the video section in minutes."
},
"summary_length": {
"type": "string"
},
"answer_limit": {
"type": "string"
},
"total_quantity_of_sections": {
"type": "integer",
"description": "Total number of sections in the video."
},
"sublist_captions": {
"type": "array",
"description": "List of caption segments with timing.",
"items": {
"type": "object",
"properties": {
"start": {
"type": "string",
"description": "Start time of the section (e.g., \"00:01:23\")."
},
"text": {
"type": "string",
"description": "Caption text for the section."
},
"end": {
"type": "string",
"description": "End time of the section (e.g., \"00:01:45\")."
}
}
}
},
"commands_instructions": {
"type": "string",
"description": "Instructions related to commands."
},
"article_instructions": {
"type": "string",
"description": "Instructions related to articles."
},
"diagram_instructions": {
"type": "string",
"description": "Instructions related to diagrams."
},
"quiz_instructions": {
"type": "string",
"description": "Instructions related to quizzes."
},
"timestamp_instructions": {
"type": "string",
"description": "Instructions related to timestamps."
},
"expand_summary_instructions": {
"type": "string",
"description": "Instructions related to expanding summary."
},
"additional_instructions": {
"type": "string",
"description": "Any additional instructions."
},
"footer_instructions": {
"type": "string"
},
"add_cmd_instructions": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"has_subscription",
"no_subscription"
],
"description": "Whether the user has active subscription or not."
},
"current_date_and_time": {
"type": "string",
"format": "date-time"
},
"human_support_email": {
"type": "string",
"format": "email"
},
"checkout_url": {
"type": "string",
"format": "uri",
"description": "Checkout URL for starting a subscription."
},
"promo_code": {
"type": "string",
"nullable": true
},
"promo_code_exp_date": {
"type": "string",
"description": "promo code expiration date"
},
"custom_instructions": {
"type": "string",
"description": "additional instructions to follow"
}
}
},
"Error": {
"type": "object",
"properties": {
"detail": {
"type": "string",
"description": "Error message detailing what went wrong."
}
},
"required": [
"detail"
]
},
"VideoIdRequest": {
"type": "object",
"required": [
"video_id",
"index"
],
"properties": {
"video_id": {
"type": "string",
"description": "The ID of the video.",
"example": "2WcbPcGrQZU"
},
"index": {
"type": "integer",
"description": "Section index. Starts from 0.",
"example": 0
}
}
},
"ErrorResponse": {
"type": "object",
"properties": {
"detail": {
"type": "string",
"description": "Detailed error message."
}
},
"required": [
"detail"
]
}
},
"securitySchemes": {
"bearerAuth": {
"type": "http",
"scheme": "bearer",
"bearerFormat": "JWT"
}
}
}
}