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

Get a user by ID as XML

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

Parameters 1

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

Responses

200
The user.
404
No user with that ID.

Example

Request
curl -X GET "https://api.testingapis.com/api/xml/UserXML/101" \
  -H "Accept: application/xml" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
Content-Type: application/xml; charset=utf-8

<User xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Id>101</Id><Name>Hiroshi Tanaka</Name><Job>E…

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.