ChatTube

ChatTube · GPT 작업

FastAPI

  • POST /gpts/youtube/get_vidGet Vid

    Gets the transcript for a youtube video

  • POST /gpts/youtube/search_youtubeSearch Youtube

    Searches YouTube videos based on a query

  • POST /gpts/youtube/download_youtubeDownload Youtube

    Downloads a youtube video

원본 API 스키마
{
  "openapi": "3.1.0",
  "info": {
    "title": "FastAPI",
    "version": "0.1.0"
  },
  "paths": {
    "/gpts/youtube/get_vid": {
      "post": {
        "tags": [
          "gpts",
          "youtube"
        ],
        "summary": "Get Vid",
        "description": "Gets the transcript for a youtube video",
        "operationId": "get_vid_gpts_youtube_get_vid_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetYoutubeVideoTranscriptRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-openai-isConsequential": false
      }
    },
    "/gpts/youtube/search_youtube": {
      "post": {
        "tags": [
          "gpts",
          "youtube"
        ],
        "summary": "Search Youtube",
        "description": "Searches YouTube videos based on a query",
        "operationId": "search_youtube_gpts_youtube_search_youtube_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/YoutubeSearchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-openai-isConsequential": false
      }
    },
    "/gpts/youtube/download_youtube": {
      "post": {
        "tags": [
          "gpts",
          "youtube"
        ],
        "summary": "Download Youtube",
        "description": "Downloads a youtube video",
        "operationId": "download_youtube_gpts_youtube_download_youtube_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/YoutubeDownloadRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "x-openai-isConsequential": false
      }
    }
  },
  "components": {
    "schemas": {
      "GetYoutubeVideoTranscriptRequest": {
        "properties": {
          "video_link": {
            "type": "string",
            "title": "Video Link",
            "description": "The link of the youtube video to get transcript of."
          }
        },
        "type": "object",
        "required": [
          "video_link"
        ],
        "title": "GetYoutubeVideoTranscriptRequest"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      },
      "YoutubeDownloadRequest": {
        "properties": {
          "video_url": {
            "type": "string",
            "title": "Video Url",
            "description": "The URL of the YouTube video to download."
          }
        },
        "type": "object",
        "required": [
          "video_url"
        ],
        "title": "YoutubeDownloadRequest"
      },
      "YoutubeSearchRequest": {
        "properties": {
          "query": {
            "type": "string",
            "title": "Query",
            "description": "Search query for YouTube videos."
          },
          "num_results": {
            "type": "integer",
            "title": "Num Results",
            "description": "Number of search results to return, capped at 10.",
            "default": 10
          }
        },
        "type": "object",
        "required": [
          "query"
        ],
        "title": "YoutubeSearchRequest"
      }
    },
    "securitySchemes": {
      "HTTPBearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "servers": [
    {
      "url": "https://api.academiai.org"
    }
  ]
}