Skip to main content
GET
ASN and geo information of an IPv4

Authorizations

Authorization
string
header
required

JWT signed (HS256) with a per-user server-side secret; revocable per user. Token handling follows RFC8725 (JWT best current practices): algorithm pinned by the server, no none, claims checked against the live user record. See the API description for the compatibility forms (Basic, query parameter).

Path Parameters

ipv4
string
required

IPv4 address.

Maximum string length: 15
Pattern: ^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$

Query Parameters

proxy
string

ONPREM only: LOCAL serves the request from this installation; any other value forwards it to the OneFirewall cloud (installation Alliance key). Ignored on CLOUD.

Maximum string length: 16
Pattern: ^[A-Za-z]+$

Response

Information.

ASN/geo information from the local IPinfo Lite database (ip-api.com compatible field names).

status
enum<string>
Available options:
success,
fail
query
string
Maximum string length: 15
Pattern: ^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$
continent
string
Maximum string length: 64
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
continentCode
string
Maximum string length: 8
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
country
string
Maximum string length: 128
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
countryCode
string
Maximum string length: 8
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
region
string
Maximum string length: 128
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
regionName
string
Maximum string length: 128
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
city
string
Maximum string length: 128
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
district
string
Maximum string length: 128
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
zip
string
Maximum string length: 32
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
lat
number<double> | null
Required range: -90 <= x <= 90
lon
number<double> | null
Required range: -180 <= x <= 180
timezone
string
Maximum string length: 64
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
offset
integer<int32> | null
Required range: -50400 <= x <= 50400
currency
string
Maximum string length: 8
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
isp
string
Maximum string length: 256
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
org
string
Maximum string length: 256
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
as
string
Maximum string length: 256
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
asname
string
Maximum string length: 256
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
as_domain
string
Maximum string length: 253
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
reverse
string
Maximum string length: 253
Pattern: ^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
mobile
boolean | null
proxy
boolean | null
hosting
boolean | null
source
enum<string>
Available options:
local