Skip to content

Translator API

This API provides automatically detects the source language of your provided text and translates it into English. Supporting upto 240+ languages.

POST /api/v1/translate

The following parameters are accepted in the request body:

FieldTypeRequiredDescription
textstringYesThe text you want to translate.
Terminal window
curl -X POST https://heavstal.com.ng/api/v1/translate \
-H "Content-Type: application/json" \
-H "x-api-key: <YOUR_API_KEY>" \
-d '{"text": "Bonjour tout le monde"}'
{
"status": "success",
"creator": "HEAVSTAL TECH",
"data": {
"original": "Bonjour tout le monde",
"translated": "Hello everyone",
"source_language": "fr",
"pronunciation": "bon-zhoor..."
}
}