API Overview
The Wallpaper Server API is a plain HTTP API served from the same address as the
browser gallery. There is no separate API host and no versioned path prefix —
all endpoints live under /api/.
Base URL
Section titled “Base URL”http://<host>:<port>/apiWith the defaults, that is http://localhost:8519/api.
Two kinds of endpoints
Section titled “Two kinds of endpoints”The API has two distinct families:
- Direct image endpoints return the raw image bytes. The
Content-Typeis the image’s own type (for exampleimage/jpeg) and the body must not be parsed as JSON. These are what automation tools use. - Metadata endpoints return JSON describing wallpapers — dimensions, analysis results, URLs and pagination.
Direct image flow: request image → save or set wallpaperMetadata flow: request metadata → parse JSON → request imageThe direct-image flow is the reason the project exists: one URL gives you a usable wallpaper without a second round trip.
Filtering
Section titled “Filtering”Most retrieval endpoints accept the same set of filter query parameters (brightness, dimensions, aspect ratio, orientation, dominant colour and format). Filters combine with AND. See the Filter Reference.
Resource IDs
Section titled “Resource IDs”Each wallpaper has a stable id. Use it with /api/wallpapers/{id},
/api/wallpapers/{id}/image, /api/wallpapers/{id}/thumbnail and
DELETE /api/wallpapers/{id}.
Uploads and management
Section titled “Uploads and management”POST /api/uploadaccepts a multipart image upload.DELETE /api/wallpapers/{id}removes a wallpaper.POST /api/refreshrescans the configured folders.GET/PUT /api/settingsread and update configuration.
Authentication and exposure
Section titled “Authentication and exposure”Errors
Section titled “Errors”Errors are returned as plain-text bodies with an appropriate HTTP status code, not JSON. There are no machine-readable error codes. See Errors.