10
Users
100
Posts
200
Todos
500
Comments
โจ Features
๐ Rate Limiting
100 writes/day per IP, 1000 reads/15min per IP
โ Validation
Comprehensive input validation for all endpoints
๐ Pagination
Built-in pagination with customizable limits
๐ Advanced Filtering
Text search, sorting, and complex filtering
๐ Global Search
Search across all resources with type filtering
โฑ๏ธ Delay Simulation
Test loading states with configurable delays
๐จ Error Simulation
Dedicated endpoints for testing error handling
๐ Logging
Detailed request/response logging with Winston
๐ Auto Reset
Daily database reset at midnight UTC
๐ API Endpoints
All endpoints are available under /api
prefix:
Users
Posts
Todos
Comments
Advanced Features
๐งช Quick Test
Try these endpoints to test the API:
Get Users Get Posts Get Todos Get Comments Search Posts Health Check๐ Getting Started
ApiMocker is a comprehensive fake REST API service perfect for development, testing, and tutorials.
Quick Start
Base URL
All API endpoints are available at: https://apimocker.com
Authentication
No authentication required! This is a public API for testing purposes.
Rate Limiting
- Write Operations: 100 requests per day per IP
- Read Operations: 1000 requests per 15 minutes per IP
- Reset: Daily at midnight UTC
๐ง Advanced Usage
Filtering & Search
Resource Search
Response Delay
Error Testing
๐ Request Examples
Create a Post
{
"title": "My New Post",
"body": "This is the content of my post"
}
Update a Todo
{
"completed": true
}
๐จ Error Handling
All endpoints return consistent error responses:
Validation Error (400)
Not Found (404)
Server Error (500)
Rate Limit Exceeded (429)
When you exceed rate limits, you'll receive a 429 status with reset information.
๐ Data Structure
All responses follow a consistent structure:
List Response
โข
data
- Array of resourcesโข
pagination
- Page info and navigationโข
X-Total-Count
header - Total items count
Single Resource Response
โข
data
- Single resource objectโข Related data (user info, comments, etc.)