Translate All Languages

FREEMIUM
By JustMobi | Updated 7 days ago | Translation
Popularity

9.5 / 10

Latency

442ms

Service Level

100%

Health Check

N/A

README

Introduction

Welcome to the Translate All Languages API! This guide will walk you through the process of translating text between different languages using Python (or any language) and the Translate All Languages API hosted on RapidAPI.

Prerequisites

Before you begin, make sure you have:

  • Python installed on your system.
  • An API key from RapidAPI. If you don’t have one, sign up here.

Installation

To make requests to the Translate All Languages API, you’ll need to install the requests library. You can do this via pip:

pip install requests

Making a Translation Request

To translate text, you’ll need to send a POST request to the API endpoint. Below is an example Python script that demonstrates how to do this:

import requests

url = "https://translate-all-languages.p.rapidapi.com/translate"

payload = {
    "text": "If you don’t know what language the text is written in, our API will detect the language of the original request.",
    "toLang": "fr",
    "fromLang": "en"
}

headers = {
    "X-RapidAPI-Key": "YOUR-KEY-HERE",
    "X-RapidAPI-Host": "translate-all-languages.p.rapidapi.com",
    "Content-Type": "application/json"
}

response = requests.post(url, headers=headers, json=payload)

print(response.json())

Replace “YOUR-KEY-HERE” with your actual RapidAPI key.

Example Response

If the request is successful, you’ll receive a JSON response containing the translated text and language detection information:

{
  "status": 200,
  "langDetect": "en",
  "translatedText": "Si vous ne savez pas dans quelle langue le texte est écrit, notre API détectera la langue de la demande d'origine."
}

Supported Languages:

Language - ISO-639-1 Code

  • Afrikaans af
  • Arabic ar
  • Azerbaijani az
  • Belarusian be
  • Bulgarian bg
  • Bengali bn
  • Bosnian bs
  • Catalan ca
  • Cebuano ceb
  • Czech cs
  • Welsh cy
  • Danish da
  • German de
  • Greek el
  • English en
  • Esperanto eo
  • Spanish es
  • Estonian et
  • Basque eu
  • Persian fa
  • Finnish fi
  • French fr
  • Irish ga
  • Galician gl
  • Gujarati gu
  • Hausa ha
  • Hindi hi
  • Hmong hmn
  • Croatian hr
  • Haitian creole ht
  • Hungarian hu
  • Armenian hy
  • Indonesian id
  • Igbo ig
  • Icelandic is
  • Italian it
  • Hebrew iw
  • Japanese ja
  • Javanese jw
  • Georgian ka
  • Kazakh kk
  • Khmer km
  • Kannada kn
  • Korean ko
  • Latin la
  • Lao lo
  • Lithuanian lt
  • Latvian lv
  • Malagasy mg
  • Maori mi
  • Macedonian mk
  • Malayalam ml
  • Mongolian mn
  • Marathi mr
  • Malay ms
  • Maltese mt
  • Myanmar (burmese) my
  • Nepali ne
  • Dutch nl
  • Norwegian no
  • Chichewa ny
  • Punjabi pa
  • Polish pl
  • Portuguese pt
  • Romanian ro
  • Russian ru
  • Sinhala si
  • Slovak sk
  • Slovenian sl
  • Somali so
  • Albanian sq
  • Serbian sr
  • Sesotho st
  • Sundanese su
  • Swedish sv
  • Swahili sw
  • Tamil ta
  • Telugu te
  • Tajik tg
  • Thai th
  • Filipino tl
  • Turkish tr
  • Ukrainian uk
  • Urdu ur
  • Uzbek uz
  • Vietnamese vi
  • Yiddish yi
  • Yoruba yo
  • Chinese (simplified) zh
  • Chinese (traditional) zh_TW
  • Zulu zu
Followers: 1
API Creator:
Rapid account: Just Mobi
JustMobi
JustMobi
Log In to Rate API
Rating: 5 - Votes: 1