科技文章翻译

科技文章翻译 · GPT アクション

GPT API

API for GPTs

  • GET /api/url2mdRetrieves the page data for a url.
元の API スキーマ
{
  "openapi": "3.1.0",
  "info": {
    "title": "GPT API",
    "description": "API for GPTs",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://gpt-api.baoyu.io"
    }
  ],
  "components": {
    "schemas": {},
    "parameters": {}
  },
  "paths": {
    "/api/url2md": {
      "get": {
        "tags": [
          "PageContent"
        ],
        "summary": "Retrieves the page data for a url.",
        "operationId": "get_PageFetch",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "Get page content for a specific url"
            },
            "required": true,
            "name": "url",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the page content if found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "page": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "content": {
                          "type": "string"
                        },
                        "excerpt": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "excerpt"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "page"
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "webhooks": {}
}