Mock Data Made Simple

Generate realistic fake data for testing your APIs, applications, and prototypes. Zero setup, unlimited requests, instant results.

Try Live Demo
Quick Example
curl https://moker.momutuku.co.ke/users?limit=2

Why Choose MO-KER API?

Built by developers, for developers. Everything you need to test and prototype faster.

Lightning Fast

Get instant responses with zero latency. Perfect for development and testing workflows.

🔧

No Setup Required

Start using immediately. No API keys, no registration, no configuration needed.

📊

Rich Data Types

Users, posts, products, files, and more. Realistic data that matches real-world scenarios.

🎯

Error Simulation

Test error handling with simulated failures, rate limits, and validation errors.

🔄

CRUD Operations

Full REST API simulation with Create, Read, Update, and Delete operations.

📁

File Generation

Generate fake files in various formats. Perfect for testing file uploads and downloads.

Available Endpoints

Comprehensive API endpoints for all your testing needs

👤 Users

GET /users?limit=10
GET

Request:

curl -X GET "https://moker.momutuku.co.ke/users?limit=2"

Response:

[
{
"id": 1,
"username": "mervin.oreilly",
"firstName": "Forrest",
"lastName": "Nader",
"gender": "M",
"avatar": "https://avatar.iran.liara.run/public/72"
},
{
"id": 2,
"username": "janet.hanet",
"firstName": "Orpheus",
"lastName": "Dorpheus",
"gender": "F",
"avatar": "https://avatar.iran.liara.run/public/2"
}]
GET /users/:id
GET

Request:

curl -X GET "https://moker.momutuku.co.ke/users/1"

Response:

{
  "id": 1,
  "username": "mervin.oreilly",
  "firstName": "Forrest",
  "lastName": "Nader",
  "gender": "M",
  "avatar": "https://avatar.iran.liara.run/public/72"
}
POST /users
POST

Request:

curl -X POST "https://moker.momutuku.co.ke/users" \
  -H "Content-Type: application/json" \
  -d '{
    "username": "new_user",
    "firstName": "New",
    "lastName": "User",
    "gender": "F"
  }'

Response:

{
  "id": 101,
  "username": "new_user",
  "firstName": "New",
  "lastName": "User",
  "gender": "F",
  "avatar": "https://avatar.iran.liara.run/public/101",
  "message": "User created successfully"
}
DELETE /users/:id
DELETE

Request:

curl -X DELETE "https://moker.momutuku.co.ke/users/1"

Response:

{
  "message": "User deleted successfully",
  "id": 1,
  "status": "deleted"
}

🔐 Authentication

POST /register
POST

Request:

curl -X POST "https://moker.momutuku.co.ke/register" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "[email protected]",
    "password": "password123",
    "username": "newuser"
  }'

Response:

{
  "message": "Registration successful",
  "user": {
    "id": 123,
    "email": "[email protected]",
    "username": "newuser"
  },
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
POST /register/error
ERROR

Request:

curl -X POST "https://moker.momutuku.co.ke/register/error" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "[email protected]",
    "password": "password123",
    "username": "existinguser"
  }'

Response:

{
  "error": "Email already exists",
  "message": "User with this email already registered",
  "status": 409
}
POST /login
POST

Request:

curl -X POST "https://moker.momutuku.co.ke/login" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "[email protected]",
    "password": "password123"
  }'

Response:

{
  "message": "Login successful",
  "user": {
    "id": 123,
    "email": "[email protected]",
    "username": "newuser"
  },
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
POST /login/invalid
ERROR

Request:

curl -X POST "https://moker.momutuku.co.ke/login/invalid" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "[email protected]",
    "password": "wrongpassword"
  }'

Response:

{
  "error": "Invalid credentials",
  "message": "Email or password is incorrect",
  "status": 401
}