各平台免費翻譯API


  • google

http://translate.google.cn/translate_a/single?client=gtx&dt=t&dj=1&ie=UTF-8&sl=auto&tl=zh_TW&q=calculate

復制代碼
{
    "sentences": [
        {
            "trans": "計算",
            "orig": "calculate",
            "backend": 1
        }
    ],
    "src": "en",
    "confidence": 0.9609375,
    "ld_result": {
        "srclangs": [
            "en"
        ],
        "srclangs_confidences": [
            0.9609375
        ],
        "extended_srclangs": [
            "en"
        ]
    }
}
復制代碼
  • Bing

http://api.microsofttranslator.com/v2/Http.svc/Translate?appId=AFC76A66CF4F434ED080D245C30CF1E71C22959C&from=&to=en&text=考勤計算

<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">Attendance calculation</string>

不添加from參數或者from為空都自動檢測語言

  • Baidu

http://fanyi.baidu.com/transapi?from=auto&to=cht&query=Calculation

復制代碼
{
    "from": "en",
    "to": "cht",
    "domain": "all",
    "type": 2,
    "status": 0,
    "data": [
        {
            "dst": "計算",
            "prefixWrap": 0,
            "src": "Calculation",
            "relation": [],
            "result": [
                [
                    0,
                    "計算",
                    [
                        "0|6"
                    ],
                    [],
                    [
                        "0|6"
                    ],
                    [
                        "0|6"
                    ]
                ]
            ]
        }
    ]
}
復制代碼

v2transapi已經失效

  • Youdao

http://fanyi.youdao.com/translate?&doctype=json&type=AUTO&i=計算

復制代碼
{
    "type": "ZH_CN2EN",
    "errorCode": 0,
    "elapsedTime": 1,
    "translateResult": [
        [
            {
                "src": "計算",
                "tgt": "To calculate"
            }
        ]
    ]
}
復制代碼

type的類型有:

ZH_CN2EN 中文 » 英語
ZH_CN2JA 中文 » 日語
ZH_CN2KR 中文 » 韓語
ZH_CN2FR 中文 » 法語
ZH_CN2RU 中文 » 俄語
ZH_CN2SP 中文 » 西語
EN2ZH_CN 英語 » 中文
JA2ZH_CN 日語 » 中文
KR2ZH_CN 韓語 » 中文
FR2ZH_CN 法語 » 中文
RU2ZH_CN 俄語 » 中文
SP2ZH_CN 西語 » 中文


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM