Single endpoint, instant results

Extract Emails API - Find Email Addresses in Text

Instantly extract all valid email addresses from any text. Handles multiple emails, complex formats, and Unicode domains. Returns clean JSON array. Free: 1,000 requests/day.

POST https://textforge.co/v1/run
{
  "input": "Contact us at support@example.com or sales@company.org",
  "pipeline": [
    "extractemails"
  ]
}

Response:

{
  "success": true,
  "input": "Contact us at support@example.com or sales@company.org",
  "pipeline": [
    "extractemails"
  ],
  "result": "[\"support@example.com\", \"sales@company.org\"]",
  "steps": [
    {
      "step": 1,
      "action": "extractemails",
      "result": "[\"support@example.com\", \"sales@company.org\"]",
      "execution_time_ms": 1
    }
  ],
  "execution_time_ms": 4
}

Quick Start

cURL
curl -X POST https://textforge.co/v1/run   -H "Content-Type: application/json"   -d '{"input":"Contact us at support@example.com or sales@company.org","pipeline":["extractemails"]}'
Node.js
fetch("https://textforge.co/v1/run", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ 
    input: "Contact us at support@example.com or sales@company.org", 
    pipeline: ["extractemails"] 
  })
}).then(r => r.json()).then(console.log);
Python
import requests

payload = {
    "input": "Contact us at support@example.com or sales@company.org",
    "pipeline": ["extractemails"]
}
response = requests.post("https://textforge.co/v1/run", json=payload)
print(response.json())
PHP
<?php
$payload = json_encode([
    "input" => "Contact us at support@example.com or sales@company.org",
    "pipeline" => ["extractemails"]
]);
$ch = curl_init("https://textforge.co/v1/run");
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Content-Type: application/json"]);
$response = curl_exec($ch);
echo $response;
?>

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

All 28 Transforms