logo SC Translator API

Documentation

This is the documentation for the SC Translator API. If you have any questions, or if you find any errors in the API or the documentation, please contact us.

Base URL: https://translator.sandarnecreations.com/api/ Authentication: You need to include your API key in the Authorization header. Note: The Accept header with the value application/json is needed.

Endpoints

POST /translate

Translate text from one language to another.
Request:
POST /translate HTTP/1.1
Endpoint: https://translator.sandarnecreations.com/api/translate
Accept: application/json
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY
{
    "text": "Hello, how are you?",
    "from": "auto",
    "to": "es"
}
            
Response:
HTTP/1.1 200 OK
Content-Type: application/json
{
    "translation": "Hola, ¿cómo estás?"
}
            
Parameters:

POST /detect-language

Detect the language of a text.
Request:
POST /detect-language HTTP/1.1
Endpoint: https://translator.sandarnecreations.com/api/detect-language
Accept: application/json
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY
{
    "text": "Hello, how are you?"
}
            
Response:
HTTP/1.1 200 OK
Content-Type: application/json
{
    "language": "en"
}
            

GET /supported-languages

Get a list of supported languages.
Request:
GET /supported-languages HTTP/1.1
Accept: application/json
Endpoint: https://translator.sandarnecreations.com/api/supported-languages
            
Response:
HTTP/1.1 200 OK
Content-Type: application/json
{
    "languages": [
        {
            "language_code": "en",
            "language_name": "English"
        },
        {
            "language_code": "es",
            "language_name": "Spanish"
        } 
        etc..
    ]
}
            

Authentication

To use the SC Translator API, you need to include your API key in the Authorization header of your request. You can get your API key by registering for a free account.

Rate Limiting

The free version of SC Translator API has a rate limit of 250 requests per months per user. If you need more requests, you can purchase a paid plan. If you exceed the rate limit you will receive a 429 Too Many Requests response. Every request will return the X-Requests-Remaining header with the number of requests left for the current month.

Supported Languages

The SC Translator API currently supports 20 languages. You can use the language code in the to parameter of the translate endpoint.
Language Language Code
English en
Spanish es
French fr
German de
Arabic ar
Danish da
Greek el
Persian fa
Finnish fi
Hindi hi
Italian it
Japanese ja
Korean ko
Norwegian nb
Polish pl
Russian ru
Swedish sv
Thai th
Ukrainian uk
Chinese zh

This website uses cookies and similar technologies to function properly and to provide the best user experience.

By clicking "It's okay!" you agree to the use of cookies and similar technologies.

Read our privacy- and cookie-policy for more information, to understand how we use your data and how to disable cookies.