AI summary ⛩ Samurai

AI summary ⛩ Samurai · GPT Actions

Get material by URL

Retrieves parsed data for a given source URL, now with support for multiple parts.

  • GET /parseGetParsedData

    Get parsed data for a specific source URL, with the option to request a specific part of the material.

原始 API 定义
{
  "openapi": "3.1.0",
  "info": {
    "title": "Get material by URL",
    "description": "Retrieves parsed data for a given source URL, now with support for multiple parts.",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://api.gosamurai.ai"
    }
  ],
  "paths": {
    "/parse": {
      "get": {
        "description": "Get parsed data for a specific source URL, with the option to request a specific part of the material.",
        "operationId": "GetParsedData",
        "parameters": [
          {
            "name": "source_url",
            "in": "query",
            "description": "The URL to parse, e.g., a YouTube video URL or web Article URL",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "The page number of the parsed material to retrieve.",
            "required": false,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with parsed content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "content": {
                      "type": "string"
                    },
                    "totalPages": {
                      "type": "integer",
                      "description": "The total number of parts the material is divided into."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request, when the query parameters are missing or invalid"
          },
          "500": {
            "description": "Internal server error, when the API fails to process the request"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {}
  }
}