IP Geolocation - JSON endpoint

The API base path is

https://stage-front.ip.pn/json/{query}

{query} can be a single IPv4 address. If you don't supply a query the current IP address will be used.

Parameters

Query parameters (such as custom fields) are appended as GET request parameters, for example:

https://stage-front.ip.pn/json/216.73.216.38?fields=61439

fieldsresponse fields optional

There is no API key required.

Quick test

You can edit this query and experiment with the options

GET
response

Returned data

The API can return the following fields and values

If you don't require all the returned fields, use the GET parameter fields to specify which data should be returned. Separate the fields by comma (fields=status,query,country,city) or use a generated, numeric value (to save bandwidth)

name
description
example
type
No data
generated fields
none
generated numeric
0