Fetch data from DummyJSON
masterDummyJSON provides a free REST API for generating placeholder JSON data. You can use any HTTP client (fetch API, Axios, etc.) to access resources. The API supports all HTTP methods and includes built-in pagination.
// Using fetch API
const res = await fetch('https://dummyjson.com/products');
const json = await res.json();
console.log(json);