Wallhaven API
Overview
Wallhaven is a curated wallpaper community, and its API lets you search and browse its large collection of high-resolution wallpapers by keyword, category, and resolution. Public wallpapers can be accessed without an API key, while an API key unlocks NSFW and personal favorites. It is a great API for building custom wallpaper apps or desktop clients.
Beginner Tip
Start with the /search endpoint without an API key to browse SFW wallpapers immediately — authentication is only needed to access adult-rated content or your personal account data.
Available Data
Example Response
{
"id": "Dwu85P9SOIk",
"urls": {
"full": "https://images.unsplash.com/photo-...",
"regular": "https://images.unsplash.com/photo-...?w=1080",
"thumb": "https://images.unsplash.com/photo-...?w=200"
},
"width": 4000,
"height": 3000,
"user": {
"name": "John Doe",
"username": "johndoe"
}
} Field Reference
data[].id Unique identifier for the wallpaper on Wallhaven. data[].url URL to the wallpaper detail page on the Wallhaven website. data[].path Direct URL to download the full-resolution wallpaper image file. data[].resolution Image resolution in WxH format, such as 1920x1080 or 3840x2160. data[].colors List of dominant hex color codes extracted from the wallpaper image. Implementation Example
// ⚠️ Note: This URL may be a documentation page. Check official docs for actual API endpoint.
const url = "https://wallhaven.cc/help/api";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
API Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →APITemplate.io
APITemplate.io lets you generate images and PDFs on the fly by filling data into pre-designed templates.
Bruzu
⚠ UnavailableBruzu provides programmatic access to image generation with query string via REST API.
CheetahO
CheetahO is an image optimization API that compresses and resizes photos without visible quality loss.
Dagpi
⭐ Beginner's PickDagpi is a free image manipulation API that applies filters, effects, and fun transformations to images with a single HTTP request.
Duply
⚠ UnavailableDuply provides programmatic access to generate, edit, scale and manage images and videos smarter & faster via REST API.