Skip to main content
API & Integrations

Automate Text Processing at Scale

Use the CleanTextLab API to clean, format, and transform text in your automation workflows. Works with all major platforms and any language that can make HTTP requests.

Works With Your Favorite Platforms

Use HTTP Request nodes to call the CleanTextLab API from any automation tool

Developer Examples

Call the API directly from any language. Here are examples to get you started:

cURLCommand line HTTP requests
curl -X POST https://cleantextlab.com/api/v1/run \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{"input": "hello world", "steps": ["upper-case"]}'
PythonRequests library example
import requests

response = requests.post(
    "https://cleantextlab.com/api/v1/run",
    headers={"x-api-key": "YOUR_API_KEY"},
    json={"input": "hello world", "steps": ["upper-case"]}
)
print(response.json()["result"])
Node.jsFetch API example
const response = await fetch("https://cleantextlab.com/api/v1/run", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "x-api-key": "YOUR_API_KEY"
  },
  body: JSON.stringify({
    input: "hello world",
    steps: ["upper-case"]
  })
});
const { result } = await response.json();

Available Processing Steps

Chain any of these tools together in a single API call. Click to try the tool or copy the slug:

See full list of available tools →

Ready to Automate?

Get your API key and start processing text at scale. Pro plan includes 10,000 API calls/month.