JSONPlaceholder is a simple fake online REST API for testing and prototyping.

It's like image placeholders but for web developers.

Read documentation ยป


API

Whether you're testing a new framework, following a tutorial, ... feel free to use JSONPlaceholder API if you need some dummy data.

API can be accessed from your development environment through CORS or JSONP.

GET, POST, PUT, PATCH, DELETE and OPTIONS requests are supported.

Here is the list of available resources.

They were inspired by common use cases and have simple structures.

For usage information, have a look at the project README.

Run it locally

If for some reasons, you prefer to use JSONPlaceholder locally, you can do so.

$ npm install -g jsonplaceholder
$ jsonplaceholder

You can then go to http://localhost:3000/posts.

Use your own data

If you want other resources with different structures, you can use JSON Server. It will let you have a similar fake API in no time.


powered by JSON Server