About


Hi there, what's up?


So, this is my extraordinarily mediocrecrap site. There's really not anything here but the random image on the Home page.

And even that is not my own doing, really. It's fetched by calling the API of Danbooru or Gelbooru, so yeah...

Here's a sample or two if you're interested:


Danbooru:

GET https://danbooru.donmai.us/posts.json?tags=megumin+rating:safe&limit=1&random=true


Gelbooru:

// Gelbooru doesn't have a convenient random parameter, as far as I know, but it does work to do a two-round query.

// 1) Do a GET and parse the 'count' attribute, and then random(1, count)-1.
GET https://gelbooru.com/index.php?page=dapi&s=post&q=index&tags=megumin+rating:safe&limit=0

// 2) Do a GET with the 'pid' argument set to the resulting random value.
GET https://gelbooru.com/index.php?page=dapi&s=post&q=index&tags=megumin+rating:safe&limit=1&pid=RAND