Namecheap API calling issue

Hi Everyone,

I am calling the Namecheap domain check API via the postman. It gives me the correct result but when the same API calls with the python method it gives me the incorrect result.

API:

  1. https://api.namecheap.com/xml.response?ApiUser=apiexample&ApiKey=52b4c87ef7fd49cb96a915c0db68124&UserName=apiexample&Command=namecheap.domains.check&ClientIp=192.168.1.109&DomainList=us.xyz

Postman Response:

Python method Response :

Can anyone guide me?

I think the issue is the request getting response in XML format and direct display like the above python response image.

So, the question is how to get the XML response and how to render/display XML attributes?