Complete reference for all available mock APIs
This project solves a common pain point for frontend developers, testers, and students — they often need real-looking data and APIs to test UI components or simulate app flows. MockAPI Hub provides a centralized, easy-to-use platform where anyone can access a variety of fake REST APIs across multiple categories, try them live, and even create their own custom endpoints without writing backend code. It saves time, improves development speed, and reduces dependencies on backend teams during early development phases.
fetch('https://mockapi-hub.vercel.app/api/users') .then(response => response.json()) .then(data => console.log(data));
https://mockapi-hub.vercel.app/api/users
Get all users
[ { "id": 1, "name": "John Doe", "email": "john@example.com", "avatar": "https://i.pravatar.cc/150?img=1" } ]
https://mockapi-hub.vercel.app/api/users/{id}
Get user by ID
id
(integer) - User ID{ "id": 1, "name": "John Doe", "email": "john@example.com", "avatar": "https://i.pravatar.cc/150?img=1" }
https://mockapi-hub.vercel.app/api/users
Create new user
{ "name": "string", "email": "string" }
{ "id": 3, "name": "New User", "email": "new@example.com", "created": true }
https://mockapi-hub.vercel.app/api/products
Get all products
[ { "id": 1, "name": "Laptop", "price": 999.99, "category": "Electronics", "inStock": true } ]
https://mockapi-hub.vercel.app/api/products/{id}
Get product by ID
id
(integer) - Product ID{ "id": 1, "name": "Laptop", "price": 999.99, "category": "Electronics", "inStock": true }
https://mockapi-hub.vercel.app/api/posts
Get all posts
[ { "id": 1, "title": "Hello World", "content": "This is my first post", "author": "John Doe", "createdAt": "2024-01-15" } ]
All GET endpoints are publicly accessible without authentication.
POST, PUT, and DELETE endpoints require a valid JWT token in the Authorization header:
Authorization: Bearer your-jwt-token
Join our community or reach out for support