jsonplaceholder: a free fake API for testing and prototyping

Reading Time: < 1 minutes

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


About the author

Andrés Canavesi
Andrés Canavesi

Software Engineer with 15+ experience in software development, specialized in Salesforce, Java and Node.js.


Related posts


Leave a Reply

%d bloggers like this: