Free fake REST API for testing
Updated Free mock REST & WebSocket APIs
A public, always-on fake API for prototypes, tutorials and tests. Base URL: https://mockfox.dev/api/fake. No key, CORS enabled, writes are simulated.
Resources
| Endpoint | Items | Relations |
|---|---|---|
/users | 10 | — |
/posts | 100 | userId → /users/1/posts |
/comments | 500 | postId → /posts/1/comments |
/todos | 200 | userId |
/albums · /photos | 100 · 500 | userId · albumId |
/products | 20 | category, price |
/orders | 50 | userId, status |
Example
const res = await fetch("https://mockfox.dev/api/fake/posts?userId=1&_limit=3");
const posts = await res.json(); // [{ userId: 1, id: 1, title: "…", body: "…" }, …]Related tools
Frequently asked questions
Is MockFox free?
Yes. No sign-up, no API key. Fair-use rate limits keep it fast for everyone, and clearly labeled sponsors pay for the servers.
Is it compatible with JSONPlaceholder?
Yes — users, posts, comments, albums, photos and todos use the same shapes and URL patterns, so you can swap the base URL. MockFox adds products, orders and an auth/login route.
Does it support CORS?
Yes, every endpoint sends Access-Control-Allow-Origin: *, so it works from any web page or localhost.
Can I use my own data?
Yes — create your own hosted mock with the mock API editor or the AI generator.
Your business here? Sponsor this tool from $16/week. See placements