9 fictional datasets (users, products, posts, comments, todos, albums, photos, carts, orders) with filtering, sorting, pagination, nested routes, error states, simulated writes and a fake streaming LLM chat endpoint. Open the Endpoints tab for the full list.
Response
Ready to send a request
Send a request to see the JSON here.
Use it in your project
const response = await fetch("/api/demo/users?limit=3", {
method: "GET"
});
if (!response.ok) throw new Error("HTTP " + response.status);
const data = await response.json();
console.log(data);
Build it. Request it. Change it.
REST + GraphQL · your existing domain
No key needed. GET uses shared fictional data; writes return a simulated response.
Try Create, then GET the returned id. Private sandbox GET reflects your changes; shared demo GET keeps the original records.
GET /api/demo/products?category=electronics
GET /api/demo/products?inStock=true
GET /api/demo/products?q=lamp
GET /api/demo/products?sort=price&order=desc
GET /api/demo/users?page=2&limit=5
page starts at 1. limit defaults to 10, max 50. Unknown list parameters return 400.
Relationships
GET /api/demo/users/1
GET /api/demo/users/1/posts
GET /api/demo/users/1/todos
GET /api/demo/users/1/orders
GET /api/demo/posts/1/comments
Same pagination envelope. Missing records return 404.
Practise states
GET /api/demo/users?empty=true
GET /api/demo/users?delay=1000
GET /api/demo/status/400
GET /api/demo/status/401
GET /api/demo/status/404
GET /api/demo/status/429
GET /api/demo/status/500
delay is ms, max 1,500. 429 includes Retry-After: 60.
OpenAI-style request and reply, with server-sent events when stream is true. Simulated text, no real model, no key, 30 requests per minute per address.
Simulated writes
POST /api/demo/posts
PUT /api/demo/posts/1
PATCH /api/demo/posts/1
DELETE /api/demo/posts/1
JSON up to 20,000 bytes. POST returns 201 with simulated: true, persisted: false. Use a private sandbox for persistent changes.
Usage limits
No API key or database setup for the shared demo. Private sandboxes are available when enabled on this deployment and require their own access token. Responses are small and normal reads are cacheable. An in-memory guard allows up to 600 requests per minute per active server instance, not a global or per-user quota. No uptime guarantee; not a production data dependency.
Safety
CORS permits public, credential-free requests. The API does not read account cookies or act as a proxy. Never send passwords, tokens, real personal data or confidential information in simulated writes.
Requests here go to /api/demo on the current origin. On your own deployment that is your domain.