- 1
-
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
/api/v1/wallpapersEvery wallpaper, newest first. Returns { count, wallpapers }.
- format
phone,desktop,ultrawideorsuperwide. Leave it out for all.ultrawideincludes superwide, andsuperwideis 3:1 or wider.- sort
newest,oldest,hue,likesordownloads.huegoes around the color wheel from red.
/api/v1/wallpapers/{id}One wallpaper. The id is its filename without the extension, like aug142026-2.
/api/v1/latestThe 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.
/api/v1/worksTitled pieces that have their own page, newest first. Returns { count, works }.
- color
- a color like
purple(includes all its shades) or a shade likeviolet. - tag
- a tag like
abstract. - format
- only works with an image in that shape, and only those images.
/api/v1/works/{id}One work, by its slug (aurora-reprise) or number (HUE-0001).
/api/v1/collectionsPublic collections. Returns { count, collections }.
/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,superwideor null- media
image, orvideoinside 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-DDand 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_aftersays how many seconds to wait
- 1
-
2
Try it
-
All channels
/api/v1/tv/channels -
Your channel
/api/v1/tv/me
-
Endpoints
- URL
https://perfecthue.com/api/v1- Key
- Header
Authorization: Bearer YOUR_API_KEY
curl -X PUT \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ --data @channel.json \ https://perfecthue.com/api/v1/tv/me
/api/v1/tv/channelsEvery channel with videos on it, busiest first. Returns { count, channels }.
/api/v1/tv/channels/{slug}One channel and its schedule. The slug is the end of the channel’s address, like cooking-channel. Returns { channel, schedule }.
- timezone
- like
America/New_York. Default UTC.
/api/v1/tv/meYour channel and its schedule. Both null when you don’t have one.
- timezone
- as above.
- channel
- slug or id of one of your channels. Default your first.
/api/v1/tv/meSend a channel file as the body. Replaces your channel’s videos, and makes a channel if you don’t have one. Returns { channel, added, removed, filled, warnings, schedule }. filled is seconds.
- channel
- as above.
/api/v1/tv/checkSend a channel file as the body. Shows what it would put on, without saving. Returns { videos, filled, warnings, schedule }.
Fields
Each channel
- id
- never changes
- slug
- changes when the channel is renamed
- name / description
- description may be null
- url
- channel page
- owner
- name
- collaborative
- anyone signed in can add videos
- banner / logo
- image links, or null
- videos
- on the schedule, live shows included
- watching
- people on the page now
- on_now
{ title, live, youtube }(twitchinstead ofyoutubefor Twitch), or null for dead air- created
- ISO 8601, UTC
Channel file
A whole day of your channel as JSON. Import it from your channel’s ⋯ menu, or send it to PUT /api/v1/tv/me.
{
"timezone": "America/New_York",
"repeat": true,
"schedule": [
{ "at": "18:00", "video": "https://youtu.be/XXXXXXXXXXX" },
{ "video": "https://youtu.be/YYYYYYYYYYY", "length": "12:30" },
{ "at": "20:00", "playlist": "https://www.youtube.com/playlist?list=PL…", "until": "23:00", "order": "shuffle" }
]
}
Fields
- timezone
- for every time in the file, like
Europe/London. Default UTC - repeat
trueplays the list again, back to back, until the day is full- schedule
- the items, in order
- video
- a YouTube link or id, or a Twitch video or clip link
- playlist
- a YouTube playlist link or id
- at
- pins the start,
"18:30"or"6:30 pm" - day
- starts a day of the week,
"Mon"or"Monday". Makes the channel loop a week - length
- plays only this much: seconds,
"12:30"or"1:02:00" - until
- playlist only: stop filling at this time
- count
- playlist only: at most this many videos
- order
- playlist only:
playlist,shuffleornewest - title
- ignored. Download schedule adds it so the file reads well
How it plays
- Items play back to back from midnight, or from the first item’s
at. Later times count on from there, so"02:00"after"18:00"is the next morning. - A gap before an
atis dead air. A video that runs past the nextatis cut short. - A playlist fills until its
until, the nextator the end of the day, skipping videos too long for what’s left. - Videos up to 60 minutes, 400 a day (2,800 for a week), 3 playlists per file.
- Videos that can’t play or don’t fit are skipped and listed in
warnings. - Importing replaces your videos. Live shows and premieres stay.
- With
day, each day plays like a file of its own. A file without days on a channel that loops a week goes on every day. - Channels run on UTC, so after a clock change local times move by an hour.
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.
Checks and replaces (PUT /api/v1/tv/me and POST /api/v1/tv/check) share 20 an hour with Import. Send the key in the header for these, not ?key=.
Errors
- 400
- Something in the request is wrong
- 401
- Missing or wrong key
- 403
- Blocked or muted
- 404
- Not found
- 405
- Wrong method
- 413
- Channel file too big
- 422
- Channel file can’t be used.
errorsays why - 429
- Too many requests.
retry_aftersays how many seconds to wait