万能翻译API接口


接口地址

https://api.vvhan.com/api/fy

返回格式

JSON

请求方式:

GET

请求示例:

https://api.vvhan.com/api/fy?text=是小韩啊

参数说明

名称必填类型说明
infostring输入要翻译的内容

返回数据

{"code":1,"msg":"Successful","info":"是小韩"}

调用实例

自行调用

示例代码

<?php
header("Content-Type:text/json;charset=UTF-8"); $info = $_GET['info']; $result = file_get_contents("https://api.vvhan.com/api/fy?text=" . $info); echo $result;
?>