随机返回壁纸,支持id搜索,支持直接返回以及json返回
接口地址: https://wzapi.com/api/sjpcbz
返回格式: JSON
请求方式: GET
请求示例: https://wzapi.com/api/sjpcbz?format=json
| 参数名 | 必填 | 类型 | 说明 |
|---|---|---|---|
| format | 否 | string | 输出格式,默认跳转,传 json 返回壁纸链接 |
| id | 否 | int | 指定壁纸 ID,从 1 开始,不传则随机 |
| apiKey | 付费接口必填 | string | 用户密钥,免费接口可不传 |
| 字段名 | 类型 | 说明 |
|---|---|---|
| status | string | 状态,success 或 error |
| data.id | int | 壁纸 ID |
| data.wallpaper | string | 壁纸地址 |
| data.timestamp | int | 当前时间戳 |
{
"status": "success",
"data": {
"id": 382,
"wallpaper": "http://cdn-hsyq-static.shanhutech.cn/bizhi/staticwp/202104/450dc4dfc7a0530daccb8fe8ea3f2993--4062033630.jpg",
"timestamp": 1764278961
}
}
| 参数名 | 参数值 | 操作 |
|---|
{
"status": "success",
"data": {
"id": 382,
"wallpaper": "http://cdn-hsyq-static.shanhutech.cn/bizhi/staticwp/202104/450dc4dfc7a0530daccb8fe8ea3f2993--4062033630.jpg",
"timestamp": 1764278961
}
}