{
  "name": "Capture website screenshots",
  "nodes": [
    {
      "parameters": {},
      "id": "trigger",
      "name": "When clicking Execute",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "jsCode": "// One item per URL. Swap this for a spreadsheet, a database or a webhook.\nreturn [\n  { json: { url: 'https://www.customjs.space' } },\n  { json: { url: 'https://www.customjs.space/pricing' } },\n];"
      },
      "id": "urls-to-capture",
      "name": "URLs to capture",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        220,
        0
      ]
    },
    {
      "parameters": {
        "resource": "web",
        "operation": "screenshot",
        "url": "={{ $json.url }}",
        "outputFilenamePng": "=shot-{{ $itemIndex }}.png"
      },
      "id": "capture-screenshot",
      "name": "Capture screenshot",
      "type": "@custom-js/n8n-nodes-pdf-toolkit-v2.pdfToolkit",
      "typeVersion": 1,
      "position": [
        440,
        0
      ],
      "credentials": {
        "customJsApi": {
          "id": "1",
          "name": "CustomJS account"
        }
      }
    }
  ],
  "connections": {
    "When clicking Execute": {
      "main": [
        [
          {
            "node": "URLs to capture",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "URLs to capture": {
      "main": [
        [
          {
            "node": "Capture screenshot",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {}
}
