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.

Unidecode

It sometimes happens that you need to represent Unicode values from the Ipregistry API in ASCII. For example, when integrating with legacy code that doesn't support Unicode in an easy manner. For this purpose, we provide the unidecode option:

https://api.ipregistry.co/66.165.2.7?key=YOUR_API_KEY&unidecode=true