- Core API's
- >
- Users API
- >
- Users - Show
Users - Show API
Get the specified User.
Method GET
Parameters
Name | Details | Type | Required |
---|---|---|---|
id
|
The ID of the User. | integer | Yes |
How to Use
fetch('https://simplecrudapi.com/api/users/1')
.then(response => response.json())
.then(json => console.log(json))
.catch(error => console.error(error));
Response
{
"data": {
"id": "1",
"name": "John Doe",
"email": "john.doe@example.com",
"email_verified_at": "2024-11-11T12:00:00Z",
"created_at": "2024-10-01T08:45:00Z",
"updated_at": "2024-11-10T15:30:00Z"
}
}
Try Now
fetch('https://simplecrudapi.com/api/users/1')
.then(response => response.json())
.then(json => console.log(json))
.catch(error => console.error(error));