{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Screenshot & Site Audit / Launch Checklist",
    "description": "Website screenshot (full page, mobile, tablet) plus site audit / launch checklist: broken links, console errors, SEO tags, SSL and domain expiry, and a fix prompt to paste into Cursor or Lovable. Every check can be turned off for screenshot-only runs. Failed pages are never charged.",
    "version": "0.1",
    "x-build-id": "pH1IyTHWzB7Mc6bK5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ondutylabs~website-launch-audit/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ondutylabs-website-launch-audit",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/ondutylabs~website-launch-audit/runs": {
      "post": {
        "operationId": "runs-sync-ondutylabs-website-launch-audit",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/ondutylabs~website-launch-audit/run-sync": {
      "post": {
        "operationId": "run-sync-ondutylabs-website-launch-audit",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "urls"
        ],
        "properties": {
          "urls": {
            "title": "URLs",
            "type": "array",
            "description": "Pages to capture. One browser handles all of them. Plain URLs; 'https://' is added if missing. Login pages are not supported.",
            "default": [
              "https://example.com"
            ],
            "items": {
              "type": "string"
            }
          },
          "devices": {
            "title": "Devices",
            "type": "array",
            "description": "One screenshot is taken per device. desktop = 1440x900, mobile = 390x844 (touch, mobile user agent), tablet = 820x1180.",
            "items": {
              "type": "string",
              "enum": [
                "desktop",
                "mobile",
                "tablet"
              ],
              "enumTitles": [
                "Desktop 1440x900",
                "Mobile 390x844",
                "Tablet 820x1180"
              ]
            },
            "default": [
              "desktop"
            ]
          },
          "fullPage": {
            "title": "Full page",
            "type": "boolean",
            "description": "Capture the whole scrollable page instead of only the first screen.",
            "default": false
          },
          "selector": {
            "title": "CSS selector (region)",
            "type": "string",
            "description": "Capture only the first element matching this CSS selector, e.g. '#pricing' or 'header'. Leave empty to capture the page. If nothing matches, the capture fails and is not charged."
          },
          "maxHeight": {
            "title": "Max image height (px)",
            "minimum": 0,
            "maximum": 30000,
            "type": "integer",
            "description": "Cut very long pages/regions at this height. 0 = no limit (an internal cap of 30000 px still applies). Maximum 30000. Truncated images are flagged with 'truncated: true'. Billing: every started 5,000 px of image height counts as one screenshot (12,000 px = 3 screenshots; minimum 1).",
            "default": 0
          },
          "imageFormat": {
            "title": "Image format",
            "enum": [
              "png",
              "jpeg",
              "webp"
            ],
            "type": "string",
            "description": "File format of the screenshot.",
            "default": "png"
          },
          "quality": {
            "title": "Quality (JPEG/WebP)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Compression quality 1-100. Ignored for PNG.",
            "default": 80
          },
          "deviceScaleFactor": {
            "title": "Pixel density",
            "minimum": 1,
            "maximum": 2,
            "type": "integer",
            "description": "1 = normal, 2 = retina (twice as many pixels, larger files).",
            "default": 1
          },
          "waitUntil": {
            "title": "Wait until",
            "enum": [
              "load",
              "networkidle"
            ],
            "type": "string",
            "description": "'load' waits for the page load event. 'networkidle' also waits (max 15 s) until network traffic settles, which is better for single-page apps but slower.",
            "default": "load"
          },
          "extraDelaySecs": {
            "title": "Extra delay (seconds)",
            "minimum": 0,
            "maximum": 30,
            "type": "number",
            "description": "Additional wait after loading and scrolling, before the screenshot. Useful for animations.",
            "default": 0
          },
          "scrollToLoadLazyImages": {
            "title": "Scroll to load lazy images",
            "type": "boolean",
            "description": "Scrolls through the page once so lazy-loaded images appear, then returns to the top before capturing.",
            "default": true
          },
          "flattenFixedElements": {
            "title": "Show sticky/fixed elements once",
            "type": "boolean",
            "description": "For full-page and region captures: fixed and sticky elements (menus, chat widgets) are pinned at their top-of-page position so they appear once instead of repeating or covering content.",
            "default": true
          },
          "hideCookieBanners": {
            "title": "Hide cookie banners",
            "type": "boolean",
            "description": "Hides common cookie/consent banners with CSS. The Actor never clicks consent buttons.",
            "default": true
          },
          "timeoutSecs": {
            "title": "Page timeout (seconds)",
            "minimum": 10,
            "maximum": 180,
            "type": "integer",
            "description": "Maximum time to load one page. Timed-out pages are not charged.",
            "default": 45
          },
          "requestIntervalSecs": {
            "title": "Interval per host (seconds)",
            "minimum": 1,
            "maximum": 60,
            "type": "number",
            "description": "Minimum pause between two page loads on the same host. Values below 1 are raised to 1.",
            "default": 1
          },
          "engine": {
            "title": "Capture engine",
            "enum": [
              "playwright"
            ],
            "type": "string",
            "description": "Browser engine used for capturing. Currently only 'playwright' (Chromium inside the Actor).",
            "default": "playwright"
          },
          "checkConsoleErrors": {
            "title": "Check console errors",
            "type": "boolean",
            "description": "Reports JavaScript errors shown in the browser console while the page loads. Turn every check off to run screenshot-only.",
            "default": true
          },
          "checkFailedRequests": {
            "title": "Check failed requests",
            "type": "boolean",
            "description": "Reports images, scripts and other files that fail to load (404, 500, blocked).",
            "default": true
          },
          "checkLinks": {
            "title": "Check links on the page",
            "type": "boolean",
            "description": "Checks the status of links found on the page (broken, dead end, ok). Requests to one host are at least 1 second apart.",
            "default": true
          },
          "maxLinksPerPage": {
            "title": "Max links per page",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many links of each page to check (the first ones in page order). More links means a slower run, because requests to the same host wait 1 second each.",
            "default": 20
          },
          "checkMobileOverflow": {
            "title": "Check mobile horizontal overflow",
            "type": "boolean",
            "description": "Detects pages that are wider than a phone screen (390 px). Uses the mobile device; if 'mobile' is not selected, an extra mobile load without screenshot is made.",
            "default": true
          },
          "checkSeo": {
            "title": "Check SEO basics",
            "type": "boolean",
            "description": "Title, description, h1, canonical, og tags (including og:image), viewport, lang and robots meta.",
            "default": true
          },
          "checkImageAlt": {
            "title": "Check image alt text",
            "type": "boolean",
            "description": "Counts images that have no alt attribute.",
            "default": true
          },
          "checkSiteFiles": {
            "title": "Check robots.txt, sitemap.xml, llms.txt",
            "type": "boolean",
            "description": "Checks whether these files exist at the site root.",
            "default": true
          },
          "checkSsl": {
            "title": "Check SSL certificate expiry",
            "type": "boolean",
            "description": "Reads the HTTPS certificate expiry date. Certificate verification is never disabled; on a trust error the check retries once with the current certifi CA bundle.",
            "default": true
          },
          "checkDomainExpiry": {
            "title": "Check domain expiry",
            "type": "boolean",
            "description": "Looks up the domain expiry date through public RDAP servers.",
            "default": true
          },
          "checkSpeed": {
            "title": "Check speed (PageSpeed Insights)",
            "type": "boolean",
            "description": "Runs a Google PageSpeed Insights mobile test. Slow (up to a minute per page), so it is off by default.",
            "default": false
          },
          "googleApiKey": {
            "title": "Google API key (optional)",
            "type": "string",
            "description": "Optional PageSpeed Insights API key for a higher quota. Only used when 'Check speed' is on."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}