Content Negotiation

Using the Ipregistry API, you can specify your preferred output format among JSON and XML.

Switching between both is as simple as appending the query parameter format with value json or xml.

https://api.ipregistry.co/66.165.2.7?key=YOUR_API_KEY&format=xml

By default, the Ipregistry API ouputs JSON.