API Documentation

API Documentation


Simple Password Generator

The simple password generator is a simple little service that generates useable and user friendly passwords. Well, that’s it really!

You can call the password via the API via a GET request as follows

https://api.lazytools.org/get/password


Dad Jokes

If like me you love a good Dad Joke then you're in luck!

One of our API functions is to serve dad jokes!

There are two methods of calling the dad jokes

Random:

https://api.lazytools.org/get/dad/random

{
"id": "28",
"joke": "What was a more important invention than the first telephone? The second one."
}

GET

https://api.lazytools.org/get/dad/id/28

The method is really simple, as you see above will produce the same joke as the random one.


Watch out here comes Chuck!

One of my favorite API's is the Chuck Norris joke API!

There are two methods of calling the Chuck jokes

Random:

https://api.lazytools.org/get/chuck/random

{
"id": "1371",
"joke": "Chuck Norris can login without signing up, on any website."
}

GET

https://api.lazytools.org/get/chuck/id/1271

The method is really simple, as you see above will produce the same joke as the random one.


Max is looking at youFrankly I don't trust people who don't like cats!

{
"fact": "The first cat in space was French. She was named Felicette, or \"Astrocat.\" She survived the trip.",
"image": "https://lazytools.io/img/cats/GyxCBzsk.jpeg"
}

The cats API is random and works as follows:

https://api.lazytools.org/get/cats/random


Who doesn't love a fun fortune cookie?

The Fortune Cookie API is called in two ways:

Random:

https://api.lazytools.org/get/fortune/random

{
"id": "6",
"fortune": "The man who has no imagination has no wings."
}

To get a fortune by ID

https://api.lazytools.org/get/fortune/id/6


The placeholder image API allows you to generate temporary placeholder images when you need them. You specify width, height and if you like colour and text overly content.

You can call the api as follows:

https://api.lazytools.org/image/?size=<width>x<height>

There are optional parameters we can use for this:

bg: Changes the background color in hex values

color: Changes the colour of the text.

text: The overlay text you with to add. Obviously this is limited so no writing War & Peace. If no text is added then the size dimensions will be used.

To generate the image to the left we used this the formula below:

https://api.lazytools.org/image/?size=500x500&bg=fff&color=000&text=it+really+is+that+simple