Wallpapers
All actions for the "/wallpapers" endpoint.
Create a wallpaper
POST https://api.lolwallpapers.net/beta/wallpapers
Request Body
image
string
The image to upload.
purity
number
Either "0" (SFW) or "1" (Sketchy).
artists
array
An array of artists IDs.
tags
array
An array of tags names. (3 tags at least) Maximum tags name length: 20 characters
source
string
A valid URL that leads to the source (where the wallpaper was found).
{
"status": "success",
"data": {
"id": "gqOG"
}
}{
"status": "fail",
"data": {
"image": [
"This value should not be blank."
],
"purity": [
"This value should not be blank."
],
"tags": [
"You must choose at least one children of the parent tag \"Artwork\"."
]
}
}Get a list of wallpapers
GET https://api.lolwallpapers.net/beta/wallpapers
Query Parameters
search
string
Search through all tags name (not strict).
width
number
Filter by image width.
height
number
Filter by image height.
artists
array
Filter by the passed artists IDs.
tags
array
Filter by the passed tags names.
uploaders
array
Filter by the passed users IDs.
colors
array
Filter by the passed colors (hex. format).
purity
number
Filter by the passed purity: 0 = SFW 1 = Sketchy
sort
string
Sort by: - views - downloads - created_at (default) - updated_at
order
string
Order by: - desc (default) - asc
limit
number
The amount of wallpapers to display per page. Default: 20 Minimum: 1 Maximum: 50
page
number
The page to display. Default: 1 Minimum: 1
{
"status": "success",
"data": [
{
"id": "Mja9",
"uploader": {
"id": "Q6lB",
"display_name": "Administrator"
},
"purity": 0,
"source": null,
"media": {
"filesize": 1384162,
"format": "jpeg",
"dimensions": {
"width": 1680,
"height": 1050
},
"colors": [
"9d8d64",
"372111",
"5b391b",
"d6bb74",
"dbdbd5"
],
"thumbnails": {
"small": "http://img.lolwallpapers.net/users/Q6lB/wallpapers/Mja9/small.jpeg",
"medium": "http://img.lolwallpapers.net/users/Q6lB/wallpapers/Mja9/medium.jpeg",
"large": "http://img.lolwallpapers.net/users/Q6lB/wallpapers/Mja9/large.jpeg",
"full": "http://img.lolwallpapers.net/users/Q6lB/wallpapers/Mja9/full.jpeg"
}
},
"is_published": true,
"has_liked": false,
"created_at": 1596476517,
"updated_at": 1596476517
}
]
}{ "message": "Ain't no cake like that."}Get a wallpaper
GET https://api.lolwallpapers.net/beta/wallpapers/:id
Path Parameters
id
string
The wallpaper unique ID.
Edit a wallpaper
PATCH https://api.lolwallpapers.net/beta/wallpapers/:id
Path Parameters
id
string
The wallpaper unique ID.
Request Body
purity
string
Either "0" (SFW) or "1" (Sketchy).
artists
array
An array of artists IDs (or an empty array if you want to unset all artists from this wallpaper).
tags
array
An array of tags names.
source
string
A valid URL that leads to the source (where the wallpaper was found).
Delete a wallpaper by ID
DELETE https://api.lolwallpapers.net/beta/wallpapers/:id
Path Parameters
id
string
The wallpaper ID.
Download a wallpaper
GET https://api.lolwallpapers.net/beta/wallpapers/:id/download
This will downloads the image and use the assigned tags names as filename.
Path Parameters
id
string
The wallpaper ID.
Get similar wallpapers
GET https://api.lolwallpapers.net/beta/wallpapers/:id/similar
Returns a minimum of 10 similar wallpapers.
Path Parameters
id
string
The wallpaper ID.
Like a wallpaper
POST https://api.lolwallpapers.net/beta/wallpapers/:id/download
Path Parameters
id
string
The wallpaper ID.
Last updated
Was this helpful?