JSONPlaceholder

The free fake REST API, since 2013

Fake data you can rely on.

JSONPlaceholder is a free online REST API that you can use whenever you need some fake data: in documentation and tutorials, in code examples, in a quick prototype, or simply to test things locally.

120 billion requests / month
Free for everyone, and it stays that way. No signup, no API key.
Since 2013
Same routes, same responses. Code written against it a decade ago still works.

Powered by json-server ★ 75717 lowdb ★ 22584

Sponsors

JSONPlaceholder is supported by the following companies and sponsors on GitHub.

Guide

Examples use the Fetch API, but any HTTP client works.

fetch('https://jsonplaceholder.typicode.com/posts/1')
  .then(response => response.json())
  .then(json => console.log(json))

Response

{
  "userId": 1,
  "id": 1,
  "title": "sunt aut facere repellat provident occaecati excepturi optio reprehenderit",
  "body": "quia et suscipit\nsuscipit recusandae consequuntur expedita et cum\nreprehenderit molestiae ut ut quas totam\nnostrum rerum est autem sunt rem eveniet architecto"
}

Resources

JSONPlaceholder comes with a set of 6 common resources.

/posts100 posts
/comments500 comments
/albums100 albums
/photos5000 photos
/todos200 todos
/users10 users

Resources have relations. For example: posts have many comments, albums have many photos. See nested routes for the full list.

Routes

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

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

Need your own data?

Mockend gives you a fake API per developer, agent or feature, from a single file in your GitHub repo.