请求信息
请使用编码后的真实地址发起调用
https://api.chuliangnet.com/API/today.php
https://api.chuliangnet.com/API/today.php
application/json
请求参数
按文档填写参数后即可联调
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| w | string | yes | 图片宽度,默认1920 |
| h | string | yes | 图片长度默认1080 |
| uhd | string | yes | 是否4k,默认False,为True时请求参数w和h无效。1920x1200, 1920x1080, 1080x1920,1366x768, 1280x768, 1024x768, 800x600, 800x480, 768x1280, 720x1280, 640x480, 480x800, 400x240, 320x240, 240x320 |
| uhd | string | yes | 地区,默认zh-CN。目前支持的地区码:zh-CN, de-DE, en-CA, en-GB, en-IN, en-US, fr-FR, it-IT, ja-JP |
在线测试
结果将显示在右侧
返回结果
HTTP 状态与响应正文
此处将显示接口返回结果...
示例代码
可直接复制到本地调试
curl -X GET "https://api.chuliangnet.com/API/today.php"
<?php $url = 'https://api.chuliangnet.com/API/today.php'; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); echo curl_exec($ch); curl_close($ch);
import requests url = "https://api.chuliangnet.com/API/today.php" print(requests.get(url).text)
fetch('https://api.chuliangnet.com/API/today.php')
.then(r => r.text())
.then(console.log);