{
  "openapi": "3.0.1",
  "info": {
    "title": "Screenshot & PDF Renderer: Full Page, Mobile & Dark Mode",
    "description": "Capture URLs as PNG, JPEG, WebP or PDF with Chromium. Choose full-page or element captures, desktop/mobile/tablet sizes, dark mode, ad blocking and cookie-banner hiding. Export stored files and structured results; failed captures are not charged.",
    "version": "0.1",
    "x-build-id": "4k5GJ9RxCKodXAtaJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/everyotherfriday~screenshot-renderer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-everyotherfriday-screenshot-renderer",
        "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/everyotherfriday~screenshot-renderer/runs": {
      "post": {
        "operationId": "runs-sync-everyotherfriday-screenshot-renderer",
        "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/everyotherfriday~screenshot-renderer/run-sync": {
      "post": {
        "operationId": "run-sync-everyotherfriday-screenshot-renderer",
        "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",
            "minItems": 1,
            "maxItems": 1000,
            "type": "array",
            "description": "HTTP(S) URLs; data URLs are also supported for local fixtures. Duplicates are processed and charged individually.",
            "items": {
              "type": "string"
            }
          },
          "format": {
            "title": "format",
            "enum": [
              "png",
              "jpeg",
              "pdf",
              "webp"
            ],
            "type": "string",
            "description": "Output file type. PNG is lossless; JPEG and WebP use the quality setting; PDF paginates the page.",
            "default": "png"
          },
          "fullPage": {
            "title": "fullPage",
            "type": "boolean",
            "description": "Full scrollable image; selector takes precedence. PDFs always use pagination.",
            "default": true
          },
          "device": {
            "title": "device",
            "enum": [
              "desktop",
              "mobile",
              "tablet"
            ],
            "type": "string",
            "description": "Desktop 1440x900 at 1x, mobile 390x844 at 3x, tablet 820x1180 at 2x. Width/height/scale override the preset.",
            "default": "desktop"
          },
          "width": {
            "title": "width",
            "minimum": 1,
            "maximum": 7680,
            "type": "integer",
            "description": "Viewport width in CSS pixels. Overrides the device preset."
          },
          "height": {
            "title": "height",
            "minimum": 1,
            "maximum": 7680,
            "type": "integer",
            "description": "Viewport height in CSS pixels. Overrides the device preset."
          },
          "deviceScaleFactor": {
            "title": "deviceScaleFactor",
            "minimum": 0.5,
            "maximum": 4,
            "type": "number",
            "description": "Pixel density multiplier (1 = standard, 2 = retina). Overrides the device preset."
          },
          "darkMode": {
            "title": "darkMode",
            "type": "boolean",
            "description": "Emulate prefers-color-scheme: dark so sites with a dark theme render it.",
            "default": false
          },
          "blockAds": {
            "title": "blockAds",
            "type": "boolean",
            "description": "Block requests to a bundled list of common ad and tracker hosts before rendering.",
            "default": false
          },
          "hideCookieBanners": {
            "title": "hideCookieBanners",
            "type": "boolean",
            "description": "Inject CSS that hides common cookie-consent banners and overlays before capture.",
            "default": false
          },
          "waitUntil": {
            "title": "waitUntil",
            "enum": [
              "load",
              "domcontentloaded",
              "networkidle"
            ],
            "type": "string",
            "description": "Navigation event to wait for before capturing. networkidle is slowest but most complete.",
            "default": "load"
          },
          "delayMs": {
            "title": "delayMs",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Extra wait in milliseconds after the page loads, for animations or lazy content.",
            "default": 0
          },
          "selector": {
            "title": "selector",
            "type": "string",
            "description": "First matching visible element; images clip to it. PDFs isolate its subtree and paginate it."
          },
          "pdfOptions": {
            "title": "pdfOptions",
            "type": "object",
            "description": "paperFormat (A4 default); landscape; printBackground (true default); margin with top/right/bottom/left as pixels or unit strings."
          },
          "quality": {
            "title": "quality",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "JPEG and WebP only; ignored for PNG/PDF.",
            "default": 80
          },
          "timeoutSecs": {
            "title": "timeoutSecs",
            "minimum": 1,
            "maximum": 180,
            "type": "number",
            "description": "Whole capture deadline, including navigation, delay, selector and rendering; cleanup may add up to 5 seconds.",
            "default": 45
          },
          "maxConcurrency": {
            "title": "maxConcurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many pages render at once in the single browser instance.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "proxyConfiguration",
            "type": "object",
            "description": "Apify Proxy configuration or custom proxyUrls. Omitted means direct connections."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}