Perfect Hue

API

  1. 1

    Get a key

    Sign in
  2. 2

    Try it

    • Newest wallpaper/api/v1/latest
    • Phone wallpapers/api/v1/wallpapers?format=phone
    • Blue works/api/v1/works?color=blue
    • Collections/api/v1/collections
Endpoints
URL
https://perfecthue.com/api/v1
Key
Header Authorization: Bearer YOUR_API_KEY
curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://perfecthue.com/api/v1/latest?format=phone
GET/api/v1/wallpapers

Every wallpaper, newest first. Returns { count, wallpapers }.

format
phone, desktop, ultrawide or superwide. Leave it out for all. ultrawide includes superwide, and superwide is 3:1 or wider.
sort
newest, oldest, hue, likes or downloads. hue goes around the color wheel from red.
GET/api/v1/wallpapers/{id}

One wallpaper. The id is its filename without the extension, like aug142026-2.

GET/api/v1/latest

The newest wallpaper, plus requested (the format you asked for) and fallback (true when nothing exists in that format, so you get the newest of any shape).

format
as above. Default desktop.
GET/api/v1/works

Titled pieces that have their own page, newest first. Returns { count, works }.

color
a color like purple (includes all its shades) or a shade like violet.
tag
a tag like abstract.
format
only works with an image in that shape, and only those images.
GET/api/v1/works/{id}

One work, by its slug (aurora-reprise) or number (HUE-0001).

GET/api/v1/collections

Public collections. Returns { count, collections }.

GET/api/v1/collections/{id}

One collection. works lists { id, title, url, thumb } in order.

Fields

Each wallpaper

id
filename without the extension
filename
the original file
url
the full image, or the video file for a work’s video
thumb / thumb_mid
640px and 1280px WebP previews
width / height
pixels, or null
format
phone, desktop, ultrawide, superwide or null
media
image, or video inside a work
hue / hex
its color as 0–360 and a hex code, or null
likes / downloads
counts
hue_no
HUE-0001, or null
work
{ id, title, url } of its work, or null
date / created
YYYY-MM-DD and an ISO 8601 time

Each work

id / title
slug and name
catalog_no
HUE-0001, or a range when its sizes are numbered in a row
url
its page
thumb / thumb_mid
cover image
description
or null
colors / shades / tags
lists of slugs
variant_of / variants
related pieces
stream_url
livestream links, or null
likes / downloads
totals across its files
files
its wallpapers, plus a video when it has one
date
YYYY-MM-DD
Limits and errors

Each key gets 60 requests a minute and 2,000 a day. Past that you get 429 with retry_after, the seconds to wait.

Errors

400
Something in the request is wrong
401
Missing or wrong key
404
Not found
405
Wrong method
429
Too many requests. retry_after says how many seconds to wait