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=mediumReturns 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 AniQuizAPInpm installnpm run devOne-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
π¨ Follow me on GitHub
β Give a star to this project