How to Automate Metadata Removal with n8n & MetaScrub API
Build automated workflows that strip EXIF, GPS, author info and hidden metadata from files — no code required, using n8n and the MetaScrub REST API
What Is n8n?
n8n is a free, open-source workflow automation platform — a self-hostable alternative to Zapier and Make (Integromat). It lets you connect hundreds of apps and services visually by linking nodes in a workflow editor. You can run n8n on your own server for complete privacy, or use n8n Cloud for a managed experience.
By connecting n8n with the MetaScrub API, you can automatically remove metadata from files as part of any workflow — for example, cleaning every photo uploaded to a Google Drive folder, stripping metadata from email attachments, or sanitizing documents before publishing.
Self-Hosted
Full control over your data
400+ Integrations
Connect to any service
Open Source
Free to use and modify
Why Automate Metadata Removal?
Manually cleaning metadata from every file is tedious and easy to forget. Automation ensures that every file passing through your workflow is stripped of sensitive data — GPS coordinates, author names, camera serial numbers, software versions, and more — before it reaches its destination.
- For businesses — automatically sanitize documents, images and reports before sending to clients or publishing online. Protect employee names, internal tool versions and geolocation data.
- For e-commerce — clean product photos before uploading to marketplaces. Remove camera info and GPS coordinates from every listing image automatically.
- For content creators — strip metadata from media files in your publishing pipeline. Protect source identity and location data in every photo, video and document.
- For compliance — automate GDPR and privacy compliance by removing personal data from files before storage or sharing.
What You Need
MetaScrub Premium Subscription
API access requires a Premium plan ($2/month). Subscribe here
MetaScrub API Key
Generate your key in Account Settings
n8n Instance
Self-hosted (free) or n8n Cloud. Install locally with npx n8n or docker run -it --rm -p 5678:5678 n8nio/n8n
Step-by-Step: Build a Metadata Removal Workflow in n8n
1 Choose a Trigger
Every n8n workflow starts with a trigger. Choose the one that fits your use case:
Webhook
Receive files from external apps or forms via HTTP POST
Google Drive
Trigger when a new file is uploaded to a specific folder
Dropbox / S3
Watch a cloud storage folder for new files
Schedule
Run the workflow every hour, day, or week
2 Add the HTTP Request Node
This is the core of the integration. Add an HTTP Request node and configure it to call the MetaScrub API:
Method: POST
URL: https://metascrub.xyz/api/v1/remove-metadata
Headers:
X-API-Key: ms_your_api_key_here
Body Type: Form-Data / Multipart
Body Parameters:
Name: file
Type: File (Binary)
Value: {{ $binary.data }}
Response Format: File (Binary)
3 Save or Forward the Cleaned File
After MetaScrub returns the metadata-free file, you can route it anywhere:
- Write Binary File — save to your local disk or server
- Google Drive — upload back to a "cleaned" folder
- AWS S3 — store in a secure bucket
- Email / Slack — send the cleaned file as an attachment
- WordPress / CMS — upload clean media to your website
Example Workflows
Auto-Clean Photos from Google Drive
Automatically strip EXIF and GPS data from every new photo uploaded to a Google Drive folder.
Clean Email Attachments
Strip metadata from incoming email attachments before forwarding them to the team.
E-Commerce Product Image Pipeline
Clean product photos before uploading them to your Shopify, WooCommerce, or marketplace listing.
Batch Document Sanitizer
Schedule a daily job to clean metadata from all PDFs and Office documents in a folder.
Ready-to-Import n8n Workflow
Copy the JSON below and import it into n8n via Workflow → Import from JSON. This creates a simple webhook-triggered metadata removal workflow.
{
"name": "MetaScrub Metadata Remover",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "clean-metadata",
"options": {
"rawBody": true
}
},
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [250, 300]
},
{
"parameters": {
"method": "POST",
"url": "https://metascrub.xyz/api/v1/remove-metadata",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "X-API-Key",
"value": "ms_your_api_key_here"
}
]
},
"sendBody": true,
"contentType": "multipart-form-data",
"bodyParameters": {
"parameters": [
{
"parameterType": "formBinaryData",
"name": "file",
"inputDataFieldName": "data"
}
]
},
"options": {
"response": {
"response": {
"responseFormat": "file"
}
}
}
},
"name": "MetaScrub API",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4,
"position": [500, 300]
},
{
"parameters": {
"respondWith": "binary"
},
"name": "Respond to Webhook",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1,
"position": [750, 300]
}
],
"connections": {
"Webhook": {
"main": [
[{"node": "MetaScrub API", "type": "main", "index": 0}]
]
},
"MetaScrub API": {
"main": [
[{"node": "Respond to Webhook", "type": "main", "index": 0}]
]
}
}
}
ms_your_api_key_here with your actual API key from Account Settings.
MetaScrub API Quick Reference
POST https://metascrub.xyz/api/v1/remove-metadata
X-API-Key: ms_...
file field
For full API documentation with code examples in Python, JavaScript, cURL and PowerShell, see the API Documentation page.
Frequently Asked Questions
What is n8n and how does it work with MetaScrub?
n8n is a free, open-source workflow automation tool similar to Zapier. It connects to MetaScrub via our REST API using the HTTP Request node. You can build visual workflows that automatically send files to MetaScrub for metadata removal and then route the cleaned files wherever you need them.
Do I need a Premium subscription to use MetaScrub API with n8n?
Yes, API access requires a MetaScrub Premium subscription at $2/month. After subscribing, generate your API key from the Account Settings page and use it in the HTTP Request node header.
Can I process multiple files automatically with n8n?
Yes. Use n8n's built-in SplitInBatches node or loop functionality to process multiple files sequentially. The MetaScrub API supports up to 100 requests per hour, so you can clean batches of files in automated workflows.
What file types can I clean through the API?
The API supports all formats available on the website: images (JPG, PNG, WebP, TIFF, GIF, BMP), documents (PDF, DOCX, XLSX, PPTX), audio (MP3, FLAC, OGG, WAV), and video (MP4, MOV, AVI, MKV). Every file type works identically through the n8n HTTP Request node.
Can I use this with Make (Integromat) or Zapier instead of n8n?
Yes. The MetaScrub API is a standard REST endpoint, so it works with any automation platform that supports HTTP requests. In Make, use the HTTP module; in Zapier, use the Webhooks by Zapier action. The configuration is similar to the n8n setup described above.
Is my data safe when using the API through n8n?
Yes. All API requests use HTTPS encryption. MetaScrub does not store your files — they are processed in memory and the cleaned result is returned immediately. Files are never saved on our servers. If you self-host n8n, your files never leave your infrastructure until the API call.
Ready to Automate?
Get started with MetaScrub API and n8n in minutes. Subscribe, generate your API key, and build your first workflow.