abstract_api.ip_geolocation.ip_geolocation_response module#
- class abstract_api.ip_geolocation.ip_geolocation_response.Connection(autonomous_system_number: int, autonomous_system_organization: str, connection_type: str, isp_name: str, organization_name: str)[source]#
Bases:
objectConnection entity in IP Geolocation response.
- property autonomous_system_number: int | None#
Autonomous System number.
- property autonomous_system_organization: str | None#
Autonomous System Organization name.
- property connection_type: str | None#
Network connection type: Dialup, Cable/DSL, Cellular, Corporate.
- property isp_name: str | None#
Internet Service Provider (ISP) name.
- property organization_name: str | None#
Organization name.
- class abstract_api.ip_geolocation.ip_geolocation_response.Currency(currency_name: str, currency_code: str)[source]#
Bases:
objectCurrency entity in IP Geolocation response.
- property currency_code: str | None#
The currency’s code in ISO 4217 format.
- property currency_name: str | None#
The currency’s name.
- class abstract_api.ip_geolocation.ip_geolocation_response.Flag(emoji: str, unicode: str, png: str, svg: str)[source]#
Bases:
objectFlag entity in IP Geolocation response.
- property emoji: str | None#
Country’s flag as an emoji.
- property png: str | None#
Link to a hosted version of the country’s flag in PNG format.
- property svg: str | None#
Link to a hosted version of the country’s flag in SVG format.
- property unicode: str | None#
Country’s flag in unicode.
- class abstract_api.ip_geolocation.ip_geolocation_response.IPGeolocationResponse(response: Response, response_fields: frozenset[str], list_response: bool = False)[source]#
Bases:
NestedEntitiesMixin,JSONResponseIP Geolocation service response.
- property city: str | None#
City’s name.
- property city_geoname_id: int | None#
City’s geoname ID.
- property connection: Connection | None#
Connection details.
- property continent: str | None#
Continent’s name.
- property continent_code: str | None#
2 letter continent code: AF, AS, EU, NA, OC, SA, AN.
- property continent_geoname_id: int | None#
Continent’s geoname ID.
- property country: str | None#
Country’s name.
- property country_code: str | None#
Country’s ISO 3166-1 alpha-2 code.
- property country_geoname_id: int | None#
Country’s geoname ID.
- property country_is_eu: bool | None#
True if the country is in the EU, false if it is not.
- property ip_address: str | None#
The IP address submitted for geolocation.
- property latitude: float | None#
Decimal of the latitude.
- property longitude: float | None#
Decimal of the longitude.
- property postal_code: str | None#
ZIP or postal code.
- property region: str | None#
State or province in which the city is located.
- property region_geoname_id: int | None#
State or province’s geoname ID.
- property region_iso_code: str | None#
State or province’s ISO 3166-2 code.
- class abstract_api.ip_geolocation.ip_geolocation_response.Security(is_vpn: bool)[source]#
Bases:
objectSecurity entity in IP Geolocation response.
- property is_vpn: bool | None#
Whether the IP address is using from a VPN or using a proxy.
- class abstract_api.ip_geolocation.ip_geolocation_response.Timezone(name: str, abbreviation: str, gmt_offset: int, current_time: str, is_dst: bool)[source]#
Bases:
objectTimezone entity in IP Geolocation response.
- property abbreviation: str | None#
Timezone’s abbreviation, also from the IANA Time Zone Database.
- property current_time: str | None#
Current time in the local time zone.
- property gmt_offset: int | None#
Timezone’s offset from Greenwich Mean Time (GMT).
- property is_dst: bool | None#
True if the location is currently in Daylight Savings Time (DST).
- property name: str | None#
Timezone’s name from the IANA Time Zone Database.