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 /compliment
Returns a random compliment.
GET /fortune
Returns a random fortune.
GET /funfact
Returns a random fun fact.
GET /pizzaidea
Returns a random pizza idea.
GET /lifetruth
Returns a random life truth.
GET /thought
Returns a random thought.
To get a random compliment, you can send a GET request to:
https://my-fun-api.onrender.com/compliment
Example 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 --reload
Contributions 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.