Users

The root object contains a key "users", which holds an array of user objects. Each user object includes: Basic Information: id, name, username, avatar, and email. Address Details: Nested object address containing street, suite, city, and zipcode.

fetch

fetch('https://api.v2.rohitgadekar.dev/users')
.then(res => res.json())
.then(console.log);

sample response

{
  "id": 1,
  "name": "Leanne Graham",
  "username": "Bret",
  "avatar": "https://example.com/avatar.png",
  "email": "Sincere@april.biz",
  "address": {
    "street": "Kulas Light",
    "suite": "Apt. 556",
    "city": "Gwenborough",
    "zipcode": "92998-3874"
  }
}
Table of Contents