TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Wait a random time within a range, then respond

GEThttps://api.testingapis.com/api/chaos/slowSign in to see this endpoint's URL

Parameters 2

NameTypeDescription
minMsquery · integer (int32)Minimum wait in milliseconds (0-30000, default 1000). Default: 1000.
maxMsquery · integer (int32)Maximum wait in milliseconds (0-30000, default 3000). If min is greater than max, they are swapped. Default: 3000.

Responses

200
Response after the wait, reporting waitedMs.

Example

Request
curl -X GET "https://api.testingapis.com/api/chaos/slow?minMs=100&maxMs=300" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{"message": "Responded after 206ms.", "waitedMs": 206, "minMs": 100, "maxMs": 300}

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.