文档目录

信息 API

查询支持的文档类型

GET/v1/filetypes

查询翻译支持的所有文件格式。

完整地址
https://otranslator.com/api/v1/filetypes
认证
无需 API Key
Content-Type
application/json
错误格式
{ "error": "Invalid API key." }

注意事项

该接口返回当前平台支持的全部文档翻译格式,列表会随服务能力更新。

示例

curl
1curl -X GET 'https://otranslator.com/api/v1/filetypes'

响应

参数类型默认描述示例
typesString[]-

支持的文档类型

[ "doc", "docx", "rtf", "xls", "xlsx", "ppt", "pptx", "vsdx", "wps", "et", "dps", "pdf", "ai", "indd", "idml", "odt", "ods", "odp", "epub", "chm", "zip", "cbz", "cbr", "jpg", "jpeg", "png", "webp", "svg", "srt", "ass", "ssa", "vtt", "json", "resjson", "html", "xml", "go", "yml", "yaml", "php", "plist", "stringsdict", "wav", "ape", "mp3", "aac", "flac", "alac", "ogg", "wma", "ac3", "dts", "amr", "aiff", "m4a", "txt", "md", "po", "xlf", "xliff", "csv", "tsv", "tex", "arxiv", "zip" ]
翻译任务 API
翻译文本