AutomationFlowsWeb Scraping › Automatically Upload Scanned Documents to Nextcloud via Scanservjs

Automatically Upload Scanned Documents to Nextcloud via Scanservjs

ByJoachim Hummel @jhummel on n8n.io

This workflow connects a USB scanner to Nextcloud via ScanservJS and the integrated API. It checks for new scans at a scheduled time (e.g., every 5 minutes). If there are any, they are automatically retrieved via HTTP request and then saved to a desired Nextcloud folder.

Cron / scheduled trigger★★☆☆☆ complexity5 nodesHTTP RequestNext Cloud
Web Scraping Trigger: Cron / scheduled Nodes: 5 Complexity: ★★☆☆☆ Added:

This workflow corresponds to n8n.io template #3861 — we link there as the canonical source.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "EJHT9UmGXNOyynV0",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Scans von PDF zu Nextcloud",
  "tags": [],
  "nodes": [
    {
      "id": "574d02f2-54c9-4f24-9c8b-4618ccdf2c7c",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -80,
        -80
      ],
      "parameters": {
        "url": "http://0.0.0.0:8080/api/v1/files",
        "options": {},
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "accept",
              "value": "application/json"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "7a1b5ef3-750f-45c5-b60e-34d463978abf",
      "name": "Nextcloud",
      "type": "n8n-nodes-base.nextCloud",
      "position": [
        340,
        -80
      ],
      "parameters": {
        "path": "=/Scans/{{ $json.name }}",
        "binaryDataUpload": true
      },
      "credentials": {
        "nextCloudApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "93a27a7e-d709-4ceb-b062-4136fcaa7c0a",
      "name": "HTTP Request1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        140,
        -80
      ],
      "parameters": {
        "url": "=http://192.168.1.100:8080/api/v1/files/{{ $json.name }}",
        "options": {},
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "accept",
              "value": "*/*"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "77388051-b1b3-4a75-8190-628cb10c6734",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -280,
        -80
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours"
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "c49a991e-0faf-4326-9238-d3cf4a661ea5",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -340,
        -220
      ],
      "parameters": {
        "width": 900,
        "height": 380,
        "content": "## Copy Scanner Documents to Nextcloud\n** Needed USB-Scanner and Program ScanServJS with an API"
      },
      "typeVersion": 1
    }
  ],
  "active": true,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "1c982aa5-fffb-469b-8b2c-8f5b974f9f44",
  "connections": {
    "HTTP Request": {
      "main": [
        [
          {
            "node": "HTTP Request1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request1": {
      "main": [
        [
          {
            "node": "Nextcloud",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This workflow connects a USB scanner to Nextcloud via ScanservJS and the integrated API. It checks for new scans at a scheduled time (e.g., every 5 minutes). If there are any, they are automatically retrieved via HTTP request and then saved to a desired Nextcloud folder.

Source: https://n8n.io/workflows/3861/ — original creator credit. Request a take-down →

More Web Scraping workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Web Scraping

Scheduled-Api-Call. Uses httpRequest. Scheduled trigger; 5 nodes.

HTTP Request
Web Scraping

WF-8: Data Sync. Uses httpRequest. Scheduled trigger; 5 nodes.

HTTP Request
Web Scraping

Obsidian Tag Index Refresher. Uses executeCommand, httpRequest. Scheduled trigger; 5 nodes.

Execute Command, HTTP Request
Web Scraping

E-Décor - Support Client. Uses httpRequest, emailSend. Scheduled trigger; 5 nodes.

HTTP Request, Email Send
Web Scraping

77STF — Morning Digest (08:30 pon-pt). Uses httpRequest. Scheduled trigger; 5 nodes.

HTTP Request