jsonplaceholder: a free fake API for testing and prototyping

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


Sep 13, 2021
featured image
https://jsonplaceholder.typicode.com

Example

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

Output

      
{
  id: 1,
  title: '...',
  body: '...',
  userId: 1
}
      
    

Photo by Kai Wenzel on Unsplash


json dev