GET
/
json
/
v1
/
translate
/
{id}
curl --request GET \
  --url https://api.jsontrans.com/json/v1/translate/{id} \
  --header 'jt-api-key: <jt-api-key>'
{
  "code": 200,
  "msg": "Success",
  "data": {
    "id": "0a12dffb-0c2e-441e-9360-50c603e7bb69",
    "origin_json": "{\"text\": \"Hello, world!\"}",
    "translated_json": "{\"text\":\"你好,世界!\"}",
    "from_lang": "en",
    "to_lang": "zh",
    "create_time": "2024-11-16T02:27:42.763577+00:00",
    "update_time": "2024-11-16T02:27:42.763577+00:00",
    "ignored_fields": "image,url",
    "char_total": 13
  }
}

Headers

jt-api-key
string
required

API authentication key

Path Parameters

id
string
required

Unique identifier of the translation document

Example:

"5fdb00c9-ce05-484e-a7e2-5f578953114b"

Response

200
application/json
Successful retrieval of translation
code
integer
Example:

200

msg
string
Example:

"Success"

data
object