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.

By default, the Ipregistry API ouputs JSON.


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: