Lotin.uz Translation API Documentation

Postman collection → OpenAPI spec →

Introduction

API for translating Cyrillic ↔ Latin text

Authenticating requests

To authenticate requests, include an Authorization header with the value "Bearer YOUR_API_TOKEN".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

Endpoints

Translate text between Cyrillic and Latin

POST
https://api.lotin.uz
/api/translate
requires authentication

Matnni Kirill ↔ Lotin yozuviga o'giradi.

Headers

Authorization
Example:
Bearer YOUR_API_TOKEN
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.lotin.uz/api/translate" \
    --header "Authorization: Bearer YOUR_API_TOKEN" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"mod\": \"cyrtolat\",
    \"text\": \"Кирилл матн\",
    \"ignoreHtml\": false
}"
Example response:
{
    "message": "success",
    "mod": "cyrtolat",
    "text": "Кирилл матн",
    "result": "Kirill matn"
}
{
    "message": "Error when processing",
    "errors": {
        "mod": [
            "The selected mod is invalid."
        ]
    }
}