RapidAPI logo

Microsoft Text Translation 3.0

FREEMIUM
By microsoft-azure
Updated a month ago
5.9/10
Popularity Score
645ms
Latency
88%
Success Rate

Microsoft Text Translation 3.0 API Documentation

New version of Text Translation API

View API Details
GETLanguages
POSTTranslate
POSTTransliterate
POSTDetect
POSTBreakSentence
POSTDictionary Examples
POSTBreakSentence

Identifies the positioning of sentence boundaries in a piece of text.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Content-TypeSTRING
REQUIRED
Content-LengthSTRING
OPTIONALThe length of the request body.
Required Parameters
api-versionSTRING
REQUIRED
Break SentenceJSON_STRING
REQUIRED
Optional Parameters
languageSTRING
OPTIONALLanguage tag identifying the language of the input text. If a code is not specified, automatic language detection will be applied.
scriptSTRING
OPTIONALScript tag identifying the script used by the input text. If a script is not specified, the default script of the language will be assumed.
Code Snippet
unirest.post("https://microsoft-azure-microsoft-text-translation-3-0-v1.p.rapidapi.com/breaksentence?api-version=3.0")
.header("X-RapidAPI-Host", "microsoft-azure-microsoft-text-translation-3-0-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send([{"Text":"How are you? I am fine. What did you do today?"}])
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://microsoft-azure-microsoft-text-translation-3-0-v1.p.rapidapi.com/breaksentence
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://microsoft-azure-microsoft-text-translation-3-0-v1.p.rapidapi.com/breaksentence?api-version=3.0")
.header("X-RapidAPI-Host", "microsoft-azure-microsoft-text-translation-3-0-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send([{"Text":"How are you? I am fine. What did you do today?"}])
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication