Try It
Run this code here, in a console or from any site:
fetch('https://jsonic.vercel.app/api/users/1').then(response => response.json()).then(json => console.log(json))
{}
When to use
JSONic is a free online REST API that you can use whenever you need some fake data. It can be in a README on GitHub, for a demo on CodeSandbox, in code examples on Stack Overflow, ...or simply to test things locally.
Resources
JSONic comes with a set of 2 common resources:
- /api/users10 users
- /api/posts100 posts
Note: resources have relations. For example: users have many posts.
Routes
Note: See guide for usage examples.