PurrBotAPI - An image-api for everyone!

This API was first created, to generate images that look like Discord messages from users.
It was (and still is) used by *Purr*.

This API requires you to provide your values through JSON and with a POST request.

Below can you find the base-url (the one you're currently on) that is used.

Base-URL:

Important

POST /quote

Generates a image, that aims to look like a message from Discord.

Info
Returns image on success.

Parameters

Field Description Default
avatar The URL of the Avatar https://i.imgur.com/63aniDJ.png
color Name color. Either hex:rrggbb, rgb:r,g,b or the raw color (integer) as String hex:ffffff
format time format. Example: dd. MMM yyyy dd. MMM yyyy hh:mm:ss zzz
name The username to display Someone
text The actual message to display. Just some string
time Time in epoch-millis System.currentTimeMillis()

Example JSON

{ "avatar": "https://cdn.discordapp.com/avatars/204232208049766400/ae7f2e5247a05791dbf0ef96243622c2.png", "color": "hex:ff0000", "format": "dd. MMM yyyy", "name": "Andre_601", "text": "This is an example.", "time": "" // Uses default value (Current time) }

POST /status

Generates a avatar containing a status-icon (The dot, that can be green, yellow, red or grey).

Info
Returns image on success.

Parameters

Field Description Default
avatar The URL of the Avatar https://i.imgur.com/63aniDJ.png
status Status for the icon (online, idle, do_not_disturb, dnd or offline) offline

Example JSON

{ "avatar": "https://cdn.discordapp.com/avatars/204232208049766400/ae7f2e5247a05791dbf0ef96243622c2.png", "status": "online" }

GET /img/:(n)sfw/:category/:type

Loads a random image, depending on what path you selected.

Info
Returns JSON with the image link on success.

Link-parameters

Parameters Options Description
:(n)sfw nsfw, sfw Access either SFW (Safe for work) or NSFW (Not safe for work) images.
:category SFW: cuddle, holo, hug, kiss, kitsune, lick, neko, pat, poke, slap, tickle
NSFW: blowjob, fuck, lesbian, neko, yuri
The category from where you should get images.
:type gif, img If you want to receive either gifs or images.
All categories except holo and kitsune have the gif option, but neko (nsfw and sfw) also has img

Related Links


Discord

Github

Source Code

Main Site

Provided under the MIT license.