GET /api/wallpapers/search
Search for wallpapers using text-based queries. This endpoint allows you to find wallpapers by searching through their metadata, tags, and descriptions.Planned features
When implemented, this endpoint will support:Query parameters
Search query string. Will search through wallpaper names, tags, categories, and descriptions.
Filter search results by device type (
desktop or mobile)Filter search results by category
Maximum number of results to return
Number of results to skip (for pagination)
Expected response format
Array of matching wallpapers
Unique identifier for the wallpaper
Name of the wallpaper
URL to the wallpaper image
Category the wallpaper belongs to
Tags associated with the wallpaper
Relevance score (0-1) indicating how well the wallpaper matches the query
Total number of results matching the query
Maximum number of results per page
Current offset in the result set
Alternative endpoints
Until search is implemented, you can use these alternative approaches:Filter by category
Use the /api/wallpapers endpoint with thecategory parameter:
Filter by color
Use the /api/wallpapers endpoint with thecolor parameter:
Combine filters
Combine multiple filters to narrow down results:Example usage (planned)
Once implemented, you’ll be able to search like this:Example response (planned)
Implementation status
The search endpoint route file exists at/api/wallpapers/search/route.ts but is currently empty. We’re working on implementing comprehensive search functionality that will include:
- Full-text search across wallpaper metadata
- Fuzzy matching for typo tolerance
- Relevance scoring
- Search result ranking
- Search suggestions and autocomplete
- Advanced filtering and sorting options