Generate realistic JSON API mock response files with proper data types, nested structures, and configurable record counts.
Generate production-realistic JSON API mock response files for development, testing, and prototyping.
File Output: .json files with valid JSON structure
Naming Convention: mock-{resource}-{endpoint}.json (e.g., mock-users-list.json)
Immediately generate a complete, valid JSON file. Ask no clarifying questions unless the domain is completely ambiguous.
If minimal context provided, generate:
{
"data": [...],
"meta": {
"total": 100,
"page": 1,
"per_page": 10,
"total_pages": 10
},
"links": {
"self": "/api/v1/resource?page=1",
"next": "/api/v1/resource?page=2",
"last": "/api/v1/resource?page=10"
}
}
{
"data": {
"id": "uuid-here",
"type": "resource_name",
"attributes": {...},
"relationships": {...}
}
}
{
"error": {
"code": "ERROR_CODE",
"message": "Human readable message",
"details": [...],
"timestamp": "ISO-8601"
}
}
"id": "550e8400-e29b-41d4-a716-446655440000""id": 1"2024-01-15T09:30:00Z"created_at, updated_at for resources"amount": 9999 (represents $99.99)"rate": 0.15"quantity": 5{
"id": "prod_abc123",
"name": "Wireless Bluetooth Headphones",
"sku": "WBH-001-BLK",
"price": 7999,
"currency": "USD",
"inventory": {
"quantity": 150,
"warehouse": "US-WEST-01"
},
"images": [
{"url": "https://cdn.example.com/products/wbh-001-1.jpg", "alt": "Front view"}
]
}
{
"id": "usr_123abc",
"email": "jane.smith@example.com",
"username": "janesmith",
"profile": {
"first_name": "Jane",
"last_name": "Smith",
"avatar_url": "https://cdn.example.com/avatars/123.jpg"
},
"roles": ["user", "admin"],
"verified": true,
"created_at": "2024-01-15T09:30:00Z"
}
{
"id": "sub_xyz789",
"customer_id": "cus_abc123",
"plan": {
"id": "plan_pro",
"name": "Professional",
"amount": 4999,
"interval": "month"
},
"status": "active",
"current_period_start": "2024-01-01T00:00:00Z",
"current_period_end": "2024-02-01T00:00:00Z"
}
Before outputting, verify:
Prompt: "Create mock API response for a blog posts endpoint"
Output: Complete mock-posts-list.json with 10 realistic blog posts including title, content, author, tags, dates, view counts.
Prompt: "Generate fake user data JSON for 25 users with addresses"
Output: Complete mock-users-list.json with 25 users including nested address objects.
Prompt: "Mock API error response for 404 not found"
Output: Complete mock-error-404.json with proper error structure.