YouTutor
YouTutor · GPT 작업
YouTube Data API
Search YouTube for educational videos based on user queries.
GET /searchSearch for videosRetrieve a list of videos from YouTube based on a search query.
원본 API 스키마
{
"openapi": "3.1.0",
"info": {
"title": "YouTube Data API",
"description": "Search YouTube for educational videos based on user queries.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://www.googleapis.com/youtube/v3",
"description": "YouTube API Server"
}
],
"paths": {
"/search": {
"get": {
"operationId": "searchYouTubeVideos",
"summary": "Search for videos",
"description": "Retrieve a list of videos from YouTube based on a search query.",
"parameters": [
{
"name": "part",
"in": "query",
"description": "Specifies the resource properties to retrieve.",
"required": true,
"schema": {
"type": "string",
"example": "snippet"
}
},
{
"name": "q",
"in": "query",
"description": "Search query to find videos.",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "type",
"in": "query",
"description": "Filters the resource type.",
"required": true,
"schema": {
"type": "string",
"example": "video"
}
},
{
"name": "publishedAfter",
"in": "query",
"description": "Filter videos published after this date.",
"required": false,
"schema": {
"type": "string",
"format": "date-time",
"example": "2021-01-01T00:00:00Z"
}
},
{
"name": "key",
"in": "query",
"description": "API key for accessing YouTube Data API.",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "A list of videos from YouTube.",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "object",
"properties": {
"videoTitle": {
"type": "string",
"description": "The title of the video."
},
"videoUrl": {
"type": "string",
"description": "The URL of the video."
},
"channelTitle": {
"type": "string",
"description": "The name of the video’s channel."
},
"publishedAt": {
"type": "string",
"description": "The publication date of the video."
}
}
}
}
}
}
},
"401": {
"description": "Unauthorized - Invalid API key."
},
"429": {
"description": "Too Many Requests - Rate limit exceeded."
}
}
}
}
},
"components": {
"securitySchemes": {
"youtubeApiKey": {
"type": "apiKey",
"name": "key",
"in": "query"
}
},
"schemas": {}
}
}