使用指南与开发者文档 Guide & Developer Docs

壁纸设置 & 开发者接口

Wallpaper & Developer API

把喜欢的图片轻松设为电脑、手机或平板壁纸;也可以通过免费 API 把它引用到你的项目中。

Set any image as your desktop, phone or tablet wallpaper; or embed it via our free API.

把喜欢的图片设成壁纸

Set a Favorite Image as Wallpaper

电脑、手机、平板都适用,大约 10 秒即可完成。

Works on desktop, phone and tablet — takes about 10 seconds.

返回素材列表 Back to List

电脑

Desktop

  1. 在素材列表里换到喜欢的一张,也可以按 190- 快速换图。 Switch to the image you like in the list, or press 19, 0, - to shuffle.
  2. 把鼠标移到图片上,点右键 → 「图片另存为 / Save Image As」,保存到「图片 / Pictures」文件夹。 Hover the image, right-click → “Save Image As…”, and save it to your Pictures folder.
  3. Windows:右键桌面 → 个性化 → 背景 → 浏览照片,选中刚保存的图片即可。 Windows: Right-click the desktop → Personalize → Background → Browse photos, then pick the file.
  4. macOS:系统设置 → 墙纸 → 添加照片,选中刚保存的图片即可。 macOS: System Settings → Wallpaper → Add Photo, then pick the file.
  5. 小技巧:把图片拖到桌面,再右键桌面选择「设置壁纸」也能一步完成。 Tip: drag the image to your desktop, then right-click the desktop and choose “Set as wallpaper”.

手机

Phone

  1. 在素材列表里换到喜欢的一张。 Switch to the image you like in the list.
  2. 长按图片 → 「保存图片 / 存储到相册」,图片会进入系统相册。 Long-press the image → “Save Image”, and it goes to your photo library.
  3. 打开「相册 / 照片」App,找到刚刚保存的那张图。 Open the Photos / Gallery app and find the image you just saved.
  4. 点「分享 / 更多」→「设为壁纸 / 用作墙纸」。 Tap “Share / More” → “Set as wallpaper”.
  5. 选择设为「锁屏」「主屏幕」或「同时设置」,确认即可。 Choose Lock Screen, Home Screen or Both, then confirm.

平板

Tablet

  1. 换到喜欢的一张,长按图片保存到相册。 Switch to the image you like, then long-press to save it.
  2. iPad:设置 → 墙纸 → 添加新墙纸 → 照片,选中该图后点「添加」。 iPad: Settings → Wallpaper → Add New Wallpaper → Photos, pick the image and tap Add.
  3. Android 平板:长按桌面空白处 → 壁纸 → 从相册选择。 Android tablet: Long-press an empty area of the home screen → Wallpaper → Choose from Gallery.
  4. 建议:平板多为横向使用,选风景、车模这类横向构图的图片效果更好。 Tip: tablets are usually used in landscape, so wide shots (Scenery, Car Model) look best.

开发者接口

Developer API

一个 GET 请求拿一张随机图,无需密钥,直接可用。

One GET request returns one random image. No API key required.

ENDPOINT GET https://www.sjimg.com/tp/{key}
  • 请求方式:GET,支持浏览器直接访问与跨域引用。 Method: GET, works in the browser and cross-origin.
  • 返回内容:图片二进制流(JPEG / PNG / WebP),可直接用于 <img> 或 CSS 背景。 Response: raw image bytes (JPEG / PNG / WebP), usable in <img> or CSS.
  • 输出格式:默认返回图片二进制流;添加 ?output=json 可获取 JSON 数据,包含图片地址与元信息。 Output format: returns raw image by default; add ?output=json to get JSON with image URL and metadata.
  • 鉴权:无需密钥,匿名即可调用,但请勿高频轮询。 Auth: none required; please avoid high-frequency polling.
  • 缓存:每次请求随机返回一张;加 ?_=时间戳 可绕过浏览器缓存。 Cache: a random image per request; append ?_=timestamp to bypass cache.
  • 响应时间:视图片体积而定,建议加 loading 占位与超时处理。 Latency: depends on file size; add a loading placeholder and timeout.
  • 用途限制:仅供学习交流,商业使用请先取得作者授权。 Usage: for learning and exchange only; commercial use requires permission.
分类 Category Key 示例地址 Example
美女Beauty mn /tp/mn
风景Scenery fj /tp/fj
车模Car Model cm /tp/cm
瑜伽Yoga yj /tp/yj
季节Season jj /tp/jj
动物Animal dw /tp/dw
动漫Anime dm /tp/dm
历史History ls /tp/ls
励志Motivation lz /tp/lz
美食Food ms /tp/ms
其他Others qt /tp/qt
HTML
<!-- 每次刷新页面都会换一张 -->
<img src="https://www.sjimg.com/tp/fj"
     alt="随机风景"
     loading="lazy">
CSS
.hero {
  background-image: url("https://www.sjimg.com/tp/fj");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
JavaScript
const BASE = 'https://www.sjimg.com/tp/';

// 换一张:key 见上方分类表
function roll(key = 'fj') {
  const img = document.getElementById('pic');
  img.src = BASE + key + '?_=' + Date.now();
}

// 绑定按钮
document.querySelector('#roll')
  .addEventListener('click', () => roll('fj'));
Markdown
<!-- 论坛 / 笔记里直接插入 -->

![随机风景](https://www.sjimg.com/tp/fj)

![随机车模](https://www.sjimg.com/tp/cm)
JSON (output=json)
{
  "success": true,
  "type": "mn",
  "deviceType": "desktop",
  "data": {
    "img": "https://www.sjimg.com/1024x1468/Image_12345.jpg",
    "title": "无标题",
    "copyright": "无,中国 (© A/B Images)",
    "date": "20260917",
    "desc": "暂无描述",
    "urlbase": "Image",
    "type": "JPG"
  }
}

友情提醒:请不要高频轮询或批量抓取接口,以免给服务器带来压力; 引用时请注明来源「世界图库 World Gallery」,并遵守 《版权协议》

Friendly reminder: please do not poll or scrape this endpoint aggressively. When embedding, credit “World Gallery” and follow our Terms of Service.