Domain Rating by Ahrefs1
Description
flaky is a free mock REST API that fails on purpose. It serves realistic fake data at ordinary-looking URLs, like other mock APIs, but you control how each response behaves. You add query parameters to any endpoint, including nested routes. The _status parameter forces a status code such as 404, 429, 500 or 503, _delay adds latency, and _fail_rate makes a share of requests fail. You can combine them to test loading states, error boundaries and retries. For retry and circuit breaker tests, a scenario can fail a set number of times and then succeed, so a test can check which attempt recovered. The response headers show the attempt number. The API also supports filtering, search, sorting and paging. Reading the API needs no sign-up, and an API key gives a higher limit. The site includes a one-line migration for teams coming from JSONPlaceholder, which has the same resources and fields. The source code is on GitHub.…
Preview
Highlights
- Force status codes such as 404, 429, 500 or 503
- Add latency to any endpoint with _delay
- Fail a percentage of requests with _fail_rate
- Scenarios that fail a set number of times, for retry tests
- Filtering, search, sorting and paging
Ratings & Reviews
No ratings yet
Be the first to rate flaky.
People also visit
flaky FAQ
What is flaky?
A mock REST API with realistic fake data that lets you force status codes, add latency and make requests fail on purpose.
Do I need to sign up?
No. Reading the API needs no sign-up. An API key is optional and gives a higher limit.
How do I test retries?
Create a scenario that fails a set number of times, then call the endpoint with the scenario ID. Your backoff logic can be checked against the attempt number in the response headers.
Can I move from JSONPlaceholder?
The site says it has the same resources and fields as JSONPlaceholder and shows a one-line migration.
What are the best flaky alternatives?
Popular alternatives to flaky include Mocktail, Mockerito and Mockfly. See all flaky alternatives






