Overview
PhantomJSON is a free, open-source REST API that provides realistic fake data for testing, prototyping, and building demos.
What is PhantomJSON?
Section titled “What is PhantomJSON?”PhantomJSON provides a complete set of fake data endpoints that behave like a real API:
- Users with realistic names and emails
- Posts with titles and body content
- Comments on posts
- Todos with completion status
- Albums with photo collections
- Products with prices and categories
All data is generated using Faker.js for realistic results.
Base URL
Section titled “Base URL”https://api.phantomjson.app/v1Features
Section titled “Features”- Pagination — Page-based with configurable limits
- Filtering — 10 operators (equals, contains, greater than, etc.)
- Sorting — Multi-field sorting with asc/desc
- Search — Full-text search across fields
- Field Selection — Request only the fields you need
- Relations — Navigate between related resources
- Rate Limiting — 100 requests per minute per IP
Quick Example
Section titled “Quick Example”curl https://api.phantomjson.app/v1/users?page=1&limit=5{ "data": [ { "id": 1, "firstName": "John", "lastName": "Doe", "email": "john@example.com", "createdAt": "2026-01-15T10:30:00.000Z", "updatedAt": "2026-01-15T10:30:00.000Z" } ], "meta": { "total": 100, "page": 1, "limit": 5, "totalPages": 20 }}No Authentication Required
Section titled “No Authentication Required”PhantomJSON is a public API. No API keys, no signup, no accounts. Just make requests.
Open Source
Section titled “Open Source”PhantomJSON is open source. View the code on GitHub or contribute to the project.
