Introduction
JSONMockAPI is a lightweight mock-data API service for developers and QA teams. Use JSONMockAPI to generate test data (users, products, orders, transactions, vehicles, and custom json templates) with tools to export test data as JSON, Excel (XLSX/CSV), or SQL scripts, you can generate mock datasets tailored for API testing, database seeding and rapid prototyping.
Base Endpoint
https://fake.jsonmockapi.com To verify the api service status, send a simple GET request to https://fake.jsonmockapi.com/ping
Auth API
The Auth API provides mock authentication endpoints for testing login flows, handling both valid and invalid credentials. This endpoint is useful for testing login forms, verifying error handling use cases for invalid credentials, simulating token-based authentication, and mocking frontend auth flows.
Sample Request for a Successful login
Returns a 200 OK response with a valid mock jwt token and logged in user details
Sample Request for a invaid login
Returns a 401 Unauthorized response, the status code can be changed based on the usecase. For example, calling /auth/login/401 returns a 401 Unauthorized, while /auth/login/403 would return a 403 Forbidden to simulate other authentication failures
Users API
Mock data for user profiles including name, email, username,address and other details with support for GET,POST,PUT,DELETE. Useful for populating user grids, profile lists,user search/filter features, and any UI that requires user information.
Products API
Generate mock product data including product name, description, price, category, SKU, images, and stock level. This data can be used to quickly populate e-commerce product grids, catalog pages, admin product listings, search and filter modules, and anywhere you need product information for development, testing, or demos.
Orders API
The Order API returns mock order data with customer info, items, payment details, and tracking data for testing order history and invoice.
Transactions API
The Transaction API returns mock payment transaction data, including transaction ID, payment method, amount, currency info, status, and timestamp. Useful for testing transaction history pages, finance dashboards, invoices and error-handling flows like failed or pending payments.
Vehicles API
The Vehicle API returns mock vehicle information, including the manufacturer, model, production year, VIN, color, and price. This data is ideal for testing vehicle listings.
Custom API
The Custom API allows you to generate fully customized mock data by defining your own fields and their data types. This lets you build mock responses that match your application requirements exactly. Keys in the JSON body represent the desired field names, and the values specify the data types the API should generate.
Basic Example
Output Size
?size=n→ Root-level objects (max 25)-
?nestedSize=n→ Items inside nested arrays (max 25)
Nested Example
Returns 2 root objects with 3 nested products each.
Supported Field Types
- Basic: number, guid, word, sentence, paragraph, color
- Personal Info: firstname, middlename, lastname, gender, email, phone, username, password, ssn
- Location & Address: city, state, country, zipcode, address, latitude, longitude
- Date & Time: date, datetime, year
- Business: company, job
- Product: product, product.name, product.description, product.category, price, image, thumbnail
- Payment & Transactions: payment, transaction-status, currency, creditcard
- Order: order.status