Mock API Generator
Paste OpenAPI/Swagger specs, GraphQL schemas, backend URLs, or natural language prompts to instantly generate structured, realistic mock API JSON responses.
Your mock responses will appear here
Select your input type, paste your API spec or URL, configure options, and click Generate.
Paste Spec or Prompt
Enter YAML spec, GraphQL code, or prompts like "user login endpoint returning auth tokens."
Set Headers & Status
Configure response HTTP headers, cookies, delay simulation, and status code (200 OK, 400, 500).
Get JSON Response
Instantly obtain mock payloads containing realistic addresses, timestamps, and nested objects.
Why Use Mock API Generator?
Frequently Asked Questions
Can I mock endpoints requiring pagination?
Yes. Describe your paginated structures (e.g., limit, offset, count) and the generator outputs appropriate arrays.
Is it possible to copy fields from real JSON?
Yes. Simply paste real JSON payloads in the prompt box and specify what variables should be randomized or mocked.
Can I simulate API delays?
The tool generates mock response payloads instantly. For network delays, you can use browser throttle profiles in dev tools.