Get news posts
POST/news
Only the latest 10 comments
will be returned per wallpaper, if a wallpaper_id
is attached to the post.
Request
- application/json
Body
Show comments in the response
Show pickle jar wallpapers in the response
Default value: true
Show resolutions in the response
Default value: true
Show wallpaper in the response
filter_date
object
Filter one or more of the following date values: month, day, or year
Possible values: [=
, >
, >=
, <
, <=
]
Default value: =
Possible values: >= 1
and <= 12
Month value for date filter. (A value of 0 is the equivalent of null)
Possible values: >= 1
and <= 31
Day value for date filter. (A value of 0 is the equivalent of null)
Possible values: >= 1997
Year value for date filter. (A value of 0 is the equivalent of null)
filter_resolution
object
Filter wallpapers by height
Filter wallpapers by width
Possible values: [=
, >
, >=
, <
, <=
]
Default value: >=
Overrides 'operator_height' and 'operator_width'
Possible values: [=
, >
, >=
, <
, <=
]
Default value: >=
Defaults to 'operator' value
Possible values: [=
, >
, >=
, <
, <=
]
Default value: >=
Defaults to 'operator' value
Possible values: >= 1
and <= 50
Default value: 10
Number of results to provide per page
Possible values: >= 1
Default value: 1
Page number of the limit
Search query
Responses
- 200
- 400
- 401
Successful response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
db_core
object
The structure of all possible data include in the response. Not everything documented for db_core
will always appear.
endpoints
object
Endpoints to be used with all paths.*
values
Endpoint prefix for all paths.api
values
Endpoint prefix for all paths.image
values
Endpoint prefix for all paths.thumb
values
Endpoint prefix for all paths.web
values
request
object
The request data
Contains the data provided within the body (POST) request.
Contains the variables provided within the path/route.
Contains the data provided within the query (GET) request.
This value will appear in a pagination query to represent the maximum value for page
news
object[]
Array of news post objects
Object ID
News post content.
paths
object
Path to use with the db_core.endpoints.api
Path to use with the db_core.endpoints.web
Title of the news post.
Wallpaper ID
{
"db_core": {
"timestamp": 0,
"endpoints": {
"api": "https://api.digitalblasphemy.com/v2/core",
"image": "https://isekai.digitalblasphemy.com",
"thumb": "https://cdn.digitalblasphemy.com",
"web": "https://digitalblasphemy.com"
},
"request": {
"body": {},
"params": {},
"query": {}
},
"total_pages": 0
},
"news": [
{
"id": 0,
"content": "string",
"paths": {
"api": "/wallpaper/0",
"web": "string"
},
"timestamp": 0,
"title": "string",
"wallpaper_id": 0
}
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
Array of error message strings
{
"code": 0,
"description": "string",
"errors": [
"string"
]
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
{
"code": 0,
"description": "string"
}