cURL
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 } }
Retrieve a specific translation by ID
API authentication key
Unique identifier of the translation document
"5fdb00c9-ce05-484e-a7e2-5f578953114b"
Successful retrieval of translation
The response is of type object.
object