Skip to content

Overview

PhantomJSON is a free, open-source REST API that provides realistic fake data for testing, prototyping, and building demos.

PhantomJSON overview

No setup required

Just point your HTTP client at the base URL and start making requests. No API keys, no accounts.

Realistic data

All data is generated using Faker.js. Names, emails, addresses, and product data look real.


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.

https://api.phantomjson.app/v1
  • 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
Terminal window
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
}
}

PhantomJSON is a public API. No API keys, no signup, no accounts. Just make requests.

PhantomJSON is open source. View the code on GitHub or contribute to the project.