Skip to main content

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

Body

    show_comments boolean

    Show comments in the response

    show_pickle_jar boolean

    Show pickle jar wallpapers in the response

    show_resolutions boolean

    Default value: true

    Show resolutions in the response

    show_wallpaper boolean

    Default value: true

    Show wallpaper in the response

    filter_date

    object

    Filter one or more of the following date values: month, day, or year

    operator string

    Possible values: [=, >, >=, <, <=]

    Default value: =

    month integer

    Possible values: >= 1 and <= 12

    Month value for date filter. (A value of 0 is the equivalent of null)

    day integer

    Possible values: >= 1 and <= 31

    Day value for date filter. (A value of 0 is the equivalent of null)

    year integer

    Possible values: >= 1997

    Year value for date filter. (A value of 0 is the equivalent of null)

    filter_resolution

    object

    height integer

    Filter wallpapers by height

    width integer

    Filter wallpapers by width

    operator string

    Possible values: [=, >, >=, <, <=]

    Default value: >=

    Overrides 'operator_height' and 'operator_width'

    operator_height string

    Possible values: [=, >, >=, <, <=]

    Default value: >=

    Defaults to 'operator' value

    operator_width string

    Possible values: [=, >, >=, <, <=]

    Default value: >=

    Defaults to 'operator' value

    limit integer

    Possible values: >= 1 and <= 50

    Default value: 10

    Number of results to provide per page

    page integer

    Possible values: >= 1

    Default value: 1

    Page number of the limit

    s string

    Search query

Responses

Successful response

Schema

    db_core

    object

    The structure of all possible data include in the response. Not everything documented for db_core will always appear.

    timestamp integer

    endpoints

    object

    Endpoints to be used with all paths.* values

    api string

    Endpoint prefix for all paths.api values

    image string

    Endpoint prefix for all paths.image values

    thumb string

    Endpoint prefix for all paths.thumb values

    web string

    Endpoint prefix for all paths.web values

    request

    object

    The request data

    body object

    Contains the data provided within the body (POST) request.

    params object

    Contains the variables provided within the path/route.

    query object

    Contains the data provided within the query (GET) request.

    total_pages integer

    This value will appear in a pagination query to represent the maximum value for page

    news

    object[]

    Array of news post objects

  • Array [

  • id integer

    Object ID

    content string

    News post content.

    paths

    object

    api string

    Path to use with the db_core.endpoints.api

    web string

    Path to use with the db_core.endpoints.web

    timestamp integer
    title string

    Title of the news post.

    wallpaper_id integernullable

    Wallpaper ID

  • ]

Loading...