Fake API Response Generator (Mock JSON)
NEWFake API response generator for front-end work: paginated mock JSON for users, products, posts, orders or custom fields, with a ready fetch snippet.
Runs 100% in your browser — your input is never uploaded or stored on our servers.
{
"data": [
{
"id": 1,
"name": "Scarlett Brown",
"username": "scarlett.brown67",
"email": "[email protected]",
"phone": "(415) 555-0197",
"address": {
"street": "2859 Church Way",
"city": "Fairview",
"postcode": "39171",
"country": "United States"
},
"company": "Blue Harbor Studio",
"role": "viewer",
"isActive": true,
"createdAt": "2024-06-09T18:32:49Z",
"updatedAt": "2024-06-30T13:12:27Z"
},
{
"id": 2,
"name": "Robert Walker",
"username": "walkerr502",
"email": "[email protected]",
"phone": "(415) 555-0176",
"address": {
"street": "8180 Lincoln Lane",
"city": "Georgetown",
"postcode": "74780",
"country": "United States"
},
"company": "PrimeAnchor Co.",
"role": "editor",
"isActive": true,
"createdAt": "2025-02-16T15:37:29Z",
"updatedAt": "2025-03-02T22:41:44Z"
},
{
"id": 3,
"name": "Olivia Hill",
"username": "oliviah60",
"email": "[email protected]",
"phone": "(808) 555-0146",
"address": {
"street": "4158 River Boulevard",
"city": "Dayton",
"postcode": "37670",
"country": "United States"
},
"company": "Bold Orbit Software",
"role": "editor",
"isActive": true,
"createdAt": "2025-09-06T19:40:05Z",
"updatedAt": "2025-09-20T15:34:52Z"
},
{
"id": 4,
"name": "Zoe Moore",
"username": "zoem8",
"email": "[email protected]",
"phone": "(201) 555-0105",
"address": {
"street": "46 Elm Street",
"city": "Salem",
"postcode": "65396",
"country": "United States"
},
"company": "Northern Stone Health",
"role": "admin",
"isActive": true,
"createdAt": "2024-06-12T13:53:08Z",
"updatedAt": "2024-06-28T12:46:40Z"
},
{
"id": 5,
"name": "Daniel Miller",
"username": "danielm6",
"email": "[email protected]",
"phone": "(512) 555-0177",
"address": {
"street": "3973 Elm Lane",
"city": "Franklin",
"postcode": "87447",
"country": "United States"
},
"company": "Green Consulting Inc.",
"role": "viewer",
"isActive": true,
"createdAt": "2024-11-23T03:48:01Z",
"updatedAt": "2024-11-29T09:49:54Z"
}
],
"meta": {
"page": 1,
"limit": 5,
"total": 42,
"totalPages": 9,
"next": "https://api.example.com/v1/users?page=2&limit=5",
"prev": null
}
}Example fetch
const res = await fetch('https://api.example.com/v1/users?page=1&limit=5');
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const { data: users, meta } = await res.json();
console.log(meta.page, meta.totalPages, meta.next);Quick Examples
Typical inputs and the results this tool produces.
Overview
The fake API response generator returns the JSON a REST endpoint would send, so you can build and test a front end before the real API exists. Choose a resource — users, products, posts, orders, comments or your own custom fields — set the total, page size and page, and get a realistic page of mock JSON.
Two response styles are supported: a { data, meta } envelope with page, limit, total, totalPages and next/prev links, or a bare array with X-Total-Count and Link headers. IDs can be integers or UUIDs, timestamps are optional, and the seed keeps every page consistent, so item 6 is the same whether you load page 2 or change the limit.
An example fetch snippet matches the chosen style. Everything runs in your browser.
Why use this tool?
- Unblock front-end work before the backend ships
- Test pagination edge cases like the last page
- Two common envelope styles with matching snippet
- Stable, seeded data across pages
- No mock server or signup needed
Features
Resource templates
Users, products, posts, orders and comments with nested objects and relations.
Custom fields
Describe your own schema as "name: type" lines, including enums.
Real pagination
Correct item counts, totalPages and next/prev URLs for any page.
Int or UUID ids
Switch id style; foreign keys like userId follow the same style.
Fetch snippet
Copy a fetch() example that reads the data and pagination for the chosen wrapper.
Copy or download
Copy the pretty JSON or download it as a fixture file.
How to Use
Pick a resource
Choose a template or Custom fields and describe your schema.
Set pagination
Enter total items, limit and page, and choose the wrapper style.
Tune output
Select int or UUID ids, toggle timestamps, or press New data.
Use it
Copy or download the JSON and the fetch snippet.