API Mock Response Builder
Describe fields once and generate realistic mock JSON for an API response.
API Mock Response Builder
Describe the shape once as name: type and get a JSON body back. Types include string, number, integer, boolean, date, datetime, email, uuid, url, price, array(n) and object. Values are generated in the browser — useful for stubbing an endpoint before it exists.
Response
History tool ini
Data terakhir yang pernah kamu isi di tool ini, tersimpan hanya di device/browser ini.
Save what you type here, in this browser? Your work would go into this browser's local storage, so a refresh or a trip to another tool does not wipe it. You also get a short list of previous entries under the form, each one restorable with a click. Nothing is ever uploaded, and there is no account.
Being straight about the trade-off: anything kept there can be read by anyone who can use this browser profile, and by any script that later runs on this site. A tool page can hold a private key, a password or a signed token. Saving is convenient; it is not private.
About this tool
Describe a response shape once as name: type pairs and the page generates a realistic JSON body with the number of records you ask for. It is the quick way to stub an endpoint, seed a fixture or show a frontend what the real payload will look like before the API exists.
Questions
- What types can I use?
- string, word, name, firstname, lastname, email, phone, city, country, address, company, product, url, image, uuid, id, number, integer, price, age, boolean, date, datetime, timestamp, color, object and array(n). Anything else is reported and skipped rather than guessed.
- How do I get a list of values in one field?
- Write array(3) for three items or array for a default of three. Each item is a short word, which is enough to fill a tags or categories field while you build the UI.
- Are the values random every time?
- Yes. Each render draws new values, and the Regenerate button does the same. If you need the exact same payload twice, paste the generated JSON into a file instead of regenerating.
- Is the data based on anything real?
- No. Names, addresses and emails are made up from small built-in word lists. They are deliberately fake so nothing generated can collide with a real person or mailbox.