TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Get a user by ID

GEThttps://api.testingapis.com/api/User/user/{id}Sign in to see this endpoint's URL

Parameters 1

NameTypeDescription
idrequiredpath · integer (int32)User ID (101-110 for the seed users).

Responses

200
The user.
404
No user with that ID.

Example

Request
curl -X GET "https://api.testingapis.com/api/User/user/101" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{
  "userId": 101,
  "name": "Michael Thompson",
  "email": "michael.thompson@company.com",
  "job": "Senior Software Engineer",
  "city": "New York"
}

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.