JSON MOCKAPI
Docs

Generate fake/mock JSON data for testing and development.

API Index

Users API

Products API

Orders API

Transactions API

Vehicles API

Custom API

1. Users API

Predefined mock data for user profiles including name, email, username, and more.

πŸ”— View User API β†’ jsonmockapi.com/users

2. Products API

Generate fake product data like name, description, price, and category.

πŸ”— View Product API β†’ jsonmockapi.com/products

3. Orders API

Mock order information such as order status, total amount, and timestamps.

πŸ”— View Order API β†’ jsonmockapi.com/orders

4. Transactions API

Get realistic mock data for transaction logs including type, status, and currency.

πŸ”— View Transactions API β†’ jsonmockapi.com/transactions

5. Vehicles API

Mock data for vehicles including make, model, year, color, and VIN.

πŸ”— View Vehicles API β†’ jsonmockapi.com/vehicles

6. Custom API

Use this API to create customized fake data structures tailored to your needs.

πŸ”— View Custom API β†’ jsonmockapi.com/custom

Usage

Send a POST request to https://fake.jsonmockapi.com/custom with a JSON body that specifies the type of mock data you want.

Basic Example


fetch('https://fake.jsonmockapi.com/custom?size=5', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
    "number": "number",
    "guid": "guid",
    "firstname": "firstname",
    "middlename": "middlename"
})
})

Controlling Output Size

Note: size applies only to root-level arrays. Use nestedSize for arrays nested inside objects or root arrays.

Nested Example

Request:

fetch('https://fake.jsonmockapi.com/custom?size=2&nestedSize=3', {
method: 'POST',
headers: {
    'Content-Type': 'application/json'
},
body: JSON.stringify({
    "firstname": "firstname",
    "product": [
        {
            "name": "product.name",
            "description": "product.description"
        }
    ]
})
})

Returns 2 root objects with 3 nested products each.

Tip: Use the predefined APIs above if you don’t need a custom structure.

Supported Field Types