API

This is a collection of my various APIs. It is more meant to be just for fun than anything else. But, you are more than welcome to use it for your own projects.

Random Useless Facts

This API returns random facts about the world.

Usage:

GET /api/random-facts

Example Response:

{ "fact": "The average human body contains about 60% water.", "url": "https://www.usgs.gov/special-topics/water-science-school/science/water-you-water-and-human-body", "source": "USGS" }

Random Useless Quotes

This API returns random quotes about the world.

Usage:

GET /api/random-quotes

Example Response:

{ "quote": "I'm not a great programmer; I'm just a good programmer with great habits.", "author": "Kent Beck", "topic": "Programming" }

Get Domain Favicon

This API allows you to grab favicons from any domain.

Usage:

GET /api/favicon

Parameters:

domain: string, normalize-url: boolean

Example Response:

{ "domain":"google.com", "icons":[{"src":"https://www.google.com/favicon.ico","type":"image/x-icon"}] }