返回 | 接口 / 图片壁纸 / 4K壁纸API
GET 图片壁纸

4K壁纸API

提供4K壁纸的首页推荐、分类、搜索和详情查询功能

累计调用 10 今日调用 0

更新于 2026-10-16

调用地址

GET
https://itapi.top/api/4k

请求参数

参数名类型必填说明示例
action string 可选 操作类型,可选值:search(搜索)、detail(详情),默认为首页推荐 search
keyword string 必填 搜索关键词(当action为search时必需) 风景
page string 可选 搜索页码(当action为search时可选,默认1) 1
n int 可选 当action为search时,指定返回第n个结果的详情(可选,从1开始计数) 1
id int 可选 壁纸ID(当action为detail时,可通过id指定,也可通过url指定) 1
url string 可选 壁纸详情页URL(当action为detail时,可通过url指定,也可通过id指定) https://itapi.top/og.png

响应示例

200 OK
{"code":200,"message":"成功","data":{"title":"女子 手表 车窗 坐在车里看风景的动漫女孩4k壁纸4K桌面精选","id":"BZ36416","resolution":"3840x2160PX","format":"JPG","size":"5.56 MB","image_url":"https:\/\/c.53326.com\/d\/file\/lan20221010\/x3vk5ebjc2z.jpg","tags":["风景","女子","手表"],"related":[{"title":"魏无羡 蓝忘机 忘羡 魔道祖师5k高清壁纸4K桌面壁纸精选","url":"https:\/\/www.4kdesk.com\/4Kdongman\/15194.html","thumbnail":"https:\/\/c.53326.com\/d\/file\/newpc202302\/c30pkubpjy0.jpg"},{"title":"《闹钟》我今年二十七八岁4k壁纸4K桌面精选","url":"https:\/\/www.4kdesk.com\/4Kdongman\/28886.html","thumbnail":"https:\/\/c.53326.com\/d\/file\/newpc202302\/gvmozeobxso.jpg"},{"title":"幻想的女孩,绿色的眼睛,唯美艺术图片","url":"https:\/\/www.4kdesk.com\/4Kdongman\/4123.html","thumbnail":"ht...

在线测试

代码示例

cURL · GET
curl "https://itapi.top/api/4k?action=search&keyword=%E9%A3%8E%E6%99%AF&page=1&n=1&id=1&url=https%3A%2F%2Fitapi.top%2Fog.png"
PHP
<?php
$res  = file_get_contents("https://itapi.top/api/4k?action=search&keyword=%E9%A3%8E%E6%99%AF&page=1&n=1&id=1&url=https%3A%2F%2Fitapi.top%2Fog.png");
$json = json_decode($res, true);
print_r($json);
JavaScript
const res  = await fetch("https://itapi.top/api/4k?action=search&keyword=%E9%A3%8E%E6%99%AF&page=1&n=1&id=1&url=https%3A%2F%2Fitapi.top%2Fog.png");
const json = await res.json();
console.log(json);
Python
import requests

r = requests.get("https://itapi.top/api/4k?action=search&keyword=%E9%A3%8E%E6%99%AF&page=1&n=1&id=1&url=https%3A%2F%2Fitapi.top%2Fog.png", timeout=10)
print(r.json())
返回接口列表