JSONPlaceholder 

Fake Online REST API for Testing and Prototyping
powered by JSON Server

Intro

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, ...

Example

Run this code in a console or from anywhere (CORS and JSONP supported).

var root = 'http://jsonplaceholder.typicode.com';

$.ajax({
  url: root + '/posts/1',
  method: 'GET'
}).then(function(data) {
  console.log(data);
});

"Try me!"

Resources

Inspired by common use cases.

/posts100 items
/comments500 items
/albums100 items
/photos200 items
/todos200 items
/users10 items

Routes

All HTTP verbs are supported.

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

View usage examples.

Use your OWN data

JSON Server powers this website. You can use it to create a fake API in seconds with zero coding.

        $ npm install -g json-server
      

Hey, you seem to be on OS X. Check also katon, a development tool I've built.