svg icon DummyJSON - Docs

DummyJSON can be used with any type of front end project that needs products, carts, users, todos or any dummy data in JSON format.
You can use examples below to check how DummyJSON works.

Feel free to enjoy it in your awesome projects!

Test Route

See if your internet is working 😉

          // Could be GET or POST/PUT/PATCH/DELETE
          .then(res => res.json())

          /* { status: 'ok', method: 'GET' } */
Limiting Resources

All the resources can be used with query params to achieve pagination and get limited data. `limit=0` clears the limit and you get all items


It can be comma separated, OR, you can use multiple select query params to get multiple keys.

Delay Responses

You can simulate a delay in responses using the delay param, delay can be any number between 0 and 5000 milliseconds

Authorizing Resources

All resources can be accessed via an authentication token to test as a logged-in user.

Go to auth module and generate an auth token to get data as an authorized user

          /* providing token in bearer */
          fetch('', {
            method: 'GET', /* or POST/PUT/PATCH/DELETE */
            headers: {
              'Authorization': 'Bearer /* YOUR_TOKEN_HERE */', 
              'Content-Type': 'application/json'
          .then(res => res.json())
Github Github Github