Free Fake Rest API for Testing, Learning and Prototyping. Get instant dummy JSON data for your frontend.
Let's ContributeJSON Fake comes with a set of 4 common resources:
Get details of data for each resource:
fetch('https://jsonfake.com/data/users/add', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
name: "Michael Smith",
username: "mikesmith",
email: "mike@gmail.com",
address: {
street: "123 Main St",
city: "New York",
state: "NY",
zipcode: "10001"
},
phone: "123-456-7890"
})
})
.then(res => res.json())
.then(console.log);
{
"message": "User created successfully.",
"user": {
"id": 123,
"name": "Michael Smith 2",
"username": "mikesmith 2",
"email": "mike2@gmail.com",
"address": {
"street": "123 Main St",
"city": "New York",
"state": "NY",
"zipcode": "10001"
},
"phone": "123-456-7890"
}
}