接口地址

https://api.vvhan.com/api/en

返回格式

JSON

请求方式:

GET

请求示例(当天)

https://api.vvhan.com/api/en

请求示例(随机)

https://api.vvhan.com/api/en?type=sj

参数说明

名称 必填 类型 说明
type string 是否随机输出

返回数据

{"success":true,"data":{"month":"Oct","day":"18","zh":"井底之蛙,不知大海。","en":"The frog in the well knows nothing of the great ocean.","pic":"https:\/\/staticedu-wps.cache.iciba.com\/image\/0dfd35fcad9190747d8bd3cd2c91c758.jpg"}}

调用实例

可用做每日一句,自行调用

示例代码

<?php
header("Content-Type:text/json;charset=UTF-8"); date_default_timezone_set("PRC"); $type = $_GET["type"]; $url = "https://api.vvhan.com/api/en?type=" . $type; $data = file_get_contents($url); echo $data;
?>