konachan(k站)是一个可以搜索动漫壁纸的网站,二次元超清图片下载站,包含动漫同人图和游戏内图, 站点是https://konachan.com、https://konachan.net,大概区别是com站R18级别,net站面向 大众(但可能也有漏网之鱼)。
主界面外观如图:
k站图片来源于用户分享上传,其特点是可以根据标签搜索每张图,标签包括:类型(General,橙色)作者/艺术家(Artist,黄色),版权/作品(Copyright 紫色),角色/人物(Character,绿色),风格(Style,红色),社团(Circle,蓝色)
k站提供api接口,基本上能完成所有操作,依据post接口的tags参数可以随机获取一张图片JSON数据。
返回描述
[
{
"id": 114081,
"tags": "ada_vessalius alice_(pandora_hearts) eliot_nightray gilbert_nightray jack_vessalius liam_lunettes oz_vessalius pandora_hearts vincent_nightray xerxes_break",
"created_at": 1315203004,
"creator_id": 17376,
"author": "Maboroshi",
"change": 363088,
"source": "",
"score": 29,
"md5": "19d067629808e86428347eb7ce76c0f1",
"file_size": 1412200,
"file_url": "https://konachan.net/image/19d067629808e86428347eb7ce76c0f1/Konachan.com%20-%20114081%20ada_vessalius%20eliot_nightray%20gilbert_nightray%20jack_vessalius%20liam_lunettes%20oz_vessalius%20pandora_hearts%20vincent_nightray%20xerxes_break.jpg",
"is_shown_in_index": true,
"preview_url": "https://konachan.net/data/preview/19/d0/19d067629808e86428347eb7ce76c0f1.jpg",
"preview_width": 150,
"preview_height": 94,
"actual_preview_width": 300,
"actual_preview_height": 188,
"sample_url": "https://konachan.net/sample/19d067629808e86428347eb7ce76c0f1/Konachan.com%20-%20114081%20sample.jpg",
"sample_width": 1500,
"sample_height": 938,
"sample_file_size": 2010106,
"jpeg_url": "https://konachan.net/image/19d067629808e86428347eb7ce76c0f1/Konachan.com%20-%20114081%20ada_vessalius%20eliot_nightray%20gilbert_nightray%20jack_vessalius%20liam_lunettes%20oz_vessalius%20pandora_hearts%20vincent_nightray%20xerxes_break.jpg",
"jpeg_width": 2560,
"jpeg_height": 1600,
"jpeg_file_size": 0,
"rating": "s",
"has_children": false,
"parent_id": null,
"status": "active",
"width": 2560,
"height": 1600,
"is_held": false,
"frames_pending_string": "",
"frames_pending": [],
"frames_string": "",
"frames": []
}
]
开放接口
https://open.saintic.com/OpenApi#K站随机动漫壁纸
参照以前的必应今日美图写的接口分享出来,可以用在pc背景图。
必应今日美图缓存24h,而这个地址本来是完全随机的,但这样会很慢,所以默认会缓存1h,1h之内 重新请求接口会立即返回壁纸地址,除非使用参数指定不缓存。
参数:
- noCache: 默认false,如果值为true、1、on等,表示不缓存,则请求会回源,每次都获取新壁纸
此时动漫壁纸