Skip to main content
Cookie preferences

We use analytics cookies to understand usage and improve CleanTextLab. You can accept or decline Privacy policy. Manage preferences.

n8n Integration

Supercharge your n8n workflows

Stop writing custom JavaScript functions just to clean data. Use the CleanTextLab API node to standardise inputs, format JSON, and sanitise lists instantly.

n8n
CleanTextLab API
HTTP Request
Method
POST
URL
https://cleantextlab.com/api/v1/run
Body Parameters
={{ { "input": $json.text, "steps": ["trim-lines", "title-case-converter"] } }}

CORS only applies to browser apps. n8n runs server-side, so no CORS configuration is required.

Ready-to-Use Workflow Templates

Download and import directly into n8n. Just add your API key!

Clean Email List

Trim whitespace, lowercase, and deduplicate emails

trim-lineslower-casededupe-sort

Format JSON

Pretty-print minified JSON responses

json-formatter

Dedupe & Sort List

Remove duplicates and sort alphabetically

dedupe-sort

Multi-Step Cleaning

Trim, collapse spaces, and title-case text

trim-linescollapse-spacestitle-case-converter

Why use CleanTextLab in n8n?

No Code Required

Forget the 'Function' node. Just pick the transformation you need from our list.

Chainable Actions

Run multiple cleaning steps (e.g., Trim -> Uppercase -> Dedupe) in a single API call.

High Reliability

Built for scale. We handle the edge cases, regex complexities, and encoding issues.

Quick Setup (3 Steps)

1

Get your API Key

Go to Settings and generate an API key (Pro plan required).

2

Import Workflow Template

Download any template above, then in n8n go to Menu → Import from File.

3

Add API Key Credential

In n8n, go to Credentials+ Add Credential → Search for "Header Auth". Set:
• Name: CleanTextLab API Key
• Header Name: x-api-key
• Header Value: Your API key from Settings

Clean Text with n8n HTTP Request Node | CleanTextLab