Transliterator API

Convierta instantaneamente mas de 27 escrituras a latin - perfecto para slugs SEO, busqueda normalizada y pipelines de datos.

¿Qué puedes hacer?
Normalizacion de busqueda

Indexe y busque contenido de escrituras mixtas como uno solo.

Slugs SEO

Genere URLs multilingues limpias al instante.

Pipelines de datos

Alimente catalogos o flujos NLP con texto consistente.

Probar en vivo
99.9 % Disponibilidad
12.5ms Respuesta
20 req/s
0.009 Créditos / solicitud

Transliterator API


POST https://api.yeb.to/v1/transliterator
Parámetro Tipo Req. Descripción
api_key string Auth key
lang string opc. ISO code of input script
text string Input text (max. 255 chars)
type string opc. plain | slug | snake | camel | capital | upper | lower
delimiter string opc. Custom delimiter for slug/snake

Ejemplos de solicitudes

{
  "api_key":"YOUR_KEY",
  "lang":"bg",
  "text":"пример"
}
{
  "api_key":"YOUR_KEY",
  "lang":"ru",
  "text":"тест транслитерация",
  "type":"slug",
  "delimiter":"_"
}

Integraciones API

curl -X POST https://api.yeb.to/v1/transliterator \
  -H "Content-Type: application/json" \
  -d '{"api_key":"YOUR_KEY","lang":"bg","text":"пример","type":"slug","delimiter":"-"}'
Route::post('/transliterate', function () {
    $data = Http::post('https://api.yeb.to/v1/transliterator', [
        'api_key'   => config('services.transliterator.key'),
        'lang'      => 'bg',
        'text'      => 'пример',
        'type'      => 'slug',
        'delimiter' => '-',
    ]);
    return $data->json();
});
$r = Http::post('https://api.yeb.to/v1/transliterator', [
    'api_key'=>'YOUR_KEY','lang'=>'bg','text'=>'пример',
    'type'=>'slug','delimiter'=>'-'
]);
echo $r->json();
fetch('https://api.yeb.to/v1/transliterator', {
  method:'POST',
  headers:{'Content-Type':'application/json'},
  body:JSON.stringify({api_key:'YOUR_KEY',lang:'bg',text:'пример',type:'slug',delimiter:'-'})
}).then(r=>r.json()).then(console.log);
import requests, json
payload = {"api_key":"YOUR_KEY","lang":"bg","text":"пример","type":"slug","delimiter":"-"}
r = requests.post('https://api.yeb.to/v1/transliterator', headers={'Content-Type':'application/json'},
                  data=json.dumps(payload))
print(r.json())

Response Example

{
  "result":"primer","original":"пример","lang":"bg",
  "type":"slug","delimiter":"-","response_code":200,"response_time_ms":37
}
{
  "error":"Invalid API key","code":401,
  "response_code":401,"response_time_ms":12
}

Códigos de respuesta

CódigoDescripción
200 SuccessSolicitud procesada correctamente.
400 Bad RequestValidación de entrada fallida.
401 UnauthorizedClave API faltante o incorrecta.
403 ForbiddenClave inactiva o no permitida.
429 Rate LimitDemasiadas solicitudes.
500 Server ErrorError inesperado.

transliterate

transliterator 0.0090 credits

Parameters

API Key
query · string · required
Language
query · string
Text
query · string · required
Output type
query · string
Delimiter
query · string

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Transliterator API — Practical Guide

A hands-on guide to Transliterator API: what it does, when to use each mode, the parameters that actually matter, and how to read responses for SEO slugs, filenames, app identifiers, and more.

#What Transliterator solves

Send a text in any supported script (e.g., Cyrillic, Greek) and get a clean Latin version and/or a specific formatting: slug, snake_case, camelCase, Capital Case, UPPER, or lower. Perfect for SEO URLs, file/ID normalization, search indexing, and consistent UI labels.

#Endpoint & when to use it

#POST https://api.yeb.to/v1/transliterator

  • Best for: Turning any input into a safe, predictable string for URLs, filenames, database keys, and user-facing titles.
  • How it works: We transliterate to Latin and then apply the chosen type transform (slug/snake/camel/etc.).
  • Idempotent: Same input parameters → same output; safe to cache.

#Quick start

# Plain transliteration (auto-detect language)
curl -X POST "https://api.yeb.to/v1/transliterator" \
  -H "Content-Type: application/json" \
  -d '{ "api_key": "YOUR_KEY", "text": "пример" }'
# SEO slug with custom delimiter
curl -X POST "https://api.yeb.to/v1/transliterator" \
  -H "Content-Type: application/json" \
  -d '{ "api_key": "YOUR_KEY", "lang": "ru", "text": "тест транслитерация", "type": "slug", "delimiter": "_" }'

#Parameters that actually matter

ParamRequiredWhat to pass in practiceWhy it matters
api_key Yes Send from server/edge. Don’t expose raw keys in client JS. Auth & rate limiting.
text Yes Up to 255 chars; emojis and unsupported symbols are stripped. Primary content to process.
lang No ISO code of input script (e.g., bg, ru, el). If omitted, we auto-detect. Improves accuracy for ambiguous inputs.
type No plain | slug | snake | camel | capital | upper | lower Choose the output format you need.
delimiter No Use with slug/snake to set the separator (default - for slug, _ for snake). Brand-consistent URLs and identifiers.

#Choosing the right type

TypeUse it forNotes
plainReadable Latin outputNo case/spacing changes; punctuation trimmed.
slugSEO URLsLowercase, spaces → delimiter, trims duplicates: пример тестprimer-test.
snakeDatabase keys, filenamesLowercase + _ (or custom delimiter).
camelCode identifiersprimerTest style.
capitalUI labelsPrimer Test title case.
upperSorting / normalizationAll caps.
lowerCase-insensitive searchAll lowercase.

#Reading & acting on responses

{
  "result": "primer",
  "original": "пример",
  "lang": "bg",
  "type": "slug",
  "delimiter": "-",
  "response_code": 200,
  "response_time_ms": 37
}
  • result — the processed string; use this directly in URLs/keys/UI.
  • original — what you sent (after trimming); handy for logs and idempotency checks.
  • lang — detected or provided language; helps debug unexpected mappings.
  • type, delimiter — echo of your chosen transform; store alongside to rebuild exactly.

#Typical errors & how to fix

{ "error": "Missing \"text\" parameter", "code": 422 }
{ "error": "Unsupported type: foo", "code": 422 }
  • 422 missing/invalid: Provide text; ensure type ∈ allowed list.
  • 401 invalid key: Rotate your key; send from server/edge only.
  • 413 too long: Keep text ≤ 255 chars; pre-trim user input.

#Troubleshooting & field notes

  1. Unexpected characters: Emojis/symbols are removed; if you need them, store the original separately.
  2. Spaces & dashes: For slug/snake we collapse repeated separators (---).
  3. Custom brand separators: Use delimiter to enforce _, ., or even no delimiter.
  4. Language ambiguity: Specify lang when inputs can be mixed (e.g., Serbian Cyrillic vs. Russian).
  5. Batching: For bulk imports, keep requests ≤ 100 rps and reuse connections; cache deterministic results.

#API Changelog

2025-10-20
Added capital output type and improved auto-detection for mixed scripts. Normalized duplicate separators in slug/snake.
2025-10-12
Custom delimiter now supported for both slug and snake. Minor Cyrillic → Latin mapping refinements (BG/RU).
2025-10-01
Public v1 release with plain, slug, snake, camel, upper, lower. Max input length set to 255 chars.

Preguntas frecuentes

Admitimos transliteracion completa para mas de 25 escrituras incluidas arabe, cirilico, griego, hebreo y CJK. Necesita otro idioma? Contactenos.

Usamos estandares ISO o de facto web. La precision es tipicamente superior al 95% para vocabulario comun.

Sí. Cada solicitud, incluso las que resultan en errores, consume créditos. Tus créditos están vinculados al número de solicitudes, independientemente del éxito o fracaso. Si el error se debe claramente a un problema de la plataforma de nuestro lado, restauraremos los créditos afectados (sin reembolsos en efectivo).

Contáctanos en [email protected]. Tomamos los comentarios en serio—si tu reporte de error o solicitud de función es significativo, podemos corregir o mejorar la API rápidamente y otorgarte 50 créditos gratuitos como agradecimiento.

Depende de la API y a veces incluso del endpoint. Algunos endpoints usan datos de fuentes externas, que pueden tener límites más estrictos. También imponemos límites para prevenir abusos y mantener nuestra plataforma estable. Consulta la documentación para el límite específico de cada endpoint.

Operamos con un sistema de créditos. Los créditos son unidades prepagadas y no reembolsables que gastas en llamadas API y herramientas. Los créditos se consumen FIFO (los más antiguos primero) y son válidos por 12 meses desde la fecha de compra. El panel muestra cada fecha de compra y su vencimiento.

Sí. Todos los créditos comprados (incluidos saldos fraccionarios) son válidos por 12 meses desde la compra. Los créditos no utilizados expiran automáticamente y se eliminan permanentemente al final del período de validez. Los créditos expirados no pueden restaurarse ni convertirse en efectivo u otro valor. Regla transitoria: los créditos comprados antes del 22 de sep. de 2025 se tratan como comprados el 22 de sep. de 2025 y expiran el 22 de sep. de 2026 (a menos que se indicara un vencimiento anterior en la compra).

Sí—dentro de su período de validez. Los créditos no utilizados permanecen disponibles y se transfieren de mes a mes hasta que expiran 12 meses después de la compra.

Los créditos son no reembolsables. Compra solo lo que necesites—siempre puedes recargar después. Si un error de la plataforma causa un cargo fallido, podemos restaurar los créditos afectados tras investigación. Sin reembolsos en efectivo.

Los precios se establecen en créditos, no en dólares. Cada endpoint tiene su propio costo—consulta la insignia "Créditos / solicitud" arriba. Siempre sabrás exactamente cuánto gastas.
← Volver a las APIs