Website Audit

Website Audit · Acciones GPT

Website Fetch API

This API takes a URL and returns the raw website data from that URL.

  • POST /api/v1/gpt_contentFetches the relevant content from an URL.
  • POST /api/v1/gpt_website_urlsFetches the first 10 urls present on the given website page
  • POST /api/v1/gpt_screenshotCreates website screenshots in multiple screen resolutions.
Esquema original API
{
  "openapi": "3.0.0",
  "info": {
    "title": "Website Fetch API",
    "description": "This API takes a URL and returns the raw website data from that URL.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://gpt.flowpoint.ai",
      "description": "Main production server"
    }
  ],
  "paths": {
    "/api/v1/gpt_content": {
      "post": {
        "operationId": "fetchWebsiteContent",
        "summary": "Fetches the relevant content from an URL.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "The URL to process."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Contains the text fetched from the website.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input"
          }
        }
      }
    },
    "/api/v1/gpt_website_urls": {
      "post": {
        "operationId": "fetchWebsiteUrls",
        "summary": "Fetches the first 10 urls present on the given website page",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "The URL to process."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Contains a list of 10 website urls",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input"
          }
        }
      }
    },
    "/api/v1/gpt_screenshot": {
      "post": {
        "operationId": "makeWebsiteScreenshots",
        "summary": "Creates website screenshots in multiple screen resolutions.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "The URL to process."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Contains an array of objects, each containing the resolution of the device the screenshot was simulated on and a url redirecting to the image.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input"
          }
        }
      }
    }
  }
}