接口地址

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;
?>