Fake JSON that behaves like REST
Static JSON dumps fall short when you need count, pagination, sorting, or partial field selection. ApiGenerator’s fake JSON API wraps generators behind REST-style paths so your fetch layer matches production patterns.
That means fewer rewrites when you swap in the real service. Keep using response.data, page metadata, and field filters during the mock phase, then update only the host.
Examples you can try now
Popular fake endpoints include users, posts, products, comments, todos, albums, and recipes. AI-powered keywords expand the catalog for demos — dogs, planets, invoices, and more. Browse the examples hub for landing pages with snippets, or open the playground to tweak query strings live.
Fake JSON for tests and demos
Seeded responses help unit tests and Storybook stories stay deterministic. Demo days benefit from rich fake datasets without scrubbing production PII. Pair the fake JSON API with your preferred test runner or E2E tool and keep network stubs simple.
Fake JSON API example
async function loadTodos() {
const res = await fetch("https://free-api-backend.vercel.app/todos?count=20&seed=demo");
const json = await res.json();
return json.data; // fake but realistic todo objects
}Frequently asked questions
What is a fake JSON API?
A fake JSON API serves mock data as JSON over HTTP so apps can develop and test without a live backend. ApiGenerator generates that data from keywords and query parameters.
Is the fake JSON random every time?
You can pass a seed query parameter for stable output across requests, which is useful for list/detail navigation and automated tests.
Can I filter fields in the fake response?
Yes. Use the fields parameter to return only the properties your UI needs, keeping payloads small during prototyping.