🐍
KSoftAPI.py
  • KSoftAPI.py
  • Response Types
  • Endpoints
    • Images
    • Bans
    • Kumo
    • Music
Powered by GitBook
On this page
  • Get a random image from a Tag
  • Get a list of Tags
  • Get Image by ID
  • Get a random Meme
  • Get a random WikiHow article
  • Get a random cute picture
  • Get a random NSFW picture
  • Gets a random image from subreddit

Was this helpful?

  1. Endpoints

Images

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

PreviousResponse TypesNextBans

Last updated 4 years ago

Was this helpful?

Get a random image from a Tag

await ksoft.images.random_image(tag, nsfw)

Parameters

Type

tag

str

nsfw

bool

Success: Returns an

Not Found: Raises NoResults

await ksoft.images.random_image('hug', False)

Get a list of Tags

await ksoft.images.tags()

Success: Returns a

Get Image by ID

await ksoft.images.get_image(snowflake)

Parameter

Type

snowflake

str

Success: Returns an

Not Found: Raises NoResults

await ksoft.images.get_image('i-145ns2xv-32')

Get a random Meme

await ksoft.images.random_meme()

Get a random WikiHow article

await ksoft.images.random_wikihow()

Get a random cute picture

await ksoft.images.random_aww()

Get a random NSFW picture

await ksoft.images.random_nsfw()

Gets a random image from subreddit

await ksoft.images.random_reddit(subreddit, remove_nsfw, span, 

Parameter

Type

subreddit

str

remove_nsfw

bool

span

str

Invalid span: Raises BadArgument

Not Found: Raises NoResults

await ksoft.images.random_reddit('dankmemes', True, 'week')

Success: Returns a

Success: Returns a

Success: Returns a

Success: Returns a

Success: Returns a

Image
TagCollection
Image
RedditImage
WikiHowImage
RedditImage
RedditImage
RedditImage