Public APIs
Wallhaven favicon

Wallhaven

Photography

Wallpapers.

Wallhaven's website screenshot

About Wallhaven

Wallhaven provides a REST API (v1) offering GET access to its wallpaper platform via URL-based requests. It supports retrieving individual wallpaper details by ID, including metadata such as resolution, file size, file type, category, purity rating, colors, tags, and thumbnail/full-size image URLs.

The API includes a search and listing endpoint supporting the same parameters as the site's web search: tag-based queries (fuzzy, exact, exclude, combined), filtering by category, purity, resolution, aspect ratio, and color, plus sorting by date added, relevance, random, views, favorites, or toplist ranking. Results are paginated at 24 per page, and random sorts can use a seed to avoid repeats across pages. Additional endpoints cover tag information lookup, authenticated user settings retrieval, and browsing a user's wallpaper collections (public collections for any user, or private collections for the authenticated user).

Access to NSFW content and to a user's personal settings or private collections requires an API key generated from account settings, which can be regenerated at any time. The API is intended for developers building applications or integrations that need programmatic access to Wallhaven's wallpaper search, metadata, and user collection data.

Key features

  • Retrieve detailed wallpaper metadata (resolution, colors, tags, file info) by ID
  • Search and filter wallpapers by tags, category, purity, resolution, ratio, and color
  • Sort results by relevance, date added, views, favorites, toplist, or random
  • Access tag information by tag ID
  • Read a user's account settings via API key
  • List and view a user's public or private wallpaper collections

Frequently asked questions

Does the API require authentication?

Basic search and wallpaper info requests work without a key, but an API key from account settings is needed to access NSFW content, user settings, and private collections.

What data formats does the API return?

The API returns JSON data via GET requests over URLs, such as wallpaper metadata, search listings with pagination, tag info, user settings, and collections.

Is there a limit on search results per page?

Yes, search listings are limited to 24 results per page, with pagination metadata included in each response.

Can I filter searches by image color?

Yes, the search API supports filtering wallpapers by specific hex color values.

Who is this API for?

It is for developers who want to programmatically search, retrieve, and browse wallpapers, tags, and user collections from wallhaven.cc.

Advertise here

Featured products

  • SerpApi - Search API favicon
  • Screenshot Scout favicon
  • TalorData favicon
  • CoreClaw favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product