Skip to main content

Simulate Slow API Response with Delay Feature

mockforme allows you to add a response delay to your mock API endpoints. This is useful for simulating slow network conditions and testing how your frontend handles API latency and performance bottlenecks.

How to Add a Delay to Mock API Responses

To delay an API response:

  • Navigate to the API listing page.
  • Click on the "Delay API" button next to the desired endpoint.
  • A popup will appear where you can enter the delay duration in seconds (maximum: 5 seconds).
info

Delay must be set in seconds. You can configure delays up to 5 seconds to mimic real-world latency.

Set delay on mock API endpoint to simulate slow response using mockforme

Why Use Response Delay?

  • Test loading states and spinners in your UI
  • Validate timeout handling or retry logic
  • Simulate mobile or poor network environments
  • Improve frontend UX under varied latency