The Ultimate Smart Anime Quiz REST API
Auto-generated trivia questions — by difficulty, image, quote, or random — with robust error handling and personalized watermark in every response.
AniQuiz API is an open-source anime quiz API that provides:
- 🎯 Trivia questions (Easy / Medium / Hard)
- 🖼️ Image-based quizzes (guess anime from images)
- 🗣️ Quote-based quizzes (guess the anime from quotes)
- 🔀 Random question mixing
- 💡 Advanced error handling
- 🖋️ Creator watermark in every response
- 🌐 Deployed on Vercel for free public usage
- ✅ Difficulty Tags:
Easy
,Medium
,Hard
- ✅ Auto-generated & AI-enriched questions
- ✅ Random, image, and quote quiz endpoints
- ✅ Fully RESTful API
- ✅ Timestamp & Creator Credit in response
- ✅ Ready to deploy on GitHub + Vercel
- ✅ Free & Open Source
Get a trivia question by difficulty level.
GET /api/quiz?difficulty=medium
Returns a question with an anime image. User must guess the anime title.
Returns a famous anime quote and asks to guess the anime or character.
Returns a completely randomized question from any mode (trivia, image, or quote).
{
"question": "Who is the main character of the anime Naruto?",
"options": ["Sasuke", "Itachi", "Naruto", "Sakura"],
"answer": "Naruto",
"difficulty": "Easy",
"type": "quiz",
"creator": "Shinei Nouzen",
"github": "https://github.com/Shineii86",
"telegram": "https://telegram.me/Shineii86",
"message": "Build with ❤️ by Shinei Nouzen",
"timestamp": "India Date & Time 12H Format"
}
All endpoints return well-formatted JSON errors:
{
"error": {
"code": "INVALID_DIFFICULTY",
"message": "Please use one of: easy, medium, hard."
}
}
- HTTP status codes:
400
,404
,500
- Validation for missing/invalid params
- Graceful fallback if source API fails
git clone https://github.com/Shineii86/AniQuizAPI
cd AniQuizAPI
npm install
npm run dev
One-click deploy with Vercel for instant API hosting.
- Fork this repo
- Connect it to Vercel
- Set up the project (no special env needed)
- Deploy 🎉
This project is licensed under the *MIT License*.
Feel free to use, remix, and share it with proper credits.
Project created by Shinei Nouzen Built with ❤️ passion for Anime and Open Source.
- Issues: GitHub Issues
