ksoft.js
  • KSoft.js
  • Response Types
  • Endpoints
    • Images
    • Bans
    • Kumo
    • Music
Powered by GitBook
On this page
  • Get a random Image from a Tag
  • Get Tags
  • Get Image by ID
  • Get a random Meme
  • Get a random WikiHow Article
  • Get a cute picture
  • Get an NSFW picture
  • Get an image from a subreddit
  1. Endpoints

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.

ksoft.images.random('birb', { nsfw: false });

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.

ksoft.images.image('i-hcz0h5bg-33');

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

ksoft.images.reddit('dankmemes', { removeNSFW: true, span: 'week' });
PreviousResponse TypesNextBans

Last updated 5 years ago