Images

Random hand-picked images, random memes from reddit and other reddit parsers.

Get a random Image from a Tag

ksoft.images.random(tag, options);

Parameter

Type

tag

String

options.nsfw

Boolean

Success: Returns Image

Not found: Throws error if tag doesn't exist.

Get Tags

ksoft.images.tags();

Success: Returns Array of Tags

Get Image by ID

ksoft.images.image(id);

Parameter

Type

id

String

Success: Returns Image

Not found: Throws error if image by that id doesn't exist.

Get a random Meme

ksoft.images.meme();

Success: Returns RedditImage

Get a random WikiHow Article

ksoft.images.wikihow();

Success: Returns WikiHowImage

Get a cute picture

ksoft.images.aww();

Success: Returns RedditImage

Get an NSFW picture

ksoft.images.nsfw();

Success: Returns RedditImage

Get an image from a subreddit

ksoft.images.reddit(subreddit, options);

Parameter

Type

subreddit

String

options.span

String: "hour" | "day" | "week" | "month" | "year" | "all"

options.removeNSFW

Boolean

Last updated