Check my new project 💧 MistCSS — write React components with 50% less code
Free & Open Source REST API

{JSON}
Placeholder2

Free fake and reliable API for testing and prototyping.

Powered by JSON Server + LowDB.

~3 Billion
requests / month
6 Resources
always available
100% Free
no auth required
💖 Sponsors

Supported by amazing companies

JSONPlaceholder is supported by the following companies and Sponsors on GitHub, check them out 💖

Mockend
Zuplo
Tower
SerpApi
⚡ Try it

See it in action

Run this code here, in a browser console, or from any site. No setup, no auth, no rate limits.

🌐
Works everywhere
Use from any browser, Node.js, or mobile app
🔒
No auth needed
No API keys or tokens required
Always online
Reliable uptime with ~3B requests/month
example.js
1fetch('https://jsonplaceholder.typicode.com/todos/1')
2 .then(response => response.json())
3 .then(json => console.log(json))
response
// Click "Run" to see the response here
🎯 When to use

Perfect for any situation

JSONPlaceholder is a free online REST API that you can use whenever you need some fake data. It can be in a README on GitHub, for a demo on CodeSandbox, in code examples on Stack Overflow, ...or simply to test things locally.

README on GitHub

Show live API examples in your project documentation

CodeSandbox Demos

Build interactive demos without a backend

Stack Overflow

Provide reproducible code examples in answers

Local Development

Test your frontend without spinning up a server

📦 Resources

6 ready-to-use endpoints

JSONPlaceholder comes with a set of 6 common resources with realistic data.

Note: Resources have relations. For example: posts have many comments, albums have many photos, ... see guide for the full list.

🛣️ Routes

All HTTP methods supported

All HTTP methods are supported. You can use http or https for your requests.

Method
Endpoint
Copy
GET
GET
GET
GET
POST
/posts
PUT
/posts/1
PATCH
/posts/1
DELETE
/posts/1

Note: see guide for usage examples.

🚀 Use your own data

Need a custom REST API?

With our sponsor Mockend and a simple GitHub repo, you can have your own fake online REST server in seconds.

Instant setup
Create a GitHub repo with a db.json file and you're done
🔧
Fully customizable
Define your own data structure and relationships
🌐
Public URL
Get a shareable URL for your custom API instantly
🔄
CRUD operations
Full support for GET, POST, PUT, PATCH, DELETE