GET /api/random-wallpapers
Retrieve multiple random wallpapers from WallWidgy’s Cloudinary-hosted collection. This endpoint provides more detailed metadata and supports resolution-based filtering.This endpoint uses Cloudinary as the image source and returns different metadata compared to
/api/random-wallpaper. It’s designed for applications that need high-quality wallpapers with detailed information.Query parameters
Number of random wallpapers to return. The endpoint fetches up to 500 results and randomly selects the requested count. Defaults to 1.
Filter by tag. Use
desktop for landscape-oriented wallpapers or mobile for portrait-oriented wallpapers. Tags are matched against Cloudinary resource tags.Filter by minimum resolution. Accepted values:
1080p- Minimum 1920x10801440p- Minimum 2560x14404k- Minimum 3840x21608k- Minimum 7680x4320
Response
Returns an array of wallpaper objects with detailed metadata.Cloudinary public identifier for the wallpaper
Filename of the wallpaper (extracted from public_id)
Width of the wallpaper in pixels
Height of the wallpaper in pixels
Image format (e.g.,
jpg, png, webp)ISO 8601 timestamp of when the wallpaper was uploaded to Cloudinary
Array of tags associated with the wallpaper
Array of dominant colors detected in the wallpaper
Optimized preview URL (600x400, cropped and auto-formatted)
Full-resolution download URL
Error responses
Error message describing what went wrong
Examples
Example response
Example response with multiple wallpapers
Example error response
Filtering behavior
Tag filtering
When you use thetag parameter with desktop or mobile, the endpoint:
- Fetches wallpapers with the matching tag from Cloudinary
- Additionally filters by orientation: desktop (width > height) or mobile (height > width)
- Randomly shuffles the results
- Returns the requested count
Resolution filtering
Resolution filtering is applied after tag filtering and ensures wallpapers meet minimum dimension requirements:1080p: At least 1920 pixels wide AND 1080 pixels tall1440p: At least 2560 pixels wide AND 1440 pixels tall4k: At least 3840 pixels wide AND 2160 pixels tall8k: At least 7680 pixels wide AND 4320 pixels tall