NLP Translation

FREEMIUM
By toto | Updated 2 months ago | Translation
Popularity

9.9 / 10

Latency

1,666ms

Service Level

99%

Followers: 36
API Creator:
avatar
toto
gofitech
Rate API:
Log In to Rate API

README

NLP Translation / Translator API:

  • High Quality Neural Machine Translation (NMT)
  • Using “whole sentences translation at a time” method to produce more relevant translation
  • 110+ languages Supported
  • Translate HTML, text and JSON values
  • Protected words feature
  • More than one target languages in single request
  • Reasonable <a href=“https://rapidapi.com/gofitech/api/nlp-translation/pricing”>Pricing</a>
    Tags: translate, translation , dictionary, translator, nlp, languages.

Request Parameters

  1. text (required)
    HTML or plain-text to translate
    example: <p>Hello world</p>
  2. to (required)
    Destination language code. Multiple target language code separated with semicolon (;). Please see the Supported Language Codes section
    example: es;fr
  3. from (optional)
    Source Language code. Fill with the source language code (recomended for faster translation) or leave it blank if you not sure. Please see the Supported Language Codes section
    example: en
  4. protected_words (optional)
    List of words that won’t be translated. Separated with semicolon (;). Case sensitive.
    example: world;World

Note:

  • Specify Source language in from parameter for faster translation process
  • Multiple languages in single request only applied in certain plan. Using this feature will take longer response time.

Example of Success Response

Text Source With Language Specified

{
   "status":200, 
   "from": "en",
    "to": "es;fr",
    "original_text": "Hello world",
    "translated_text": {
        "es": "Hola Mundo",
        "fr": "Bonjour le monde"
    },
    "translated_characters": 22
}

Text Source Without Language Specified. With Protected Words

{
    "status":200,
    "to": "es",
    "original_text": "Hello world",
    "protected_words": "world",
    "translated_text": {
        "es": "Hola world"
    },
    "translated_characters": 11
}

Text Source Without Language Specified. Without Protected Words

{
    "status":200,
    "to": "es",
    "original_text": "Hello world",
    "translated_text": {
        "es": "Hola Mundo"
    },
    "translated_characters": 11
}

HTML Source Without Language Specified. Multiple Destination Languages

{
    "status":200,
    "to": "es;fr",
    "original_text": "<p>Hello World</p>",
    "translated_text": {
        "es": "<p>Hola Mundo</p>",
        "fr": "<p>Bonjour le monde</p>"
    },
    "translated_characters": 22
}

Example of Invalid Response

Invalid Target Language Code

{
    "status": 412,
    "Error": "Invalid Target Language Code: kr"
}

Text Length More Than Allowed

{
    "status": 412,
    "Error": "Text more than 5000 characters or less than one character is not allowed"
}

Supported Language Codes (Case Sensitive)

  • af: Afrikaans
  • sq: Albanian
  • am: Amharic
  • ar: Arabic
  • hy: Armenian
  • az: Azeerbaijani
  • ba: Bashkir
  • eu: Basque
  • be: Belarusian
  • bn: Bengali
  • bs: Bosnian
  • bg: Bulgarian
  • my: Burmese
  • ca: Catalan
  • ceb: Cebuano
  • ny: Chichewa
  • zh-CN: Chinese (Simplified)
  • zh-TW: Chinese (Traditional)
  • co: Corsican
  • hr: Croatian
  • cs: Czech
  • da: Danish
  • nl: Dutch
  • en: English
  • eo: Esperanto
  • et: Estonian
  • fi: Finnish
  • fr: French
  • fy: Frisian
  • gl: Galician
  • ka: Georgian
  • de: German
  • el: Greek
  • gu: Gujarati
  • ht: Haitian Creole
  • ha: Hausa
  • haw: Hawaiian
  • iw: Hebrew
  • mrj: Hill Mari
  • hi: Hindi
  • hmn: Hmong
  • hu: Hungarian
  • is: Icelandic
  • ig: Igbo
  • id: Indonesian
  • ga: Irish
  • it: Italian
  • ja: Japanese
  • jw: Javanese
  • kn: Kannada
  • kk: Kazakh
  • km: Khmer
  • ko: Korean
  • ku: Kurdish
  • ky: Kyrgyz
  • lo: Lao
  • la: Latin
  • lv: Latvian
  • lt: Lithuanian
  • lb: Luxembourgish
  • mk: Macedonian
  • mg: Malagasy
  • ms: Malay
  • ml: Malayalam
  • mt: Maltese
  • mi: Maori
  • mr: Marathi
  • mhr: Mari
  • mn: Mongolian
  • ne: Nepali
  • no: Norwegian
  • ps: Pashto
  • pap: Papiamento
  • fa: Persian
  • pl: Polish
  • pt: Portuguese
  • pa: Punjabi
  • ro: Romanian
  • ru: Russian
  • sm: Samoan
  • gd: Scots Gaelic
  • sr: Serbian
  • st: Sesotho
  • sn: Shona
  • sd: Sindhi
  • si: Sinhala
  • sk: Slovak
  • sl: Slovenian
  • so: Somali
  • es: Spanish
  • su: Sundanese
  • sw: Swahili
  • sv: Swedish
  • tl: Tagalog Filipino
  • tg: Tajik
  • ta: Tamil
  • tt: Tatar
  • te: Telugu
  • th: Thai
  • tr: Turkish
  • udm: Udmurt
  • uk: Ukrainian
  • ur: Urdu
  • uz: Uzbek
  • vi: Vietnamese
  • cy: Welsh
  • xh: Xhosa
  • yi: Yiddish
  • yo: Yoruba
  • zu: Zulu

Usage Limitations

Concurrent Requests

  • BASIC Plan : 1 concurrent request
  • PRO Plan : 2 concurrent requests
  • ULTRA Plan : 4 concurrent requests
  • MEGA Plan : 8 concurrent requests

Simultanously Multiple Target Language in Single Request

  • BASIC Plan : not allowed
  • PRO Plan : up to 2 target languages
  • ULTRA Plan : up to 3 target languages
  • MEGA Plan : up to 4 target languages

Maximum Characters in Single Request

  • BASIC Plan : 1000 Characters
  • PRO Plan: 5000 Characters
  • ULTRA Plan: 5000 Characters
  • MEGA Plan: 5000 Characters

NLP Translation API SDK

You can use RapidAPI SDKs that allow you to integrate NLP Translation API in your applications. Regardless of what your favorite programming language is, RapidAPI’s SDK allow you to easily use RapidAPI in your application. We have SDKs available in the following languages:

Rating: 4.5 - Votes: 21