/v1/words
Truncate by words
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/truncate-api/v1/words" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/truncate-api/v1/words", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/truncate-api/v1/words");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/truncate-api/v1/words",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"truncated": "The quick brown fox jumps…",
"was_truncated": true,
"original_words": 9,
"truncated_words": 5
},
"meta": {
"timestamp": "2026-06-03T09:25:09.085Z",
"request_id": "538a81ed-ea17-4085-8a89-1031d76d25fa"
},
"status": "ok",
"message": "Truncate by words",
"success": true
}