This API provides access to the wallpaper images in the /wp
folder.
Returns an array of all image IDs.
[
"image1.jpg",
"image2.png",
...
]
Returns information about a specific image by ID.
Name | Type | Description |
---|---|---|
id | string | The ID of the image (filename) |
{
"id": "image1.jpg",
"path": "wp/image1.jpg",
"type": "jpg"
}
Redirects to the actual image file.
Name | Type | Description |
---|---|---|
id | string | The ID of the image (filename) |
Returns detailed information about all images, including Google Drive paths and thumbnails.
[
{
"id": "005TN27O78.png",
"path": "https://drive.google.com/uc?export=view&id=19jXH2CaqFYWF0yfStTxFKHSnRBVKPRbI",
"type": "png",
"source": "google-drive",
"driveFileId": "19jXH2CaqFYWF0yfStTxFKHSnRBVKPRbI",
"localPath": "wp/005TN27O78.png",
"thumbnailUrl": "https://drive.google.com/thumbnail?id=19jXH2CaqFYWF0yfStTxFKHSnRBVKPRbI&sz=w2000"
},
...
]
Here's an example of how to use the API with JavaScript:
// Get all image IDs
fetch('/api/images.json')
.then(response => response.json())
.then(images => console.log(images));
// Get a specific image by ID
fetch('/api/images/image1.jpg.json')
.then(response => response.json())
.then(imageData => console.log(imageData));
// Get a random image
fetch('/api/random/index.html')
.then(response => response.json())
.then(randomImage => console.log(randomImage));
// Get detailed information about all images
fetch('/api/images-data.json')
.then(response => response.json())
.then(imagesData => console.log(imagesData));