Single endpoint, instant results
Remove Multiple API
Collapse repeated characters. Perfect for cleaning user input and normalizing data. Free: 1,000 requests/day.
POST https://textforge.co/v1/run
{
"input": "Hello World!",
"pipeline": [
"removemultiple"
]
}Response:
{
"success": true,
"input": "Hello World!",
"pipeline": [
"removemultiple"
],
"result": "hello-world",
"steps": [
{
"step": 1,
"action": "removemultiple",
"result": "hello-world",
"execution_time_ms": 1
}
],
"execution_time_ms": 4
}Quick Start
cURL
curl -X POST https://textforge.co/api/v1/transform -H "Content-Type: application/json" -d '{"text":"hello world","action":"removemultiple"}'Node.js
const response = await fetch("https://textforge.co/api/v1/transform", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ text: "hello world", action: "removemultiple" })
});
const data = await response.json();
console.log(data.result);Python
import requests
response = requests.post(
"https://textforge.co/api/v1/transform",
json={"text": "hello world", "action": "removemultiple"}
)
print(response.json()["result"])PHP
$ch = curl_init("https://textforge.co/api/v1/transform");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
"text" => "hello world",
"action" => "removemultiple"
]));
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Content-Type: application/json"]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
$data = json_decode($response, true);
echo $data["result"];Why use the API?
⚡
Sub-5ms latency
p95 response time, no cold starts
🔗
Composable pipelines
Chain transforms in one request
🛡️
Fair free tier
1,000 requests/day, no credit card
🌐
Works everywhere
curl, Python, JS, PHP - no SDK needed
📊
Built-in analytics
Usage tracking, rate limit headers
🔒
HTTPS only
CORS enabled, production ready