this-is-bad-api
API wrapper for this-is-a-bad.site
Documentation can be found here or you can read this
How can I get API key?
- Go to this-is-a-bad.site
- Register
- Click "viev your key" on top of the screen, this will be your token for all APIs
Examples
- Getting random meme
const api = ;const BadAPI = 'YOUR TOKEN'; console;
- Getting random cute image
const api = ;const BadAPI = 'YOUR TOKEN'; console;
- Getting random gif
const api = ;const BadAPI = 'YOUR TOKEN'; console;
- Getting random wallpaper
const api = ;const BadAPI = 'YOUR TOKEN'; console;
Responses should look something like that:
_id_
is image ID assigned on this-is-a-bad.site, no need to care about that :)
title
is image title, like "Waterfall" for example.
url
is direct link to the image
Documentation
'YOUR TOKEN';
This generates new BadAPI object that allows you to use API.
BadAPI;
Gets random meme, expected response:
BadAPI;
Gets random cute image, expected response:
BadAPI;
Gets random wallpaper, expected response:
BadAPI;
Gets random GIF, expected response: