POST
免费
JSON转Protobuf二进制
/api/pb_en.php
用来翻译文本内容 支持201种语言
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| text | string | 是 | 内容 | 我是文字 |
| h | char | 是 | 转换后语言的英文缩写,传参数y可进行搜索,支持模糊搜索 | zh |
| y | char | 否 | 要进行查询的语言,所有参数不传则获取全部语言 | 中文/zh/中 |
| 对于有换行的内容post直接传入内容 | string | 否 |
[
{
"name": "text",
"type": "string",
"required": true,
"description": "内容",
"example": "我是文字"
},
{
"name": "h",
"type": "char",
"required": true,
"description": "转换后语言的英文缩写,传参数y可进行搜索,支持模糊搜索",
"example": "zh"
},
{
"name": "y",
"type": "char",
"required": false,
"description": "要进行查询的语言,所有参数不传则获取全部语言",
"example": "中文/zh/中"
},
{
"name": "对于有换行的内容post直接传入内容",
"type": "string",
"required": false,
"description": "",
"example": ""
}
]
{"openapi":"3.1.1","info":{"title":"翻译","description":"用来翻译文本内容\r\n支持201种语言","version":"1.0.0"},"paths":{"/api/fanyi.php":{"get":{"summary":"翻译","description":"用来翻译文本内容\r\n支持201种语言","parameters":[{"name":"text","in":"query","required":true,"schema":{"type":"string","example":"我是文字"},"description":"内容"},{"name":"h","in":"query","required":true,"schema":{"type":"string","example":"zh"},"description":"转换后语言的英文缩写,传参数y可进行搜索,支持模糊搜索"},{"name":"y","in":"query","required":false,"schema":{"type":"string","example":"中文/zh/中"},"description":"要进行查询的语言,所有参数不传则获取全部语言"},{"name":"对于有换行的内容post直接传入内容","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"summary":"翻译","description":"用来翻译文本内容\r\n支持201种语言","parameters":[{"name":"text","in":"query","required":true,"schema":{"type":"string","example":"我是文字"},"description":"内容"},{"name":"h","in":"query","required":true,"schema":{"type":"string","example":"zh"},"description":"转换后语言的英文缩写,传参数y可进行搜索,支持模糊搜索"},{"name":"y","in":"query","required":false,"schema":{"type":"string","example":"中文/zh/中"},"description":"要进行查询的语言,所有参数不传则获取全部语言"},{"name":"对于有换行的内容post直接传入内容","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object"}}}}}}}},"servers":[{"url":"https://atror.lcog.cn","description":"当前访问入口(https)"}]}
{"code":0,"msg":"success","src":"dog","dst":"狗","from":"auto","to":"zh"}
暂无详细文档
暂无代码示例。管理员可在后台用 AI 生成或手动编写。
// 结果将在此处显示