Skip to content

JSON PlaceholderFast Fake REST API

Powered by Bun + Elysia.js for maximum performance

JSON Placeholder

🌐 Ready to Use

Try it now! JSONPlaceholder is publicly available at https://api.jsonplaceholder.dev - no setup required!

Quick Example

Try it out with a simple fetch request:

javascript
// Get all posts
fetch("https://api.jsonplaceholder.dev/posts")
  .then((response) => response.json())
  .then((posts) => console.log(posts));

// Create a new post
fetch("https://api.jsonplaceholder.dev/posts", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    title: "My New Post",
    body: "This is the content of my new post",
    userId: 1,
  }),
})
  .then((response) => response.json())
  .then((newPost) => console.log(newPost));

Available Resources

ResourceCountDescription
👥 Users10User accounts with profile information
📝 Posts100Blog posts (10 per user)
💬 Comments500Post comments (5 per post)
📷 Albums100Photo albums (10 per user)
🖼️ Photos5000Photos (50 per album)
✅ Todos200Todo items (20 per user)

Base URL

bash
https://api.jsonplaceholder.dev
bash
http://localhost:3000

Repositories

JSONPlaceholder is split across two GitHub repositories:

Fast Fake REST API powered by Bun + Elysia.js | Documentation site source: github.com/ckissi/jsonplaceholder