Translation API Documentation
Introduction
Welcome to the Translation API documentation. This service provides real-time language translation capabilities for various language pairs.
API Endpoint
Access the Translation API at the following endpoint:
https://texttoolshub-translator.p.rapidapi.com/translator.php
Request Method
To use the API, send a POST request with the following details:
Request Headers
Include the following headers in your request:
Content-Type: application/json
x-rapidapi-host: texttoolshub-translator.p.rapidapi.com
x-rapidapi-key: [Your API Key]
Request Format
Requests must be formatted as JSON with the following parameters:
from: The source language code (e.g., "en" for English)
to: The target language code (e.g., "ur" for Urdu)
text: The text to be translated
{
"from": "en",
"to": "ur",
"text": "How are you?"
}
Response Format
The API responds with a JSON object containing:
err: An error message if applicable, otherwise null
result: The translated text
{
"err":null,
"result":"تم کیسے ہو؟"
}
Language Codes
| Language |
Code |
| Abkhaz | ab |
| Acehnese | ac |
| Acholi | ach |
| Afar | aa |
| Afrikaans | af |
| Akan | ak |
| Albanian | sq |
| Alur | alz |
| Amharic | am |
| Arabic | ar |
| Arabic (Algerian) | aq |
| Arabic (Tunisian) | au |
| Aragonese | an |
| Armenian | hy |
| Assamese | as |
| Asturian | at |
| Avar | av |
| Awadhi | aw |
| Aymara | ay |
| Azerbaijani | az |
| Balinese | ban |
| Balochi | bl |
| Bambara | bm |
| Baoule | bci |
| Bashkir | ba |
| Basque | eu |
| Batak Karo | btx |
| Batak Simalungun | bts |
| Batak Toba | bbc |
| Belarusian | be |
| Bemba | bb |
| Bengali | bn |
| Berber | bz |
| Betawi | bew |
| Bhojpuri | bh |
| Bikol | bik |
| Bislama | bi |
| Blin | by |
| Bodo | bd |
| Bosnian | bs |
| Breton | br |
| Bulgarian | bg |
| Buryat | bua |
| Cantonese | yf |
| Catalan | ca |
| Cebuano | cb |
| Chamorro | cm |
| Chechen | ce |
| Cherokee | ch |
| Chhattisgarhi | hn |
| Chichewa | ny |
| Chinese | cn |
| Chinese (Classic) | cc |
| Chuukese | chk |
| Chuvash | cv |
| Cornish | kw |
| Corsican | co |
| Creole | ht |
| Creole (Seychellois) | crs |
| Crimean | cr |
| Croatian | hr |
| Czech | cs |
| Danish | da |
| Dari | pr |
| Dhivehi | dv |
| Dinka | din |
| Dogri | do |
| Dombe | dov |
| Dutch | nl |
| Dyula | dyu |
| Dzongkha | dz |
| English | en |
| English (Old) | ed |
| Esperanto | eo |
| Estonian | et |
| Ewe | ee |
| Faroese | fo |
| Fijian | fj |
| Filipino | tl |
| Finnish | fi |
| Fon | fon |
| French | fr |
| French (Canada) | fc |
| French (Middle) | fm |
| Frisian | fy |
| Friulian | fu |
| Fula | ff |
| Ga | gaa |
| Galician | gl |
| Georgian | ka |
| German | de |
| Greek | el |
| Greek (Ancient) | gr |
| Guarani | gn |
| Gujarati | gu |
| Hakha Chin | hk |
| Haryanvi | bc |
| Hausa | ha |
| Hawaiian | hw |
| Hebrew | he |
| Hiligaynon | hl |
| Hill Mari | mj |
| Hindi | hi |
| Hmong | hm |
| Hungarian | hu |
| Hunsrik | hrx |
| Hupa | hp |
| Iban | iba |
| Icelandic | is |
| Ido | io |
| Igbo | ig |
| Ilocano | il |
| Indonesian | id |
| Ingush | ih |
| Interlingua | ia |
| Inuinnaqtun | iq |
| Inuktitut | iu |
| Inuktitut (Latin) | ii |
| Irish | ga |
| Italian | it |
| Jamaican Patois | jam |
| Japanese | ja |
| Javanese | jv |
| Jingpo | kac |
| Kabyle | kb |
| Kannada | kn |
| Kashmiri | ks |
| Kazakh | kk |
| Khasi | kha |
| Khmer | km |
| Kirundi | rn |
| Klingon | kg |
| Komi | kv |
| Konkani | go |
| Korean | ko |
| Latin | la |
| Latvian | lv |
| Lingala | ln |
| Lithuanian | lt |
| Luo | luo |
| Luxembourgish | lb |
| Macedonian | mk |
| Malay | ms |
| Malayalam | ml |
| Maori | mi |
| Marathi | mr |
| Mongolian | mn |
| Nepali | ne |
| Norwegian | no |
| Pashto | ps |
| Persian | fa |
| Polish | pl |
| Portuguese | pt |
| Punjabi | pa |
| Romanian | ro |
| Russian | ru |
| Samoan | sm |
| Sanskrit | sa |
| Serbian | sr |
| Sinhala | si |
| Slovak | sk |
| Slovenian | sl |
| Somali | so |
| Spanish | es |
| Swahili | sw |
| Swedish | sv |
| Tajik | tg |
| Tamil | ta |
| Telugu | te |
| Thai | th |
| Turkish | tr |
| Ukrainian | uk |
| Urdu | ur |
| Uyghur | ug |
| Uzbek | uz |
| Vietnamese | vi |
| Welsh | cy |
| Yiddish | yi |
| Yoruba | yo |
| Zulu | zu |
Contact Us
For custom plans / high tier plans, custom services or any other subject, feel free to start a live chat on website mentioned below or send an email and we will try to get back to you shortly.
Email: [email protected]