{"@context":"https://schema.org","@type":"SoftwareApplication","name":"API Mock Server","description":"Client-side fetch mock interceptor.","url":"https://www.devtools.tools/api-mock-server","applicationCategory":"Network & API Tools","operatingSystem":"All","browserRequirements":"Modern web browser","permissions":"none","isAccessibleForFree":true,"screenshot":"https://www.devtools.tools/og?title=API%20Mock%20Server&category=Network%20%26%20API%20Tools","author":{"@type":"Person","name":"Göksel Yeşiller","url":"https://github.com/mryesiller"},"publisher":{"@type":"Organization","name":"DevTools","url":"https://www.devtools.tools","logo":{"@type":"ImageObject","url":"https://www.devtools.tools/assets/logo-light-v11.svg"}},"offers":{"@type":"Offer","price":"0","priceCurrency":"USD","availability":"https://schema.org/InStock"},"keywords":"api mock","mainEntity":{"@type":"WebApplication","name":"API Mock Server","applicationCategory":"DeveloperApplication"}}{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://www.devtools.tools"},{"@type":"ListItem","position":2,"name":"API Mock Server","item":"https://www.devtools.tools/api-mock-server"}]}{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","name":"Does this start a real server?","acceptedAnswer":{"@type":"Answer","text":"No. It patches fetch in the current tab only — no Service Worker or backend route."}},{"@type":"Question","name":"When does mocking stop?","acceptedAnswer":{"@type":"Answer","text":"Click Deactivate or close the tab. Refreshing clears the interceptor unless you activate again."}}]}{"@context":"https://schema.org","@type":"HowTo","name":"How to use API Mock Server","description":"Step-by-step guide on using the API Mock Server tool.","step":[{"@type":"HowToStep","position":1,"name":"Edit JSON routes","text":"Define method, path, status, and body for each mock endpoint."},{"@type":"HowToStep","position":2,"name":"Activate","text":"Patch fetch in this tab and test with console fetch calls."},{"@type":"HowToStep","position":3,"name":"Deactivate","text":"Restore native fetch when done."}]}
API Mock Server
Client-side fetch interceptor — no backend endpoint
About this tool
Define REST mocks and intercept fetch client-side — no server or Service Worker registration.
Frequently asked questions
Related tools
LLM Token Counter
Visualize BPE tokens with color blocks, model selector, and per-request cost estimate
JWT Validator
Verify HS256 and RS256 JWT signatures and validate exp, nbf, aud and iss claims
SSH Key Pair Generator
Generate RSA, ECDSA P-256 or Ed25519 SSH key pairs with OpenSSH public format and SHA256 fingerprint
Kubernetes Resource Calculator
Estimate CPU and memory requests, limits and HPA settings with downloadable YAML manifests
CSV Data Viewer
Paste CSV and browse rows in a sortable table with delimiter detection
Multiple URL Opener
Open many URLs in new tabs with a configurable delay between each