GET
/
json
/
v1
/
translate
curl --request GET \
  --url https://api.jsontrans.com/json/v1/translate \
  --header 'jt-api-key: <jt-api-key>'
{
  "code": 200,
  "msg": "Success",
  "data": {
    "translations": [
      {
        "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
      }
    ],
    "total": 1
  }
}

Headers

jt-api-key
string
required

API authentication key

Query Parameters

limit
integer
default:20

Maximum number of results to return (between 1 and 50)

Required range: 1 <= x <= 50
Example:

20

page
integer
default:1

The page number

Required range: x >= 1
Example:

1

from_lang
string

Source language code

Example:

"en"

to_lang
string

Target language code

Example:

"zh"

create_time_min
string

Minimum creation timestamp for the translations (in ISO 8601 format)

Example:

"2013-03-15T16:41:56Z"

create_time_max
string

Maximum creation timestamp for the translations (in ISO 8601 format)

Example:

"2013-03-15T16:41:56Z"

update_time_min
string

Minimum update timestamp for the translations (in ISO 8601 format)

Example:

"2013-03-15T16:41:56Z"

update_time_max
string

Maximum update timestamp for the translations (in ISO 8601 format)

Example:

"2013-03-15T16:41:56Z"

Response

200
application/json
Successful response
code
integer
Example:

200

msg
string
Example:

"Success"

data
object