Mock API Response Generator – animated preview

Mock API Response Generator

मॉक API रिस्पॉन्स जनरेटर

  • 100% free
  • No sign-up
  • Private – runs in your browser
  • Works on mobile

Loading the generator…

How to use the Mock API Response Generator

Build realistic JSON API responses – paginated lists, single objects or error bodies (400, 401, 404, 422, 500) – from the fields you choose.

  1. Choose the fields of your resource on the left (rename them to match your API).
  2. Pick the shape – paginated list, simple list, single object or error – and the status code.
  3. Copy the JSON into your mock server, Postman, MSW or front-end fixtures.
See the steps as a picture
How to use Mock API Response Generator: 1. Choose the fields of your resource on the left (rename them to match your API). 2. Pick the shape – paginated list, simple list, single object or error – and the status code. 3. Copy the JSON into your mock server, Postman, MSW or front-end fixtures.

Supported formats: JSON

Shapes

ShapeBody
Paginated listsuccess, data[], meta (page, per_page, total, total_pages), links (self, next, prev)
Simple listsuccess, count, data[]
Single objectsuccess, data{}
Errorsuccess:false, error (code, message, details[]), requestId, timestamp

Error codes follow the status: 401 → UNAUTHORIZED, 404 → NOT_FOUND, 422 → VALIDATION_FAILED with a field error, 500 → INTERNAL_ERROR.

URLs use api.example.com, a reserved domain, so nothing calls a real server.

Output formats

FormatUse it for
Tablea quick look; Download gives a CSV that opens in Excel
JSONAPIs, fixtures, Postman, front-end mocks
CSV / TSVExcel, Google Sheets, bulk imports
SQLCREATE TABLE + batched INSERT for MySQL, PostgreSQL or SQLite
APIa full REST response with pagination or an error body
NDJSON / XMLlog pipelines, BigQuery, older systems

Rename any column, change its type, add or remove fields, and set a seed to get exactly the same data again.

Safe by design

  • Every value is synthetic – made up in your browser, not taken from any database.
  • E-mails end in @example.com and websites in .example, domains reserved for documentation (RFC 2606), so a test mail can never reach a real inbox.
  • Safe test values by default: every ID carries a marker that real IDs never have – PAN with X as the 4th letter, GSTIN with state code 00, Aadhaar-like numbers starting 0 or 1, mobile numbers starting 5, passport numbers starting X, DL and CIN with state XX, voter IDs starting XXX and IFSC with an XX bank code. No value can ever be a real person's or company's.
  • Format-valid values only with your consent: if your validation rejects the safe markers, open Options, tick Format-valid and confirm that you will use the data only to test your own software. The choice is not remembered – it must be confirmed again on every visit.
  • Nothing is uploaded; the data is generated on your device.

Use this data only for software testing, demos and training. Never use it for KYC, payments, forms or anything that pretends to be a real person or business.

Frequently asked questions

Can I change the wrapper keys?

The wrapper follows a common convention. Copy the JSON and rename keys in your editor if your API uses others.

Can I return 1,000 items?

Yes – set the rows to 1000.

Does it host the API?

No – it creates the JSON. Serve it with your own mock server (json-server, MSW, Postman mocks).