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

Respond with a realistic latency spread

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

About 90% of calls take 10-100ms, 9% take 500-1500ms and 1% take 3-5s.

Responses

200
Reports latencyMs and which bucket it came from.

Example

Request
curl -X GET "https://api.testingapis.com/api/chaos/random-latency" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{"latencyMs": 28, "bucket": "fast (p0-p90)"}

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.