{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Screenshot & HTML Archive — Bulk PNG/PDF + Meta Tags",
    "description": "Archive web pages in bulk: each URL gives a full-page PNG, JPEG or PDF screenshot, the rendered HTML and the page's title, meta, Open Graph tags and headings, with file hashes. For agencies, compliance and competitor tracking. $4 per 1,000 pages, usage included.",
    "version": "0.1",
    "x-build-id": "GscZxlRKTCbgTDVi8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/peerless_columbine~website-screenshot-html-capture/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-peerless_columbine-website-screenshot-html-capture",
        "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/peerless_columbine~website-screenshot-html-capture/runs": {
      "post": {
        "operationId": "runs-sync-peerless_columbine-website-screenshot-html-capture",
        "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/peerless_columbine~website-screenshot-html-capture/run-sync": {
      "post": {
        "operationId": "run-sync-peerless_columbine-website-screenshot-html-capture",
        "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": [
          "startUrls"
        ],
        "properties": {
          "startUrls": {
            "title": "URLs to capture",
            "minItems": 1,
            "maxItems": 1000000,
            "type": "array",
            "description": "Pages to capture, as a list of objects with only a `url` key. Example: `[{\"url\": \"https://www.example.com/\"}, {\"url\": \"https://www.example.com/pricing\"}]`. Public HTTP(S) URLs on ports 80/443 only (no localhost, private IPs or credentials). Each entry is one capture; duplicate URLs are captured separately. Up to 1,000,000 entries; only the first maxItems are processed.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL",
                  "description": "Public HTTP(S) page URL without credentials.",
                  "minLength": 1,
                  "maxLength": 8192
                }
              },
              "required": [
                "url"
              ],
              "additionalProperties": false
            },
            "default": [
              {
                "url": "https://apify.com/"
              }
            ]
          },
          "maxItems": {
            "title": "Maximum URL occurrences",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum number of startUrls entries to capture in this run (counted in input order, duplicates included). The optional mobile capture does not count as an extra item. Allowed range: 1–1,000,000.",
            "default": 10
          },
          "viewport": {
            "title": "Desktop viewport",
            "required": [
              "width",
              "height"
            ],
            "type": "object",
            "description": "Desktop browser window size in CSS pixels, as an object `{\"width\": …, \"height\": …}`. Example: `{\"width\": 1440, \"height\": 900}`. Each dimension 64–4096. With fullPage on, height is only the initial window height; the screenshot extends to the full page.",
            "properties": {
              "width": {
                "title": "Width",
                "type": "integer",
                "description": "CSS-pixel width.",
                "minimum": 64,
                "maximum": 4096
              },
              "height": {
                "title": "Height",
                "type": "integer",
                "description": "CSS-pixel height.",
                "minimum": 64,
                "maximum": 4096
              }
            },
            "default": {
              "width": 1920,
              "height": 1080
            },
            "additionalProperties": false
          },
          "fullPage": {
            "title": "Full page",
            "type": "boolean",
            "description": "On = capture the whole scrollable page (lazy content is scrolled into view; very long pages are cut at 16,000 px height and marked partial). Off = capture only the visible viewport (PDF: first printed page only).",
            "default": true
          },
          "format": {
            "title": "Desktop output format",
            "enum": [
              "png",
              "jpeg",
              "pdf"
            ],
            "type": "string",
            "description": "Desktop capture file format. Accepted values: `png` (lossless image), `jpeg` (smaller image, quality 85), `pdf` (printed document). The optional mobile capture is always PNG when PDF is chosen; check mobileScreenshotFormat.",
            "default": "png"
          },
          "captureMobile": {
            "title": "Additional mobile capture",
            "type": "boolean",
            "description": "Also capture a separate mobile version of each page (iPhone user agent, 390×844 viewport at 3× scale), returned in the mobileScreenshot* fields. Charged as an additional mobile-screenshot event per page and roughly doubles run time.",
            "default": false
          },
          "captureHtml": {
            "title": "Rendered HTML snapshot",
            "type": "boolean",
            "description": "Also save the rendered page HTML (DOM after JavaScript) to the key-value store, linked in htmlSnapshotUrl. HTML larger than 2 MB is truncated and marked with diagnostic html-byte-limit.",
            "default": true
          },
          "waitForSelector": {
            "title": "Wait for selector",
            "maxLength": 2048,
            "type": "string",
            "description": "Optional CSS selector to wait for before capturing, e.g. `#main-content` or `.product-grid`. Empty = no selector wait. If it does not appear in time but the page has visible content, the capture is still saved and marked partial.",
            "default": ""
          },
          "waitMs": {
            "title": "Additional wait",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "Extra time in milliseconds to wait after the page has loaded (and after waitForSelector) before capturing, e.g. for animations or late-loading content. Allowed range: 0–60,000.",
            "default": 2000
          },
          "navigationTimeoutSecs": {
            "title": "Navigation timeout",
            "minimum": 5,
            "maximum": 180,
            "type": "integer",
            "description": "Maximum seconds to wait for each page (and separately for its mobile capture) to load. On timeout, a visible page is still captured and marked partial. Allowed range: 5–180.",
            "default": 45
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}