FunAPI is a RESTful API built with FastAPI that provides random compliments, fortunes, fun facts, pizza ideas, life truths, and thoughts.
- Compliments: Brighten up your day with random compliments.
- Fortunes: Ponder upon random fortunes for insight and inspiration.
- Fun Facts: Discover random useless yet entertaining facts.
- Pizza Ideas: Explore unique pizza combinations for your next culinary adventure.
- Life Truths: Reflect on deep insights into life's mysteries and truths.
- Thoughts: Receive random thoughts to inspire, entertain, or provoke contemplation.
The base URL for accessing the API is: https://my-fun-api.onrender.com
GET /complimentReturns a random compliment.
GET /fortuneReturns a random fortune.
GET /funfactReturns a random fun fact.
GET /pizzaideaReturns a random pizza idea.
GET /lifetruthReturns a random life truth.
GET /thoughtReturns a random thought.
To get a random compliment, you can send a GET request to:
https://my-fun-api.onrender.com/complimentExample Response:
{
"success": True,
"data": {
"compliment": "You have a great sense of humor!"
}
}For detailed documentation, please visit FunAPI Documentation
- Clone the repository:
git clone https://github.com/LakhindarPal/my-fun-api.git- Install dependencies:
cd funapi
pip install -r requirements.txt- Run the FastAPI server:
uvicorn main:app --reloadContributions are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.