Docs
You can use examples below to check how DummyJSON works.
Quotes
Get all quotes
fetch('https://dj.tdn.wf/quotes')
.then(res => res.json())
.then(console.log);
Show output
Get a single quote
fetch('https://dj.tdn.wf/quotes/1')
.then(res => res.json())
.then(console.log);
Show output
Get a random quote
fetch('https://dj.tdn.wf/quotes/random')
.then(res => res.json())
.then(console.log);
Show output
Limit and skip quotes
You can pass "limit" and "skip" params to limit and skip the results for pagination, and use limit=0 to get all items.
fetch('https://dj.tdn.wf/quotes?limit=3&skip=10')
.then(res => res.json())
.then(console.log);
Show output