Models
airvpn.api.whatismyip.models
Geo
Represents basic geolocation info for an IP address.
Attributes:
| Name | Type | Description |
|---|---|---|
code |
Short code identifying the geographic entity (e.g. country or region code). |
|
name |
Human-readable name of the geographic entity. |
GeoAdditional
Represents detailed geolocation and network info for an IP address.
Attributes:
| Name | Type | Description |
|---|---|---|
ts |
Unix timestamp of when the geolocation data was generated. |
|
as_number |
Autonomous System (AS) number associated with the IP. |
|
isp_name |
Name of the Internet Service Provider. |
|
country_code |
ISO country code. |
|
country_name |
Country name. |
|
region_code |
Region/state code. |
|
region_name |
Region/state name. |
|
continent_code |
Continent code. |
|
continent_name |
Continent name. |
|
city_name |
City name. |
|
postal_code |
Postal/ZIP code. |
|
postal_confidence |
Confidence level of the postal code accuracy. |
|
latitude |
Latitude coordinate. |
|
longitude |
Longitude coordinate. |
|
accuracy_radius |
Estimated accuracy radius of the location, in kilometers. |
|
time_zone |
Time zone of the location. |
|
metro_code |
Metro/DMA code, if applicable (typically only present for US-based IPs); otherwise None. |
|
code |
Short code identifying your country. |
|
name |
Name of your name. |
|
notes |
Additional notes about the geolocation data, if any. |
IpInfo
Represents the response from the whatismyip endpoint.
Attributes:
| Name | Type | Description |
|---|---|---|
ip |
The detected IP address. |
|
ipv4 |
Whether the detected IP is an IPv4 address. |
|
ipv6 |
Whether the detected IP is an IPv6 address. |
|
airvpn |
Whether the detected IP belongs to AirVPN's network. |
|
geo |
Basic geolocation info for the IP. |
|
geo_additional |
Detailed geolocation and network info for the IP. |