Predefined mock data for user profiles including name, email, username, and more.
Generate fake product data like name, description, price, and category.
Mock order information such as order status, total amount, and timestamps.
Get realistic mock data for transaction logs including type, status, and currency.
Mock data for vehicles including make, model, year, color, and VIN.
Use this API to create customized fake data structures tailored to your needs.
π View Custom API β jsonmockapi.com/custom
Send a POST request to https://fake.jsonmockapi.com/custom
with a JSON body that specifies the type of mock data you want.
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"
})
})
?size=n
β Controls number of root-level objects (max 25)?nestedSize=n
β Controls number of nested array items (max 25)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.