A simple JSON API to fetch wallpapers and categories from ArtPexels.
{}
All responses are returned as JSON.
| Method | Path | Use |
|---|---|---|
| GET | /wallpapers | List + search + filters (category/orientation) |
| GET | /categories | All categories |
List wallpapers with pagination, sorting, and filters.
GET https://artpexels.com/api/wallpapers?page=1&limit=20
curl "https://artpexels.com/api/wallpapers?sort=popular&page=1&limit=20"
GET https://artpexels.com/api/wallpapers?limit=all
Use the orientation query parameter.
https://artpexels.com/api/wallpapers?orientation=landscape
https://artpexels.com/api/wallpapers?orientation=portrait
https://artpexels.com/api/wallpapers?orientation=square
Filter by category and optional subCategory.
https://artpexels.com/api/wallpapers?category=Nature&page=1&limit=20
https://artpexels.com/api/wallpapers?category=Nature&orientation=landscape
List all categories.
https://artpexels.com/api/categories
On failure, the response will contain success: false.
| Status | Meaning |
|---|---|
| 200 | Success |
| 500 | Server error |