A free mock REST API with real coding interview questions and answers, built for developers, students, and interview preparation.
{DevQnA} API is a free mock REST API that serves coding interview questions and answers across multiple programming languages, including:
- 🐍 Python
- ☕ Java
- 🟨 JavaScript
- ⚙️ C++
- 🐹 Golang
Just like JSONPlaceholder gives developers fake data to test with, {DevQnA} API provides real interview questions that you can build with, learn from, or integrate into your projects while practicing API development.
No sign-up required. No API key required.
{DevQnA} API was built to provide developers with a simple, ready-to-use REST API for learning, testing, and building applications.
It can be used to:
- 🧪 Test frontend applications using realistic, structured data
- 📚 Showcase a live API in GitHub projects, tutorials, or demos
- 🛠️ Practice REST APIs and CRUD operations (Create, Read, Update, Delete)
- 🎓 Explore real coding interview questions while preparing for technical interviews
- 🌐 Multiple programming language routes for Python, Java, JavaScript, C++, and Golang
- 🔍 Fetch all questions for a language (e.g.
/api/pythonqna) - 🔢 Fetch a single question by its ID (e.g.
/api/pythonqna/1) - 🎚️ Filter questions by difficulty (e.g.
/api/pythonqna?difficultyLevel=easy) - ➕ Create a new question using
POST - ✏️ Replace an existing question using
PUT - 🩹 Update selected fields using
PATCH - 🗑️ Delete a question using
DELETE - 👀 View ready-to-use
fetch()examples for every endpoint - 📋 Copy API routes and example code with a single click
- 📱 Fully responsive across desktop, tablet, and mobile devices
- 🎨 Clean documentation-style interface with a warm amber theme
- ⚛️ Next.js (App Router) — frontend and API routes
- 🎨 Tailwind CSS — styling
- 🧩 shadcn/ui — reusable UI components
- 🖼️ React Icons — lightweight icon library
The project is live and available here:
🔗 Live Demo: https://devqna-som.netlify.app/
{DevQnA} API is inspired by JSONPlaceholder, one of the most popular mock REST APIs used by developers around the world.