API

https://the-sauna.icu/prandom/?api=
________________________


Valid endpoints:

  • nochars - returns a random digits only RUD *
  • coin - returns a coinflip result *
  • info - returns info about a request *
  • poem - returns a random ""poem"" (64 words) '
  • color - returns a random color (hex(default), &rgba, &hsla) *
  • wallpaper - returns a random wallpaper

  • * Means that endpoint has &json as an option


Ratelimiting

If you get ratelimited you'll get a response akin to this;

                    
                            {
                            "ratelimited": true,
                            "left": 12,
                            "ip": "1.2.3.4"
                            }
                    
                

"Security"

Obviously this is a bad source of randomness, and you should not use this for anything that requires anything cryptographically secure (passwords, etc).

Why?

Wanted to get something that'd be standardized (cough) and CURL-able.

There is no reason to use this over your own implementation of course, but it's a nice larp :)


timestamp: Mon, 20 Mar 2023 12:52:34 +0000 [9421110193448383]
page generated in 12.356996536255 ms
total api requests: 16186