- NLP Translation
- Text Translation
- JSON Values Translation
/v1/jsontranslate
POST
https://nlp-translation.p.rapidapi.com/v1/jsontranslate
Request
Authorization
Add parameter in header
x-rapidapi-key
Example:
x-rapidapi-key: ********************
Header Params
x-rapidapi-host
string
required
Example:
nlp-translation.p.rapidapi.com
Body Params application/json
text
string
required
to
string
required
json
string
required
from
string
optional
protected_keys
string
optional
protected_words
string
optional
Example
{
"from": "en",
"to": "de",
"json": "{\"text\":\"INTRODUCTION\",\"parent\":null,\"tags\":[],\"list\":[{\"text\":\"Study Assumptions\",\"parent\":null,\"tags\":[],\"list\":[],\"location\":\"0_0\"},{\"text\":\"Scope of the Study\",\"parent\":null,\"tags\":[],\"list\":[],\"location\":\"0_1\"}],\"location\":\"0\"}"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://nlp-translation.p.rapidapi.com/v1/jsontranslate' \
--header 'x-rapidapi-host: nlp-translation.p.rapidapi.com' \
--header 'Content-Type: application/json' \
--header 'x-rapidapi-key;' \
--data-raw '{
"from": "en",
"to": "de",
"json": "{\"text\":\"INTRODUCTION\",\"parent\":null,\"tags\":[],\"list\":[{\"text\":\"Study Assumptions\",\"parent\":null,\"tags\":[],\"list\":[],\"location\":\"0_0\"},{\"text\":\"Scope of the Study\",\"parent\":null,\"tags\":[],\"list\":[],\"location\":\"0_1\"}],\"location\":\"0\"}"
}'
Responses
🟢200OK
application/json
Body
status
integer
required
from
string
optional
to
string
optional
original_json
string
optional
protected_keys
string
optional
protected_words
string
optional
translated_json
object
optional
lang_code
string
optional
translated_characters
integer
optional
Error
string
optional
Example
{
"status": 200,
"from": "en",
"to": "de",
"original_json": "{\"text\":\"INTRODUCTION\",\"parent\":null,\"tags\":[],\"list\":[{\"text\":\"Study Assumptions\",\"parent\":null,\"tags\":[],\"list\":[],\"location\":\"0_0\"},{\"text\":\"Scope of the Study\",\"parent\":null,\"tags\":[],\"list\":[],\"location\":\"0_1\"}],\"location\":\"0\"}",
"protected_keys": "",
"protected_words": "",
"translated_json": {
"de": "{\"text\":\"EINFÜHRUNG\",\"parent\":null,\"list\":[{\"text\":\"Studienannahmen\",\"parent\":null,\"location\":\"0_0\",\"tags\":[null],\"list\":[null]},{\"text\":\"Umfang der Studie\",\"parent\":null,\"location\":\"0_1\",\"tags\":[null],\"list\":[null]}],\"location\":\"0\",\"tags\":[null]}"
},
"translated_characters": 232
}
Modified at 2024-07-21 06:10:20