{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Screenshot, Fixed Price per Image",
    "description": "Takes a PNG, JPEG or PDF screenshot of each web page in your list. You pay per saved screenshot. Pages that robots.txt disallows, login pages and CAPTCHA pages are skipped, listed and not charged.",
    "version": "0.1",
    "x-build-id": "bkDMjVf6ery7S5wRf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/daddyd-prints~website-screenshot-per-image/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-daddyd-prints-website-screenshot-per-image",
        "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/daddyd-prints~website-screenshot-per-image/runs": {
      "post": {
        "operationId": "runs-sync-daddyd-prints-website-screenshot-per-image",
        "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/daddyd-prints~website-screenshot-per-image/run-sync": {
      "post": {
        "operationId": "run-sync-daddyd-prints-website-screenshot-per-image",
        "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": "Web pages to capture",
            "type": "array",
            "description": "One web address per line, starting with http:// or https://. An address without one gets https:// added. Duplicates are removed. An address holding a control character or an invisible character (such as a zero-width space), or full-width or other letter forms in its host name that a browser would turn into ordinary letters, is listed in SKIPPED as invalid and not charged. Before anything is requested from a site, the Actor reads that site's robots.txt, and any page it disallows is skipped, listed in the SKIPPED record and not charged.",
            "items": {
              "type": "string"
            }
          },
          "device": {
            "title": "Device",
            "enum": [
              "desktop",
              "tablet",
              "phone"
            ],
            "type": "string",
            "description": "Screen size used for the capture. Desktop is 1280 x 800. Tablet is 768 x 1024 and phone is 390 x 844, both at 2x pixel density with touch turned on. The browser always identifies itself honestly, so a site that chooses its layout from the user agent alone may still show its desktop layout.",
            "default": "desktop"
          },
          "fullPage": {
            "title": "Full page",
            "type": "boolean",
            "description": "Capture the whole page height instead of only the visible screen. The saved image is never taller than 15000 pixels: a longer page is cut there and marked truncated. Tablet and phone save 2 image pixels for every page pixel, so on those devices the cut comes after the first 7500 pixels of page height. Not used for PDF.",
            "default": false
          },
          "format": {
            "title": "File format",
            "enum": [
              "png",
              "jpeg",
              "pdf"
            ],
            "type": "string",
            "description": "PNG gives sharp text. JPEG gives smaller files. PDF saves an A4 PDF of the page as it looks on screen.",
            "default": "png"
          },
          "jpegQuality": {
            "title": "JPEG quality",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Only used for JPEG. From 1 (smallest file) to 100 (best quality).",
            "default": 80
          },
          "waitSecs": {
            "title": "Wait after load",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Extra seconds to wait after the page has loaded and gone quiet, before the capture. Useful for pages that animate in. Longer waits make runs longer.",
            "default": 1
          },
          "scrollBeforeCapture": {
            "title": "Scroll down first",
            "type": "boolean",
            "description": "Scrolls down once before the capture and then back to the top, so images that load only when scrolled into view are shown. It scrolls only over the part that can be saved. With Full page on, the bottom of the screen goes down to where the capture is cut: 15000 pixels of page on desktop, 7500 on tablet and phone. With Full page off, it goes one extra screen height below the visible screen. For PDF it goes down to 15000 pixels of page.",
            "default": false
          },
          "hideCookieBanners": {
            "title": "Hide cookie banners",
            "type": "boolean",
            "description": "Hides common cookie and consent banners with CSS. The Actor never clicks any button on a page, including accept or consent buttons, so a banner it does not recognise stays visible.",
            "default": true
          },
          "otherSiteFiles": {
            "title": "Files from other websites",
            "enum": [
              "same-site",
              "all"
            ],
            "type": "string",
            "description": "Same site loads images, styles and scripts only from the page's own website and its subdomains, which also leaves out most ads, trackers and third party consent pop ups. All websites also loads files from other websites. Either way, every website is checked against its own robots.txt before the browser requests anything from it.",
            "default": "same-site"
          },
          "maxScreenshots": {
            "title": "Maximum screenshots",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "The most screenshots this run will take. Addresses beyond this number are listed in SKIPPED and not charged. Your spending limit for the run is also respected.",
            "default": 100
          },
          "pageTimeoutSecs": {
            "title": "Page timeout",
            "minimum": 10,
            "maximum": 120,
            "type": "integer",
            "description": "How long one page may take to load before it is skipped. A skipped page is not charged.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}