What is PhantomJSON?
Section titled “What is PhantomJSON?”PhantomJSON is a free mock REST API that returns realistic, relational data across 34 endpoints. No signup. No API keys. No backend required.
Make a single HTTP request and get paginated, searchable, filterable data that behaves like a production API — because the query patterns are identical.
Who is it for?
Section titled “Who is it for?”- Frontend developers building UIs before the backend is ready
- Mobile developers who need realistic data for prototyping
- Full-stack developers testing API integrations
- Learners studying REST patterns, data fetching, and API design
What makes it different?
Section titled “What makes it different?”Unlike simple placeholder services that return flat lorem-ipsum records, PhantomJSON provides:
- Relational data — foreign keys, nested routes, linked resources across 4 domains
- Production-like behavior — pagination, filtering, sorting, full-text search, field selection
- Error and latency simulation —
?mockStatus=400and?delay=500on any endpoint - No accounts — every endpoint is fully public, no rate-limited “free tier” gating
Domains
Section titled “Domains”| Domain | Endpoints | Examples |
|---|---|---|
| E-commerce | 7 | Products, orders, carts, coupons, brands |
| Social | 7 | Profiles, posts, comments, followers, likes |
| Organizations | 6 | Teams, departments, employees, projects |
| Travel | 8 | Flights, hotels, airports, destinations |
Get started
Section titled “Get started”curl "https://api.phantomjson.app/v1/products?limit=3"That’s it. You have realistic data. Build something.
Open source
Section titled “Open source”PhantomJSON is MIT licensed. The API, documentation, and seeders are all public. Contributions welcome.
- GitHub: github.com/codeawy/phantomjson
- API: api.phantomjson.app/v1