Define routes - method, path, status, JSON body - and dry-run requests against them in the browser.
Define routes as blocks, then fire test requests.
What it does
Method, path, status and JSON body per block; path params with :id syntax.
Method + path matching with params extracted and shown.
A configurable delay makes loading states testable.
Each route generates the exact fetch() call for your front end.
How it works
Step 1
Define routes as blocks: METHOD /path STATUS, then the JSON body.
Step 2
Send a request with the tester; check status, body and params.
Step 3
Copy the fetch snippet into your front end.
FAQ
Use :name in the route path; the tester extracts actual values.
Definitions live in the page; copy them out to keep them.
Requests run in-page against your definitions; no network is involved.
Worked example
This is what Mock API Runner returned for its built-in example input, captured from the tool itself.
You enter
Input
GET /users 200
{"users":[{"id":1,"name":"Priya"},{"id":2,"name":"Dan"}]}
GET /users/:id 200
{"id":1,"name":"Priya","plan":"pro"}
POST /users 201
{"id":3,"created":true}
GET /health 200
{"ok":true}Simulated latency (ms)
120
Input
GET
Input
/users/2
The tool returns
fetch('/users', {method: 'POST', headers: {'Content-Type': 'application/json'}, body: JSON.stringify({/* request body */})})
.then(r => r.text().then(t => t ? JSON.parse(t) : null));
More in the Build suite
Mock API Runner
Define routes - method, path, status, JSON body - and dry-run requests against them in the page, with latency and per-route fetch snippets.



