Webpage Grabber: Full Page Screenshot PDF From URL

Webpage Grabber: Full Page Screenshot PDF From URL · GPT 작업

Microlink API

  • GET /Fetch webpage metadata or generate PDF
원본 API 스키마
{
  "openapi": "3.0.0",
  "info": {
    "title": "Microlink API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.microlink.io"
    }
  ],
  "paths": {
    "/": {
      "get": {
        "summary": "Fetch webpage metadata or generate PDF",
        "operationId": "generatePDFScreenshotOfWebpage",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "description": "The URL of the webpage to process",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pdf",
            "in": "query",
            "description": "Generate a PDF of the webpage",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "scale",
            "in": "query",
            "description": "Scale of the webpage rendering for PDF generation",
            "required": true,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "margin",
            "in": "query",
            "description": "Margin around the PDF content",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "embed",
            "in": "query",
            "description": "Embed PDF URL in the response for asynchronous download",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mediaType",
            "in": "query",
            "description": "Media type for PDF generation, default is 'print'",
            "required": true,
            "schema": {
              "type": "string",
              "default": "print"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "lang": {
                          "type": "string"
                        },
                        "author": {
                          "type": "string"
                        },
                        "publisher": {
                          "type": "string"
                        },
                        "image": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        },
                        "date": {
                          "type": "string"
                        },
                        "logo": {
                          "type": "object",
                          "properties": {
                            "url": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string"
                            },
                            "size": {
                              "type": "integer"
                            },
                            "height": {
                              "type": "integer"
                            },
                            "width": {
                              "type": "integer"
                            },
                            "size_pretty": {
                              "type": "string"
                            }
                          }
                        },
                        "pdf": {
                          "type": "object",
                          "properties": {
                            "size_pretty": {
                              "type": "string"
                            },
                            "size": {
                              "type": "integer"
                            },
                            "type": {
                              "type": "string"
                            },
                            "url": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    },
                    "status": {
                      "type": "string",
                      "example": "success"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}