{
  "openapi": "3.0.1",
  "info": {
    "title": "Multi-Resolution Screenshot Tool — Mobile to Desktop",
    "description": "Capture mobile, tablet, desktop, and custom viewport screenshots of webpages with selectors, waiting controls, KVS files, and dataset metadata.",
    "version": "1.0",
    "x-build-id": "zh0fkWmJ1WKKEyfv7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/junipr~multi-resolution-screenshot/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-junipr-multi-resolution-screenshot",
        "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/junipr~multi-resolution-screenshot/runs": {
      "post": {
        "operationId": "runs-sync-junipr-multi-resolution-screenshot",
        "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/junipr~multi-resolution-screenshot/run-sync": {
      "post": {
        "operationId": "run-sync-junipr-multi-resolution-screenshot",
        "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",
        "properties": {
          "urls": {
            "title": "URLs to Screenshot",
            "type": "array",
            "description": "URLs to capture. Each entry: { \"url\": \"https://...\", \"label\": \"optional-name\" }. Label is used in file naming.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL",
                  "description": "URL to screenshot"
                },
                "label": {
                  "type": "string",
                  "title": "Label",
                  "description": "Optional label for file naming"
                }
              }
            },
            "default": [
              {
                "url": "https://crawlee.dev",
                "label": "crawlee"
              }
            ]
          },
          "presets": {
            "title": "Device Presets",
            "type": "array",
            "description": "Named viewport presets: mobile (375x812), tablet (768x1024), desktop (1280x800), desktopHd (1920x1080), 4k (3840x2160), ultrawide (2560x1080).",
            "items": {
              "type": "string"
            },
            "default": [
              "desktop"
            ]
          },
          "fullPage": {
            "title": "Full Page Capture",
            "type": "boolean",
            "description": "Capture the full scrollable page, not just the viewport.",
            "default": false
          },
          "format": {
            "title": "Image Format",
            "enum": [
              "png",
              "jpeg",
              "webp"
            ],
            "type": "string",
            "description": "Output format for screenshots.",
            "default": "png"
          },
          "quality": {
            "title": "Image Quality",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "JPEG/WebP quality (1-100). Ignored for PNG.",
            "default": 80
          },
          "omitBackground": {
            "title": "Transparent Background",
            "type": "boolean",
            "description": "Make background transparent (PNG/WebP only).",
            "default": false
          },
          "clipSelector": {
            "title": "Clip to Element",
            "type": "string",
            "description": "CSS selector — screenshot only this element's bounding box.",
            "default": ""
          },
          "hideSelectors": {
            "title": "Hide Elements",
            "type": "array",
            "description": "CSS selectors for elements to hide before capture (e.g., cookie banners, modals).",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "clickSelectors": {
            "title": "Click Elements Before Capture",
            "type": "array",
            "description": "CSS selectors to click before screenshot (e.g., dismiss popups). Executed in order.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "waitForSelector": {
            "title": "Wait for Selector",
            "type": "string",
            "description": "Wait for this CSS selector to appear before capturing.",
            "default": ""
          },
          "waitForTimeout": {
            "title": "Wait Timeout (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Wait N ms after page load before capturing.",
            "default": 1000
          },
          "waitForNetworkIdle": {
            "title": "Wait for Network Idle",
            "type": "boolean",
            "description": "Wait until no network requests for 500ms.",
            "default": true
          },
          "scrollToBottom": {
            "title": "Scroll to Bottom",
            "type": "boolean",
            "description": "Scroll page to bottom before capture to trigger lazy-loaded images.",
            "default": false
          },
          "dismissCookieBanners": {
            "title": "Dismiss Cookie Banners",
            "type": "boolean",
            "description": "Auto-detect and dismiss cookie consent banners.",
            "default": true
          },
          "javascript": {
            "title": "Custom JavaScript",
            "type": "string",
            "description": "JavaScript to execute before capture. Max 10,000 chars.",
            "default": ""
          },
          "fileNamePattern": {
            "title": "File Name Pattern",
            "type": "string",
            "description": "KV store key pattern. Tokens: {url}, {domain}, {label}, {preset}, {width}, {height}, {scale}, {format}, {timestamp}.",
            "default": "{label}_{preset}_{width}x{height}"
          },
          "maxConcurrency": {
            "title": "Max Concurrency",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "Maximum concurrent browser pages.",
            "default": 1
          },
          "maxRetries": {
            "title": "Max Retries",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Retry failed screenshots up to N times.",
            "default": 1
          },
          "requestTimeout": {
            "title": "Page Load Timeout (ms)",
            "minimum": 5000,
            "maximum": 45000,
            "type": "integer",
            "description": "Timeout per page load in milliseconds.",
            "default": 30000
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings. Defaults to Apify datacenter proxies.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}