Home Github

{JSON} Fake

Free Fake Rest API for Testing, Learning and Prototyping. Get instant dummy JSON data for your frontend.

Let's Contribute

Resources

No more fighting with tricky backend setups! JSON Fake makes it easy, so you can get things done without stressing over complicated configs.

JSON Fake comes with a set of 4 common resources:

Get details of data for each resource:

Relationship Resources

JSON Fake also provided relationship resources, so you can learn about the JSON relationship structure, how to implement the JSON relationship data in the frontend.

Supported All HTTP Methods

Add New User

Adding a new user will not add it into the server. It will simulate a POST request and will return the new created user with a new id

        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);
      
Output

        {
          "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"
          }
        }
      
More Docs