Skip to content

AniPulse/AniQuizAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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.

Vercel Issues License

Last Commit Repo Size GitHub Stars GitHub Forks API Status


πŸš€ Overview

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

🌟 Features

  • βœ… 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

πŸ“š API Documentation

πŸ”Ή /api/quiz?difficulty=easy|medium|hard

Get a trivia question by difficulty level.

GET /api/quiz?difficulty=medium

πŸ”Ή /api/image-quiz

Returns a question with an anime image. User must guess the anime title.

πŸ”Ή /api/quote-quiz

Returns a famous anime quote and asks to guess the anime or character.

πŸ”Ή /api/random

Returns a completely randomized question from any mode (trivia, image, or quote).


🧠 Example Response

{
  "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"
}

❗ Error Handling

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

πŸ› οΈ Installation

1. Clone this repo

git clone https://github.com/Shineii86/AniQuizAPI
cd AniQuizAPI

2. Install dependencies

npm install

3. Start development server

npm run dev

🌐 Deployment (Vercel Recommended)

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 πŸŽ‰

πŸͺͺ License

This project is licensed under the *MIT License*.
Feel free to use, remix, and share it with proper credits.

πŸ‘€ Credits

Project created by Shinei Nouzen Built with ❀️ passion for Anime and Open Source.


πŸ“¬ Support


πŸ’• Loved My Work?

🚨 Follow me on GitHub

⭐ Give a star to this project

Banner

☎️ Contact

For inquiries or collaborations

Telegram Badge Instagram Badge Pinterest Badge Gmail Badge

Copyright Β© 2025 Shinei Nouzen. All Rights Reserved

About

Open-source anime quiz API with auto-generated trivia, difficulty levels, and image/quote questions.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Contributors