随机风景图片API接口


接口地址

https://api.ghser.com/random/fengjing.php

返回格式

JSON

请求方式:

GET

请求示例(图片输出):

https://api.ghser.com/random/fengjing.php

请求示例(JSON输出):

https://api.ghser.com/random/fengjing.php?type=json

调用效果

点击图片刷新,电脑右键/手机长按图片保存


风景图

参数说明

名称 必填 类型 说明
type string 要输出的格式

返回数据

{"success":true,"imgurl":"https:\/\/p.ananas.chaoxing.com\/star3\/origin\/4ee971bd4fbd32e8058c7b8f505ef604.jpg?rw=5120&rh=3200&_fileSize=691740&_orientation=1","info":{"width":1920,"height":1080,"type":"img"}}

调用实例

<img src="https://api.ghser.com/random/fengjing.php" alt="自然风景图">

评论