API Hunt is an engaging treasure hunt game that challenges developers to solve riddles and navigate through API endpoints. Race against time, solve cryptic clues, and climb the leaderboard in this unique puzzle game!
- 🧩 Multi-stage riddle challenges - Solve cryptic clues to find the next endpoint
- ⏱️ Real-time leaderboard - Compete with other players based on completion time
- 🔒 Sequential progression - Must complete stages in order, no skipping allowed
- 📊 Player statistics - Track your progress and game statistics
- 🚀 RESTful API design - Clean, well-structured endpoints
- ⚡ Fast and lightweight - Built with FastAPI for optimal performance
Screen.Recording.2025-08-16.at.10.57.58.PM.mov
POST /start
{
"player_name": "YourPlayerName"
}Each successful stage gives you a new riddle. Solve it to find the next endpoint!
Example Flow:
- Stage 1:
POST /answer1with your answer - Stage 2:
POST /answer2with your answer ...
POST /{endpoint}
{
"player_name": "YourPlayerName"
}Complete all stages to win and see your completion time!
- FastAPI - Modern, fast web framework
- Pydantic - Data validation and settings
- Uvicorn - ASGI web server
- Python 3.7+
- pip package manager
-
Clone the repository
git clone https://github.com/Ranger-NF/API-Hunt.git cd API-Hunt -
Install dependencies
pip install fastapi uvicorn
-
Run the game server
uvicorn main:app --reload
-
Access the game
- API Documentation: http://localhost:8000/docs
- Game Endpoints: http://localhost:8000/
| Endpoint | Method | Description |
|---|---|---|
/start |
POST | Begin the game with your player name |
/age |
POST | First riddle stage |
/fire |
POST | Second riddle stage |
/secrets |
POST | Final challenge |
/leaderboard |
GET | View top players by completion time |
/players |
GET | List all players and their status |
/player/{name}/status |
GET | Get specific player details |
/stats |
GET | Overall game statistics |