随机美女图片①
每次刷新都是不同的PC美女图片

接口地址: https://api.suyanw.cn/api/pcmv.php

返回格式: JSON

请求方式: GET/POST

请求示例: https://api.suyanw.cn/api/pcmv.php

请求参数说明:

名称 必填 类型 说明
?return=json string json输出

返回参数说明:

名称 类型 说明
img string 图片链接

返回示例:

 

错误码格式说明:

名称 类型 说明
200 string 查询成功

调用示例:

<img src="https://api.suyanw.cn/api/pcmv.php" title="随机美女图片" alt="随机美女图片"/>

代码示例PHP:

<?php
header
('Content-type:text/json;charset=utf-8;'); date_default_timezone_set("PRC"); $url = "https://api.suyanw.cn/api/pcmv"; $type = "?type=" . $_GET['type']; if ($type == "?type=json" || $type == "?type=JSON") { $result = file_get_contents($url . $type); echo $result; } else { header("Location:" . $url); }
?>