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.
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 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 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..
]
}
Authorization
header of your request. You can get your API key by registering for a free account.
429 Too Many Requests
response.
Every request will return the X-Requests-Remaining
header with the number of requests left for the current month.
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 |