0% found this document useful (0 votes)
7 views3 pages

DummyJSON - Part2

DummyJSON is a free REST API that provides placeholder JSON data for various front-end projects, including products, carts, and users. It supports features like resource limiting, response delays, and authorization via access tokens. Users can also retrieve their IP address through the API.

Uploaded by

alanfsousasap
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views3 pages

DummyJSON - Part2

DummyJSON is a free REST API that provides placeholder JSON data for various front-end projects, including products, carts, and users. It supports features like resource limiting, response delays, and authorization via access tokens. Users can also retrieve their IP address through the API.

Uploaded by

alanfsousasap
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

21/02/2026, 22:38 Docs - DummyJSON - Free Fake REST API for Placeholder JSON Data

Get Free Temporary & Disposable Emails. [Link]

DummyJSON

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


fetch('[Link]
.then(res => [Link]())
.then([Link]);

/* { 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

fetch('[Link]

 

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

fetch('[Link]

 

[Link] 1/3
21/02/2026, 22:38 Docs - DummyJSON - Free Fake REST API for Placeholder JSON Data

Delay Responses
Get Free Temporary & Disposable Emails. [Link]

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

fetch('[Link]

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

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

/* providing access token in bearer */


fetch('[Link] {
method: 'GET', /* or POST/PUT/PATCH/DELETE */
headers: {
'Authorization': 'Bearer /* YOUR_ACCESS_TOKEN_HERE */',
'Content-Type': 'application/json'
},
})
.then(res => [Link]())
.then([Link]);

IP Address
Get the IP address of the client.

// GET
fetch('[Link]
.then(res => [Link]())
.then([Link]);

/* { ip: '[Link]', userAgent: 'Mozilla/5.0 ...' } */

[Link] 2/3
21/02/2026, 22:38 Docs - DummyJSON - Free Fake REST API for Placeholder JSON Data

Get Free Temporary & Disposable Emails. [Link]


Buy me a coffee
DummyJSON

[Link] 3/3

You might also like