Skip to content

Filter Reference

This is the canonical reference for every filter. Guides such as Filtering wallpapers link here rather than repeating the tables.

Filters apply to the retrieval endpoints:

  • GET /api/wallpapers
  • GET /api/wallpapers/random
  • GET /api/wallpapers/random/image
  • GET /api/wallpapers/random/thumbnail
ParameterTypeAccepted valuesNotes
brightnessstringlight, dark, mediumMatches the analysed brightness category
aspect_ratiostring16:9, 4:3, ultrawide, square, portrait, customMatches the analysed aspect-ratio category
orientationstringlandscape, portrait, squareMatches the analysed orientation
dominant_huestringred, green, blue, warm, cool, neutralMatches the analysed dominant colour
formatstringjpg, jpeg, png, webpMatched case-insensitively against the file extension
min_widthintegerpixelsKeeps images at least this wide (inclusive)
min_heightintegerpixelsKeeps images at least this tall (inclusive)
max_widthintegerpixelsKeeps images at most this wide (inclusive)
max_heightintegerpixelsKeeps images at most this tall (inclusive)
pageinteger≥ 1List pagination; defaults to 1
limitinteger1–200List page size; defaults to 50, capped at 200
  • Combination: multiple filters combine with AND — a wallpaper must satisfy all of them.
  • Empty or any: an omitted parameter, an empty value, or the literal value any disables that filter.
  • Case sensitivity: brightness, aspect_ratio, orientation and dominant_hue are matched against the stored lowercase categories. format is compared case-insensitively.
  • Numeric bounds: min_* and max_* bounds are inclusive. A wallpaper narrower than min_width or wider than max_width is excluded.
  • No matches: if no wallpaper matches, the list endpoint returns an empty list, and the random endpoints return 404.
  • URL encoding: when combining filters in a shell, quote the whole URL so & is not interpreted by the shell.
Terminal window
# Dark phone wallpaper
curl "http://localhost:8519/api/wallpapers/random/image?brightness=dark&orientation=portrait" -o out.jpg
# Light desktop wallpaper
curl "http://localhost:8519/api/wallpapers/random/image?brightness=light&orientation=landscape" -o out.jpg
# 4K landscape wallpaper
curl "http://localhost:8519/api/wallpapers/random/image?min_width=3840&min_height=2160&orientation=landscape" -o out.jpg
# Cool-toned ultrawide wallpaper
curl "http://localhost:8519/api/wallpapers/random/image?dominant_hue=cool&aspect_ratio=ultrawide" -o out.jpg
# Square PNG wallpaper
curl "http://localhost:8519/api/wallpapers/random/image?aspect_ratio=square&format=png" -o out.jpg