维梦API - 提供免费接口调用平台
该API已经过安全认证,请放心使用
工具 · 讯飞翻译
讯飞在线翻译

接口地址: https://api.52vmy.cn/api/query/fanyi/iflyrec

返回格式: JSON

请求方式: GET

请求示例: https://api.52vmy.cn/api/query/fanyi/iflyrec?msg=你不必爱你做的工作。工作是赚钱的一种方式。许多人通过用他们赚到的钱做他们关心的事情,过着不错的生活。

接口定制: 点此加入用户群

默认QPS: 每2秒最多4次 携带Token可无视限制

请求参数说明:

名称 必填 类型 说明
msg string 关键词
type string 返回格式默认JSON可选text

返回参数说明:

名称 类型 说明

返回示例:

{
    "code": 200,
    "msg": "成功",
    "data": {
        "source": "你不必爱你做的工作。工作是赚钱的一种方式。许多人通过用他们赚到的钱做他们关心的事情,过着不错的生活。",
        "target": "You don't have to love what you do.Work is a way to make money.Many people make a good living by doing things they care about with the money they earn.",
        "info": [
            {
                "cands": [
                    "You don't have to love what you do.",
                    "You don't have to love the work you do.",
                    "You don't have to love the job you do.",
                    "You don't have to love your job."
                ],
                "source": "你不必爱你做的工作。",
                "target": "You don't have to love what you do."
            },
            {
                "cands": [
                    "Work is a way to make money.",
                    "Work is a way of making money.",
                    "Work is a way to earn money.",
                    "Working is a way to make money."
                ],
                "source": "工作是赚钱的一种方式。",
                "target": "Work is a way to make money."
            },
            {
                "cands": [
                    "Many people make a good living by doing things they care about with the money they earn.",
                    "Many people make a good living by doing what they care about with the money they earn.",
                    "Many people make a good living doing what they care about with the money they earn.",
                    "Many people make a good living by using the money they earn to do things they care."
                ],
                "source": "许多人通过用他们赚到的钱做他们关心的事情,过着不错的生活。",
                "target": "Many people make a good living by doing things they care about with the money they earn."
            }
        ]
    }
}

PHP代码示例:

$msg = $_GET["msg"];
$type = $_GET["type"];
$url = "https://api.52vmy.cn/api/query/fanyi/iflyrec?msg=".$msg."&type=".$type;
echo file_get_contents($url);