YT transcriber

YT transcriber · Acciones GPT

FastAPI

  • POST /get_transcriptTranscribe
Esquema original API
{
  "openapi": "3.0.2",
  "servers": [
    {
      "url": "https://jxnl--agent-fastapi-app-dev.modal.run",
      "description": "Main server"
    }
  ],
  "info": {
    "title": "FastAPI",
    "version": "0.1.0"
  },
  "paths": {
    "/get_transcript": {
      "post": {
        "summary": "Transcribe",
        "operationId": "transcribe_get_transcript_post",
        "parameters": [
          {
            "required": true,
            "schema": {
              "title": "Video Id",
              "type": "string"
            },
            "name": "video_id",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "HTTPValidationError": {
        "title": "HTTPValidationError",
        "type": "object",
        "properties": {
          "detail": {
            "title": "Detail",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            }
          }
        }
      },
      "ValidationError": {
        "title": "ValidationError",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "type": "object",
        "properties": {
          "loc": {
            "title": "Location",
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            }
          },
          "msg": {
            "title": "Message",
            "type": "string"
          },
          "type": {
            "title": "Error Type",
            "type": "string"
          }
        }
      }
    }
  }
}