A lightweight REST API that serves random motivational quotes. Built with FastAPI and deployed on Render.
Live URL: https://short-motivation-api.onrender.com
Short Motivation API is a simple, open-access API that returns a random motivational quote with every request. No authentication required, no rate limits — just hit the endpoint and get inspired.
Health check — confirms the API is running.
Response:
{
"message": "Motivation API is running!"
}Returns a random motivational quote.
Response:
{
"quote": "Discipline equals freedom."
}| Tool | Purpose |
|---|---|
| FastAPI | Web framework |
| Uvicorn | ASGI server |
| Render | Cloud deployment |
| Python 3 | Runtime |
1. Clone the repository
git clone https://github.com/ErkanSoftwareDeveloper/short-motivation-api.git
cd short-motivation-api2. Install dependencies
pip install -r requirements.txt3. Start the server
uvicorn app:app --reloadThe API will be available at http://127.0.0.1:8000.
short-motivation-api/
├── app.py # FastAPI app & all endpoints
├── requirements.txt # Python dependencies
└── README.md
This project is deployed on Render as a free web service. The live API is accessible at:
https://short-motivation-api.onrender.com/quote
This project is licensed under the MIT License.