Skip to main content

Get User

Retrieve details of a specific user by their ID.

Endpoint

GET https://jsonplaceholder.typicode.com/users/{id}

Parameters

NameTypeRequiredDescription
idnumberThe unique ID of the user.

Example Requests

curl https://jsonplaceholder.typicode.com/users/1

Successful Response

{
"id": 1,
"name": "Leanne Graham",
"username": "Bret",
"email": "Sincere@april.biz",
"address": {
"street": "Kulas Light",
"suite": "Apt. 556",
"city": "Gwenborough",
"zipcode": "92998-3874"
},
"phone": "1-770-736-8031 x56442",
"website": "hildegard.org",
"company": {
"name": "Romaguera-Crona",
"catchPhrase": "Multi-layered client-server neural-net",
"bs": "harness real-time e-markets"
}
}

Error Responses

Status CodeDescription
404User not found (invalid or missing ID).
500Internal server error.
{
"error": "User not found"
}
Expand to see why this endpoint is useful

This endpoint is perfect for:

  • Practicing API integration with mock data.
  • Building tutorials without needing a real backend.
  • Quickly testing request/response flows in Postman or curl.