You can now customize API responses by passing in a fields query parameter with a comma separated list of the fields you require. Here is an example:

https://api.ipregistry.co/?key=tryout&fields=ip,location.country.code

The fields parameter supports more patterns for advanced use cases.

We recommend reading our documentation: How to filter API responses.