class Ipapi::Client
- Ipapi::Client
- Reference
- Object
Defined in:
ipapi.crConstant Summary
-
API_URL =
"https://ipapi.co/"
Constructors
Instance Method Summary
-
#asn(ip_address : String) : String
Retrive autonomous system number for an IP address
-
#asn : String
Retrive autonomous system number
-
#city(ip_address : String) : String
Retrive city name for an IP address
-
#city : String
Retrive city name
-
#continent_code(ip_address : String) : String
Retrive country code (2 letter, ISO 3166-1 alpha-2) for an IP address
-
#continent_code : String
Retrive country code (2 letter, ISO 3166-1 alpha-2)
-
#country(ip_address : String) : String
Retrive country code (2 letter, ISO 3166-1 alpha-2) for an IP address
-
#country : String
Retrive country code (2 letter, ISO 3166-1 alpha-2)
-
#country_calling_code(ip_address : String) : String
Retrive country calling code (dial in code, comma separated) for an IP address
-
#country_calling_code : String
Retrive country calling code (dial in code, comma separated)
-
#country_name(ip_address : String) : String
Retrive short country name for an IP address
-
#country_name : String
Retrive short country name
-
#currency(ip_address : String) : String
Retrive currency code (ISO 4217) for an IP address
-
#currency : String
Retrive currency code (ISO 4217)
-
#in_eu(ip_address : String) : String
Retrive whether IP address belongs to a country that is a member of the European Union (EU) for an IP address
-
#in_eu : String
Retrive whether IP address belongs to a country that is a member of the European Union (EU)
-
#ip(ip_address : String) : String
Retrive public (external) IP address (same as URL
#ip
) for an IP address -
#ip : String
Retrive public (external) IP address (same as URL
#ip
) -
#languages(ip_address : String) : String
Retrive languages spoken (comma separated 2 or 3 letter ISO 639 code with optional hyphen separated country suffix) for an IP address
-
#languages : String
Retrive languages spoken (comma separated 2 or 3 letter ISO 639 code with optional hyphen separated country suffix)
-
#latitude(ip_address : String) : String
Retrive latitude for an IP address
-
#latitude : String
Retrive latitude
-
#latlong(ip_address : String) : String
Retrive comma separated latitude and longitude for an IP address
-
#latlong : String
Retrive comma separated latitude and longitude
-
#locate(ip_address : String) : Location | Nil
Location of a specific IP
-
#locate : Location | Nil
Location of client’s IP
-
#longitude(ip_address : String) : String
Retrive longitude for an IP address
-
#longitude : String
Retrive longitude
-
#org(ip_address : String) : String
Retrive organization name for an IP address
-
#org : String
Retrive organization name
-
#postal(ip_address : String) : String
Retrive postal code / zip code for an IP address
-
#postal : String
Retrive postal code / zip code
-
#region(ip_address : String) : String
Retrive region name (administrative division) for an IP address
-
#region : String
Retrive region name (administrative division)
-
#region_code(ip_address : String) : String
Retrive region code for an IP address
-
#region_code : String
Retrive region code
-
#timezone(ip_address : String) : String
Retrive timezone (IANA format i.e.
-
#timezone : String
Retrive timezone (IANA format i.e.
-
#utc_offset(ip_address : String) : String
Retrive UTC offset (with daylight saving time) as
+HHMM
or-HHMM
(HH
is hours,MM
is minutes) for an IP address -
#utc_offset : String
Retrive UTC offset (with daylight saving time) as
+HHMM
or-HHMM
(HH
is hours,MM
is minutes)
Constructor Detail
Instance Method Detail
Retrive country code (2 letter, ISO 3166-1 alpha-2) for an IP address
Retrive country code (2 letter, ISO 3166-1 alpha-2) for an IP address
Retrive country calling code (dial in code, comma separated) for an IP address
Retrive whether IP address belongs to a country that is a member of the European Union (EU) for an IP address
Retrive whether IP address belongs to a country that is a member of the European Union (EU)
Retrive public (external) IP address (same as URL #ip
) for an IP address
Retrive languages spoken (comma separated 2 or 3 letter ISO 639 code with optional hyphen separated country suffix) for an IP address
Retrive languages spoken (comma separated 2 or 3 letter ISO 639 code with optional hyphen separated country suffix)
Retrive comma separated latitude and longitude for an IP address
Retrive region name (administrative division) for an IP address
Retrive timezone (IANA format i.e. “Area/Location”) for an IP address
Retrive UTC offset (with daylight saving time) as +HHMM
or -HHMM
(HH
is hours, MM
is minutes) for an IP address
Retrive UTC offset (with daylight saving time) as +HHMM
or -HHMM
(HH
is hours, MM
is minutes)