menu 云析API铺 - 云析文档平台 公告 打赏
child_care
医药百科
keyboard_arrow_down
star_border

随机图片

使用教程


请求地址 https://api.a20safe.com/api.php?api=9&key=你的KEY&lx=类型

返回示例 {"code":0,"msg":"success","data":[{"imgurl":"https://tva2.sinaimg.cn/large/9bd9b167gy1fwrh8yb1icj21hc0xc0w8.jpg","width":"1920","height":"1200"}]}

Example

返回参数

返回参数类型说明
code Int 状态码
msg String 返回说明
data[n].imgurl String 图片地址
data[n].width String 图片宽
data[n].height String 图片高

						<br><br>
<table class="mdui-table"><thead><tr>
<th>返回参数</th><th>类型</th><th>说明</th></tr></thead><tbody>
<tr><td><code>code</code></td>
<td>Int</td>
<td>状态码</tr>
<tr><td><code>msg</code></td>
<td>String</td>
<td>返回说明</tr>
<tr><td><code>data[n].imgurl</code></td>
<td>String</td>
<td>图片地址</tr>
<tr><td><code>data[n].width</code></td>
<td>String</td>
<td>图片宽</tr>
<tr><td><code>data[n].height</code></td>
<td>String</td>
<td>图片高</tr>
</tbody></table>
					

请求参数

请求参数必填类型说明
api String 接口id
key String 你的key
lx String 类型(dongman:动漫 fengjing:风景 meizi:妹子 mcjiang:mc酱 meinv:美女 bing:每日一bing suiji:随机)
hs String 横竖屏(mobile:竖屏 pc:横屏)
dz String 一次性返回多张(输入1至5间的数字)