Fake Online REST API for Testing and Prototyping
Powered by JSON Server and LowDB

Have your company logo here

become a patron


JSONPlaceholder is a free online REST service that you can use whenever you need some fake data.

It's great for tutorials, faking a server, sharing code examples, ...


Run this code in a console or from anywhere.
HTTP and HTTPS are both supported.

  .then(response => response.json())
  .then(json => console.log(json))

// click the button above to make a request ;)


Inspired by common use cases.

/posts 100 items
/comments 500 items
/albums 100 items
/photos 5000 items
/todos 200 items
/users 10 items


All HTTP verbs are supported.
View usage examples.

GET /posts
GET /posts/1
GET /posts/1/comments
GET /comments?postId=1
GET /posts?userId=1
POST /posts
PUT /posts/1
PATCH /posts/1
DELETE /posts/1

Use your OWN data

JSON Server powers this website. You can use it to create the same fake API in less than 30 seconds with your own data.

npm install -g json-server

Or you can try My JSON Server free service.